/* Student Theme - Educational Color Palette */

:root {
    /* Primary Colors - Educational Blue */
    --primary-color: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;
    
    /* Secondary Colors - Success Green */
    --secondary-color: #10b981;
    --secondary-light: #34d399;
    --secondary-dark: #059669;
    --secondary-50: #ecfdf5;
    --secondary-100: #d1fae5;
    --secondary-200: #a7f3d0;
    --secondary-300: #6ee7b7;
    --secondary-400: #34d399;
    --secondary-500: #10b981;
    --secondary-600: #059669;
    --secondary-700: #047857;
    --secondary-800: #065f46;
    --secondary-900: #064e3b;
    
    /* Accent Colors - Warning Orange */
    --accent-color: #f59e0b;
    --accent-light: #fbbf24;
    --accent-dark: #d97706;
    --accent-50: #fffbeb;
    --accent-100: #fef3c7;
    --accent-200: #fde68a;
    --accent-300: #fcd34d;
    --accent-400: #fbbf24;
    --accent-500: #f59e0b;
    --accent-600: #d97706;
    --accent-700: #b45309;
    --accent-800: #92400e;
    --accent-900: #78350f;
    
    /* Neutral Colors */
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;
    
    /* Status Colors */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-500) 100%);
    --secondary-gradient: linear-gradient(135deg, var(--secondary-600) 0%, var(--secondary-500) 100%);
    --accent-gradient: linear-gradient(135deg, var(--accent-600) 0%, var(--accent-500) 100%);
    --neutral-gradient: linear-gradient(135deg, var(--neutral-100) 0%, var(--neutral-200) 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
}

/* Global Styles */
* {
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--neutral-700);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--neutral-800);
    line-height: 1.3;
}

h1 { font-size: 2.25rem; font-weight: 700; }
h2 { font-size: 1.875rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.125rem; font-weight: 500; }
h6 { font-size: 1rem; font-weight: 500; }

p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--neutral-600);
}

/* Navbar */
.navbar {
    background: var(--primary-gradient) !important;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
}

.navbar-nav .nav-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    margin: 0.25rem 0;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
    transform: translateX(5px);
}

.navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white !important;
    font-weight: 600;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: var(--neutral-gradient);
    border-bottom: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0 !important;
    font-weight: 600;
    color: var(--neutral-800);
}

/* Buttons */
.btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    border-radius: var(--radius-md);
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: var(--secondary-gradient);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-success:hover {
    background: var(--secondary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-warning {
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-warning:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* Forms */
.form-control, .form-select {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    border-radius: var(--radius-md);
    border: 2px solid var(--neutral-200);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
    background: white;
}

.form-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--neutral-700);
    margin-bottom: 0.5rem;
}

.form-check-label {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--neutral-600);
}

/* Tables */
.table {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table thead th {
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    font-size: 14px;
    border: none;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    border-color: var(--neutral-200);
    vertical-align: middle;
    font-size: 14px;
}

.table tbody tr:hover {
    background: var(--neutral-50);
}

.table tbody tr:nth-child(even) {
    background: var(--neutral-50);
}

/* Alerts */
.alert {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    border-radius: var(--radius-lg);
    border: none;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background: linear-gradient(135deg, var(--secondary-50) 0%, var(--secondary-100) 100%);
    color: var(--secondary-700);
    border-left: 4px solid var(--secondary-500);
}

.alert-warning {
    background: linear-gradient(135deg, var(--accent-50) 0%, var(--accent-100) 100%);
    color: var(--accent-700);
    border-left: 4px solid var(--accent-500);
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    border-left: 4px solid #ef4444;
}

.alert-info {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
    color: var(--primary-700);
    border-left: 4px solid var(--primary-500);
}

/* Badges */
.badge {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 12px;
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
}

.badge-primary {
    background: var(--primary-gradient);
    color: white;
}

.badge-success {
    background: var(--secondary-gradient);
    color: white;
}

.badge-warning {
    background: var(--accent-gradient);
    color: white;
}

/* Modals */
.modal-content {
    border-radius: var(--radius-xl);
    border: none;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    background: var(--neutral-gradient);
    border-bottom: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--neutral-800);
}

/* Dropdowns */
.dropdown-menu {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.dropdown-item {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateX(5px);
}

/* Progress Bars */
.progress {
    height: 0.75rem;
    border-radius: var(--radius);
    background: var(--neutral-200);
}

.progress-bar {
    background: var(--primary-gradient);
    border-radius: var(--radius);
}

/* Pagination */
.pagination .page-link {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    border-radius: var(--radius);
    border: 2px solid var(--neutral-200);
    color: var(--neutral-600);
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    color: white;
}

/* Stats Cards */
.stat-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neutral-800);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--neutral-600);
    font-weight: 500;
}

/* Charts */
.chart-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.chart-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 13px;
    }
    
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.875rem; }
    
    .btn {
        font-size: 13px;
        padding: 0.4rem 1.2rem;
    }
    
    .form-control, .form-select {
        font-size: 13px;
        padding: 0.6rem 0.8rem;
    }
    
    .table {
        font-size: 12px;
    }
    
    .table th, .table td {
        padding: 0.75rem;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 12px;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.125rem; }
    h4 { font-size: 1rem; }
    h5 { font-size: 0.875rem; }
    h6 { font-size: 0.75rem; }
    
    .btn {
        font-size: 12px;
        padding: 0.35rem 1rem;
    }
    
    .form-control, .form-select {
        font-size: 12px;
        padding: 0.5rem 0.7rem;
    }
    
    .table {
        font-size: 11px;
    }
    
    .table th, .table td {
        padding: 0.5rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
}
