/* Training Center CRM Custom Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #17a2b8;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
}

/* Sidebar Navigation */
.sidebar {
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    z-index: 1000;
    transform: translateX(-250px);
    transition: transform 0.3s ease;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 20px;
    border-radius: 8px;
    margin: 5px 10px;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

/* Main Content */
.main-content {
    margin-left: 0;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
}

.main-content.sidebar-open {
    margin-left: 250px;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Dashboard Cards */
.dashboard-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.dashboard-card .card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 15px;
}

.dashboard-card.leads .card-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.dashboard-card.students .card-icon {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.dashboard-card.courses .card-icon {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.dashboard-card.revenue .card-icon {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

/* Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-new { background-color: #3498db; color: white; }
.status-contacted { background-color: #f39c12; color: white; }
.status-interested { background-color: #e67e22; color: white; }
.status-quoted { background-color: #9b59b6; color: white; }
.status-converted { background-color: #27ae60; color: white; }
.status-lost { background-color: #e74c3c; color: white; }

/* Tables */
.custom-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.custom-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.custom-table tbody tr {
    transition: background-color 0.3s ease;
}

.custom-table tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

/* Buttons */
.btn-custom {
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary-custom {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.btn-success-custom {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
}

.btn-warning-custom {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.btn-danger-custom {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

/* Pipeline Cards */
.pipeline-column {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    min-height: 500px;
}

.pipeline-header {
    text-align: center;
    font-weight: bold;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
    color: white;
}

.pipeline-new { background: linear-gradient(135deg, #3498db, #2980b9); }
.pipeline-contacted { background: linear-gradient(135deg, #f39c12, #e67e22); }
.pipeline-interested { background: linear-gradient(135deg, #e67e22, #d35400); }
.pipeline-quoted { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.pipeline-converted { background: linear-gradient(135deg, #27ae60, #229954); }
.pipeline-lost { background: linear-gradient(135deg, #e74c3c, #c0392b); }

.lead-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: move;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.lead-card:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.lead-card.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

/* Forms */
.form-floating {
    margin-bottom: 20px;
}

.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Modals */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 15px 15px 0 0;
}

/* Charts */
.chart-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

/* Search and Filters */
.search-filter-bar {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.search-input {
    border-radius: 25px;
    border: 2px solid #e9ecef;
    padding: 10px 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        transform: translateX(-100%);
    }
    
    .main-content.sidebar-open {
        margin-left: 0;
    }
    
    .dashboard-card {
        margin-bottom: 20px;
    }
    
    .pipeline-column {
        margin: 5px 0;
    }
    
    .table-responsive {
        border-radius: 15px;
    }
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Action Buttons */
.action-buttons .btn {
    margin: 2px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Meeting Calendar Styles */
.calendar-view {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.meeting-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 10px;
    margin: 5px 0;
    border-left: 4px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.meeting-card:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.meeting-online {
    border-left-color: #17a2b8;
}

.meeting-offline {
    border-left-color: #28a745;
}

/* Statistics Cards */
.stat-card {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Progress Bars */
.progress-custom {
    height: 8px;
    border-radius: 10px;
    background-color: #e9ecef;
    overflow: hidden;
}

.progress-bar-custom {
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Notification Styles */
.alert-custom {
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.alert-success-custom {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(39, 174, 96, 0.05));
    border-left: 4px solid #27ae60;
    color: #1e8449;
}

.alert-error-custom {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(231, 76, 60, 0.05));
    border-left: 4px solid #e74c3c;
    color: #c0392b;
}

/* File Upload Area */
.upload-area {
    border: 2px dashed #ced4da;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(52, 152, 219, 0.05);
}

.upload-area.dragover {
    border-color: var(--success-color);
    background-color: rgba(39, 174, 96, 0.05);
}
