:root {
    /* Oxford Blue Theme Color Palette */
    --primary-oxford: #002147;
    --primary-oxford-light: #003366;
    --primary-oxford-dark: #001529;
    --secondary-blue: #1e3a8a;
    --accent-azure: #0077be;
    --accent-cerulean: #2c5282;
    --bg-gradient: linear-gradient(135deg, #002147 0%, #1e3a8a 50%, #0077be 100%);
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --success: #059669;
    --error: #dc2626;
    --warning: #d97706;
    --info: #0891b2;
    --shadow-sm: 0 1px 2px rgba(0, 33, 71, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 33, 71, 0.15);
    --shadow-lg: 0 10px 15px rgba(0, 33, 71, 0.2);
    --shadow-xl: 0 20px 25px rgba(0, 33, 71, 0.25);
    --shadow-glow: 0 0 20px rgba(0, 119, 190, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23002147" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%230077be" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%231e3a8a" opacity="0.08"/><circle cx="10" cy="50" r="0.5" fill="%23003366" opacity="0.08"/><circle cx="90" cy="30" r="0.5" fill="%230077be" opacity="0.08"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    z-index: 1;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.form-wrapper {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 
        0 20px 25px rgba(0, 33, 71, 0.15),
        0 10px 10px rgba(0, 33, 71, 0.08),
        var(--shadow-glow);
    padding: 56px;
    width: 100%;
    max-width: 520px;
    border: 1px solid rgba(0, 33, 71, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient);
    border-radius: 24px 24px 0 0;
}

.form-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 25px 50px rgba(0, 33, 71, 0.2),
        0 15px 15px rgba(0, 33, 71, 0.1),
        var(--shadow-glow);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.form-header h1 {
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.form-header p {
    color: #6B7280;
    font-size: 16px;
    font-weight: 500;
}

.form-group {
    margin-bottom: 28px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #1F2937;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.2px;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #E5E7EB;
    border-radius: 14px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    color: #1F2937;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-oxford);
    box-shadow: 
        0 0 0 4px rgba(0, 33, 71, 0.1),
        var(--shadow-md);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: #6B7280;
    opacity: 0.6;
}

.form-group small {
    display: block;
    margin-top: 8px;
    color: #6B7280;
    font-size: 13px;
    font-weight: 500;
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--bg-gradient);
    color: white;
    width: 100%;
    box-shadow: 
        var(--shadow-md),
        0 4px 15px rgba(0, 33, 71, 0.25);
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        var(--shadow-lg),
        0 8px 25px rgba(0, 33, 71, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--primary-oxford-light);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.alert {
    padding: 18px 22px;
    border-radius: 14px;
    margin-bottom: 28px;
    font-size: 15px;
    font-weight: 600;
    border-left: 4px solid;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
    border-color: #EF4444;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-color: #10B981;
}

.form-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #E5E7EB;
}

.form-footer p {
    color: #6B7280;
    font-size: 14px;
    font-weight: 500;
}

.form-footer a {
    color: var(--primary-oxford);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.form-footer a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--bg-gradient);
    transition: width 0.3s ease;
}

.form-footer a:hover {
    color: var(--primary-oxford-dark);
}

.form-footer a:hover::after {
    width: 100%;
}

/* Navbar */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-oxford);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-brand::before {
    content: "📚";
    font-size: 28px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-user {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    background: var(--bg-light);
    border-radius: 8px;
}

/* Enhanced Oxford Blue Theme Dashboard */
body {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-primary);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(0, 33, 71, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 119, 190, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(30, 58, 138, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Enhanced Top Bar - Oxford Blue Theme */
.top-bar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 33, 71, 0.1);
}

.top-bar-left {
    display: flex;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-oxford);
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 33, 71, 0.1);
}

.top-bar-center {
    flex: 1;
    max-width: 500px;
    margin: 0 40px;
}

.search-container {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border-radius: 25px;
    padding: 8px 20px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.search-container:focus-within {
    border-color: var(--primary-oxford);
    box-shadow: 0 0 0 4px rgba(0, 33, 71, 0.1);
    background: var(--bg-white);
}

.search-input {
    border: none;
    background: none;
    outline: none;
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.search-btn:hover {
    color: var(--primary-oxford);
    transform: scale(1.1);
}

.top-bar-right {
    display: flex;
    align-items: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    position: relative;
}

.avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 33, 71, 0.15);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name-small {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-role {
    font-size: 12px;
    color: var(--text-secondary);
}

.logout-btn {
    background: var(--bg-gradient);
    color: white;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.logout-btn:hover {
    background: linear-gradient(135deg, var(--primary-oxford-light), var(--secondary-blue));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 33, 71, 0.25);
}

.dark-mode-toggle {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-right: 8px;
}

.dark-mode-toggle:hover {
    background: rgba(0, 33, 71, 0.1);
}

.dark-mode-icon {
    font-size: 16px;
    display: block;
}

/* ==============================================
   MODERN UI ENHANCEMENTS & ANIMATIONS
   ============================================== */

/* Animated Background Pattern */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

.pulse-element {
    animation: pulse 4s ease-in-out infinite;
}

/* Enhanced Card Animations */
.stat-card-modern {
    position: relative;
    overflow: hidden;
}

.stat-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 33, 71, 0.05), transparent);
    transition: left 0.6s ease;
}

.stat-card-modern:hover::before {
    left: 100%;
}

/* Enhanced Button Animations */
.action-btn-primary,
.action-btn-secondary,
.upload-btn {
    position: relative;
    overflow: hidden;
}

.action-btn-primary::before,
.action-btn-secondary::before,
.upload-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.action-btn-primary:hover::before,
.action-btn-secondary:hover::before,
.upload-btn:hover::before {
    left: 100%;
}

/* Glass Morphism Effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
    background: rgba(0, 33, 71, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 33, 71, 0.2);
}

/* Enhanced Hover States */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 33, 71, 0.1), transparent);
    transition: left 0.3s ease;
}

.nav-link:hover::before {
    left: 100%;
}

/* Loading Animation */
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* Enhanced Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 33, 71, 0.5);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-container {
    transform: scale(1);
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-oxford), var(--secondary-blue));
    color: white;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-oxford);
    border-radius: 4px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-blue);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .modern-sidebar {
        transform: translateX(-100%);
    }
    
    .modern-sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .modern-main {
        margin-left: 0;
    }
    
    .welcome-section {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-toggle {
        display: block;
    }
}

/* Enhanced Focus States */
.nav-link:focus,
.btn:focus,
input:focus,
button:focus {
    outline: 2px solid var(--primary-oxford);
    outline-offset: 2px;
}

/* ==============================================
   STUDENTS LIST PAGE STYLES
   ============================================== */

/* Students Header Section */
.students-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 32px;
    background: linear-gradient(135deg, var(--primary-oxford), var(--secondary-blue));
    border-radius: 20px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 33, 71, 0.2);
}

.students-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="students-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23students-pattern)"/></svg>');
    pointer-events: none;
}

.students-header-content {
    position: relative;
    z-index: 1;
}

.students-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.students-subtitle {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    line-height: 1.5;
}

.students-actions {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

/* Modern Data Table */
.students-table-section {
    margin-bottom: 32px;
}

.table-container-modern {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.table-container-modern:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-oxford);
}

.modern-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

.modern-data-table thead {
    background: linear-gradient(135deg, var(--primary-oxford), var(--secondary-blue));
    color: white;
}

.modern-data-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: var(--font-size-sm);
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--primary-oxford-dark);
    position: relative;
}

.modern-data-table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.modern-data-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.modern-data-table tbody tr:hover {
    background: var(--bg-light);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 33, 71, 0.1);
}

.modern-data-table td {
    padding: 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

.student-id {
    font-weight: 600;
    color: var(--primary-oxford);
    font-family: 'Courier New', monospace;
}

.student-name-cell {
    font-weight: 600;
    color: var(--text-primary);
}

.student-info-inline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.student-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 33, 71, 0.15);
    flex-shrink: 0;
}

.student-email {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.student-course {
    color: var(--text-primary);
    font-weight: 500;
}

.student-year {
    color: var(--text-secondary);
}

.student-phone {
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

.student-date {
    color: var(--text-muted);
    font-size: var(--font-size-xs);
    white-space: nowrap;
}

.student-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.action-btn-view,
.action-btn-edit,
.action-btn-delete {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 14px;
}

.action-btn-view {
    background: rgba(0, 119, 190, 0.1);
    color: var(--accent-azure);
}

.action-btn-view:hover {
    background: var(--accent-azure);
    color: white;
    transform: scale(1.1);
}

.action-btn-edit {
    background: rgba(217, 119, 6, 0.1);
    color: var(--warning-color);
}

.action-btn-edit:hover {
    background: var(--warning-color);
    color: white;
    transform: scale(1.1);
}

.action-btn-delete {
    background: rgba(220, 38, 38, 0.1);
    color: var(--error-color);
}

.action-btn-delete:hover {
    background: var(--error-color);
    color: white;
    transform: scale(1.1);
}

/* Modern Pagination */
.pagination-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-top: 24px;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--primary-oxford);
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-sm);
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background: var(--secondary-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 33, 71, 0.2);
}

.pagination-btn.prev {
    background: var(--text-muted);
}

.pagination-btn.prev:hover {
    background: var(--text-secondary);
}

.pagination-numbers {
    display: flex;
    gap: 4px;
}

.pagination-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.pagination-number:hover {
    background: var(--bg-light);
    color: var(--primary-oxford);
    border-color: var(--primary-oxford);
}

.pagination-number.active {
    background: var(--primary-oxford);
    color: white;
    border-color: var(--primary-oxford);
}

/* Empty State Modern */
.empty-state-modern {
    text-align: center;
    padding: 80px 40px;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.empty-state-modern .empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-modern h3 {
    font-size: var(--font-size-2xl);
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 600;
}

.empty-state-modern p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: var(--font-size-base);
}

/* Responsive Table */
@media (max-width: 768px) {
    .students-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .students-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .table-container-modern {
        overflow-x: auto;
    }
    
    .modern-data-table {
        min-width: 600px;
    }
    
    .pagination-modern {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .student-actions {
        flex-direction: column;
        gap: 4px;
    }
    
    .action-btn-view,
    .action-btn-edit,
    .action-btn-delete {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* CSS Variables for Modern Theme */
:root {
    --primary-color: #002147;
    --secondary-color: #1e3a8a;
    --accent-color: #0077be;
    --success-color: #059669;
    --warning-color: #D97706;
    --error-color: #DC2626;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --sidebar-width: 280px;
    --header-height: 70px;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
}

/* Dark Theme Variables */
body.dark-theme {
    --card-bg: #1E293B;
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --border-color: #334155;
    --light-bg: #0F172A;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--light-bg);
    color: var(--text-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    transition: all 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==============================================
   MODERN SIDEBAR
   ============================================== */

.modern-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--card-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: all 0.3s ease;
}

.modern-sidebar.collapsed {
    width: 70px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.brand-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.brand-name {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color);
    transition: opacity 0.3s ease;
    line-height: 1.2;
}

.modern-sidebar.collapsed .brand-name {
    opacity: 0;
    visibility: hidden;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-list {
    list-style: none;
}

.nav-item {
    margin-bottom: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.nav-item.active .nav-link {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.nav-item.active .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
}

.nav-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.nav-text {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-primary);
    transition: opacity 0.3s ease;
    line-height: 1.4;
}

.modern-sidebar.collapsed .nav-text {
    opacity: 0;
    visibility: hidden;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
    transition: opacity 0.3s ease;
}

.modern-sidebar.collapsed .user-details {
    opacity: 0;
    visibility: hidden;
}

.user-name {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    line-height: 1.3;
}

.user-role {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    line-height: 1.4;
}

.logout-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: rgba(220, 38, 38, 0.1);
    color: var(--error-color);
    border: none;
    border-radius: 8px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.logout-modern:hover {
    background: rgba(239, 68, 68, 0.2);
}

.logout-icon {
    font-size: 16px;
}

.modern-sidebar.collapsed .logout-modern span:last-child {
    display: none;
}

/* ==============================================
   MODERN MAIN CONTENT
   ============================================== */

.modern-main {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.modern-main.expanded {
    margin-left: 70px;
}

/* Modern Header */
.modern-header {
    height: var(--header-height);
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.menu-toggle:hover {
    background: var(--border-color);
}

.search-modern {
    display: flex;
    align-items: center;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px 16px;
    min-width: 300px;
}

.search-input-modern {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    line-height: 1.5;
}

.search-input-modern::placeholder {
    color: var(--text-secondary);
}

.search-btn-modern {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 4px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.theme-toggle:hover {
    background: var(--border-color);
}

.notification-bell {
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.notification-bell:hover {
    background: var(--border-color);
}

.bell-icon {
    font-size: 20px;
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--error-color);
    border-radius: 50%;
    border: 2px solid var(--card-bg);
}

.header-user-profile {
    margin-left: 8px;
}

.header-user-avatar {
    position: relative;
}

.header-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 33, 71, 0.15);
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-avatar-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 33, 71, 0.2);
}

/* ==============================================
   DASHBOARD CONTENT
   ============================================== */

.dashboard-content {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Welcome Section */
.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 32px;
    background: linear-gradient(135deg, var(--primary-oxford), var(--secondary-blue));
    border-radius: 20px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 33, 71, 0.2);
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="welcome-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23welcome-pattern)"/></svg>');
    pointer-events: none;
}

.welcome-content {
    position: relative;
    z-index: 1;
}

.welcome-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-subtitle {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    line-height: 1.5;
}

.welcome-actions {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.action-btn-primary,
.action-btn-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    line-height: 1.4;
    white-space: nowrap;
}

.action-btn-primary {
    background: white;
    color: var(--primary-oxford);
}

.action-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.action-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.action-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-icon {
    font-size: 16px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card-modern {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.2s ease;
}

.stat-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-oxford);
}

.stat-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-wrapper.blue {
    background: rgba(0, 33, 71, 0.1);
    color: var(--primary-oxford);
}

.stat-icon-wrapper.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.stat-icon-wrapper.purple {
    background: rgba(30, 58, 138, 0.1);
    color: var(--secondary-blue);
}

.stat-icon-wrapper.orange {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.stat-icon {
    font-size: 24px;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.1;
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: 6px;
    line-height: 1.4;
    font-weight: 500;
}

.stat-change {
    font-size: var(--font-size-xs);
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
    line-height: 1.3;
}

.stat-change.positive {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.stat-change.neutral {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-secondary);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Modern Cards */
.upload-card,
.students-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.upload-card:hover,
.students-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-oxford);
}

.card-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.title-icon {
    font-size: 20px;
}

.card-badge {
    background: rgba(0, 33, 71, 0.1);
    color: var(--primary-oxford);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    line-height: 1.3;
}

/* Upload Zone */
.upload-zone {
    padding: 20px;
}

.upload-zone.highlight {
    background: rgba(0, 33, 71, 0.05);
}

.upload-label {
    display: block;
    cursor: pointer;
}

.upload-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 20px;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s ease;
}

.upload-zone.highlight .upload-visual {
    border-color: var(--primary-oxford);
    background: rgba(0, 33, 71, 0.05);
}

.upload-icon {
    font-size: 48px;
    color: var(--text-secondary);
}

.upload-text h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.upload-text p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.upload-info {
    text-align: center;
    margin-top: 16px;
}

.upload-info small {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    line-height: 1.4;
}

.upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 20px;
    padding: 14px 20px;
    background: var(--primary-oxford);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.upload-btn:hover {
    background: var(--secondary-blue);
    transform: translateY(-1px);
}

/* Students List */
.students-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 12px;
    background: var(--light-bg);
    border-radius: 8px;
}

.student-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    margin-bottom: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.2s ease;
    min-height: 72px;
}

.student-item:hover {
    background: var(--light-bg);
    border-color: var(--primary-oxford);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 33, 71, 0.15);
}

.student-item:last-child {
    margin-bottom: 0;
}

.student-avatar {
    flex-shrink: 0;
}

.avatar-small {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.student-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.student-name {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-email {
    font-size: var(--font-size-sm);
    color: #4B5563;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.student-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.meta-tag {
    background: rgba(190, 24, 93, 0.15);
    color: #BE185D;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: var(--font-size-xs);
    font-weight: 700;
    line-height: 1.3;
    border: 1px solid rgba(190, 24, 93, 0.3);
    white-space: nowrap;
}

.student-time {
    flex-shrink: 0;
    font-size: var(--font-size-xs);
    color: #6B7280;
    font-weight: 600;
    line-height: 1.4;
    background: #F3F4F6;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #D1D5DB;
    white-space: nowrap;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h4 {
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.empty-state p {
    font-size: var(--font-size-sm);
    margin: 0;
    line-height: 1.5;
}

/* Card Footer */
.card-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.view-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: all 0.2s ease;
    line-height: 1.4;
}

.view-all-link:hover {
    color: var(--secondary-color);
    transform: translateX(4px);
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .modern-sidebar {
        transform: translateX(-100%);
    }
    
    .modern-sidebar.active {
        transform: translateX(0);
    }
    
    .modern-main {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .welcome-section {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 24px;
    }
    
    .welcome-title {
        font-size: var(--font-size-3xl);
    }
    
    .welcome-subtitle {
        font-size: var(--font-size-base);
    }
    
    .welcome-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stat-card-modern {
        padding: 20px;
    }
    
    .stat-number {
        font-size: var(--font-size-2xl);
    }
    
    .search-modern {
        min-width: auto;
        flex: 1;
    }
    
    .dashboard-content {
        padding: 16px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .card-header-modern {
        padding: 16px;
    }
    
    .upload-zone {
        padding: 16px;
    }
    
    .upload-visual {
        padding: 30px 16px;
    }
    
    .upload-icon {
        font-size: 40px;
    }
    
    .student-item {
        padding: 12px;
    }
    
    .avatar-small {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .modern-header {
        padding: 0 12px;
    }
    
    .welcome-section {
        padding: 16px;
        gap: 16px;
    }
    
    .welcome-title {
        font-size: var(--font-size-2xl);
    }
    
    .welcome-subtitle {
        font-size: var(--font-size-sm);
    }
    
    .welcome-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .action-btn-primary,
    .action-btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .stat-card-modern {
        padding: 16px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .stat-number {
        font-size: var(--font-size-xl);
    }
    
    .stat-label {
        font-size: var(--font-size-xs);
    }
    
    .stat-change {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .card-header-modern {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .card-title {
        font-size: var(--font-size-base);
    }
    
    .upload-zone {
        padding: 12px;
    }
    
    .upload-visual {
        padding: 24px 12px;
        gap: 12px;
    }
    
    .upload-icon {
        font-size: 32px;
    }
    
    .upload-text h4 {
        font-size: var(--font-size-sm);
    }
    
    .upload-text p {
        font-size: var(--font-size-xs);
    }
    
    .upload-btn {
        padding: 12px 16px;
        font-size: var(--font-size-xs);
    }
    
    .student-item {
        padding: 12px;
        gap: 10px;
        min-height: 64px;
    }
    
    .avatar-small {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .student-name {
        font-size: var(--font-size-sm);
    }
    
    .student-email {
        font-size: var(--font-size-xs);
    }
    
    .meta-tag {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .student-time {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .view-all-link {
        font-size: var(--font-size-xs);
    }
}

/* ==============================================
   OLD STYLES (kept for compatibility)
   ============================================== */
.unique-layout {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 24px;
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    position: relative;
    padding: 0 16px 24px;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    width: 100%;
}

/* Enhanced Header Section */
.dashboard-header {
    background: rgba(45, 27, 45, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(236, 72, 153, 0.3);
    box-shadow: 0 8px 32px rgba(236, 72, 153, 0.25);
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #EC4899, #F472B6, #F9A8D4);
    border-radius: 20px 20px 0 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.header-left h1 {
    font-size: 28px;
    font-weight: 800;
    color: #FCE7F3;
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, #F9A8D4, #FCE7F3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-left p {
    color: #F9A8D4;
    font-size: 16px;
    margin: 0;
}

.header-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item-enhanced {
    text-align: center;
    padding: 16px 20px;
    background: rgba(236, 72, 153, 0.1);
    border-radius: 16px;
    border: 1px solid rgba(236, 72, 153, 0.2);
    transition: all 0.3s ease;
    min-width: 100px;
    flex-shrink: 0;
}

.stat-item-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.35);
    background: rgba(236, 72, 153, 0.15);
}

.stat-number-enhanced {
    font-size: 24px;
    font-weight: 800;
    color: #FCE7F3;
    margin-bottom: 4px;
}

.stat-label-enhanced {
    font-size: 11px;
    color: #F9A8D4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Enhanced Main Content Grid */
.dashboard-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
    width: 100%;
}

/* Enhanced Card Styles */
.enhanced-card {
    background: rgba(45, 27, 45, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(236, 72, 153, 0.3);
    box-shadow: 0 8px 32px rgba(236, 72, 153, 0.25);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.enhanced-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #EC4899, #F472B6, #F9A8D4);
    border-radius: 24px 24px 0 0;
}

.enhanced-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(236, 72, 153, 0.35);
    border-color: rgba(236, 72, 153, 0.4);
}

.card-header-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.card-title-enhanced {
    font-size: 20px;
    font-weight: 700;
    color: #FCE7F3;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-icon-enhanced {
    font-size: 24px;
    color: #F9A8D4;
}

.card-badge-enhanced {
    background: rgba(236, 72, 153, 0.2);
    color: #FCE7F3;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

/* Enhanced Upload Area */
.upload-area-enhanced {
    border: 2px dashed rgba(236, 72, 153, 0.4);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(236, 72, 153, 0.05);
    cursor: pointer;
}

.upload-area-enhanced:hover,
.upload-area-enhanced.highlight {
    border-color: #EC4899;
    background: rgba(236, 72, 153, 0.1);
    transform: translateY(-2px);
}

.upload-label-enhanced {
    cursor: pointer;
    display: block;
}

.upload-icon-enhanced {
    font-size: 48px;
    color: #F9A8D4;
    margin-bottom: 16px;
}

.upload-label-enhanced span {
    display: block;
    color: #FCE7F3;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.upload-label-enhanced small {
    color: #F9A8D4;
    font-size: 14px;
}

.upload-submit-enhanced {
    background: linear-gradient(135deg, #EC4899, #DB2777);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.upload-submit-enhanced:hover {
    background: linear-gradient(135deg, #F472B6, #EC4899);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4);
}

/* Enhanced Students Grid */
.students-grid-enhanced {
    display: grid;
    gap: 16px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.student-card-enhanced {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(236, 72, 153, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(236, 72, 153, 0.2);
    transition: all 0.3s ease;
}

.student-card-enhanced:hover {
    background: rgba(236, 72, 153, 0.12);
    transform: translateX(4px);
}

.student-avatar-enhanced {
    flex-shrink: 0;
}

.avatar-enhanced {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.student-info-enhanced {
    flex: 1;
    min-width: 0;
}

.student-info-enhanced h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #FCE7F3;
}

.student-email-enhanced {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #F9A8D4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-meta-enhanced {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.meta-tag-enhanced {
    background: rgba(236, 72, 153, 0.2);
    color: #FCE7F3;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.student-time-enhanced {
    flex-shrink: 0;
    color: #F9A8D4;
    font-size: 12px;
    font-weight: 500;
}

.empty-state-enhanced {
    text-align: center;
    padding: 40px 20px;
    color: #F9A8D4;
}

.empty-icon-enhanced {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state-enhanced h4 {
    margin: 0 0 8px 0;
    color: #FCE7F3;
    font-size: 18px;
}

.empty-state-enhanced p {
    margin: 0;
    color: #F9A8D4;
    font-size: 14px;
}

.card-footer-enhanced {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(236, 72, 153, 0.2);
    text-align: center;
}

.view-all-btn-enhanced {
    display: inline-block;
    color: #F9A8D4;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.view-all-btn-enhanced:hover {
    color: #FCE7F3;
    transform: translateX(4px);
}

/* Enhanced Footer */
.dashboard-footer {
    background: rgba(45, 27, 45, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(236, 72, 153, 0.3);
    box-shadow: 0 8px 32px rgba(236, 72, 153, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
}

.system-status-enhanced h3,
.quick-actions-enhanced h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 700;
    color: #FCE7F3;
}

.status-items-enhanced {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-item-enhanced {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #F9A8D4;
    font-size: 14px;
}

.status-dot-enhanced {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot-enhanced.green {
    background: #10B981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.action-buttons-enhanced {
    display: flex;
    gap: 12px;
}

.action-btn-enhanced {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 12px;
    text-decoration: none;
    color: #FCE7F3;
    transition: all 0.3s ease;
    min-width: 80px;
}

.action-btn-enhanced:hover {
    background: rgba(236, 72, 153, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.3);
}

.action-icon-enhanced {
    font-size: 20px;
}

.action-btn-enhanced span:last-child {
    font-size: 12px;
    font-weight: 600;
}

/* Quick Actions Card - Matching Other Cards */
.quick-actions-card {
    background: rgba(45, 27, 45, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 32px;
    border: 1px solid rgba(236, 72, 153, 0.3);
    box-shadow: 0 8px 32px rgba(236, 72, 153, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-actions-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #EC4899, #F472B6);
    border-radius: 20px 20px 0 0;
}

.quick-actions-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(236, 72, 153, 0.3);
    border-color: rgba(236, 72, 153, 0.4);
}

/* Enhanced Full Width Quick Actions */
.quick-actions-enhanced-full {
    background: rgba(45, 27, 45, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 32px;
    border: 1px solid rgba(236, 72, 153, 0.3);
    box-shadow: 0 8px 32px rgba(236, 72, 153, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-actions-enhanced-full::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #EC4899, #F472B6);
    border-radius: 20px 20px 0 0;
}

.quick-actions-enhanced-full:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(236, 72, 153, 0.3);
    border-color: rgba(236, 72, 153, 0.4);
}

.action-buttons-grid-enhanced {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.action-row {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
}

.action-btn-large {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 8px;
    text-decoration: none;
    color: #FCE7F3;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 140px;
    flex-shrink: 0;
}

.action-btn-large::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.action-btn-large:hover::before {
    left: 100%;
}

.action-btn-large:hover {
    background: rgba(236, 72, 153, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
    border-color: rgba(236, 72, 153, 0.4);
}

.action-icon-large {
    font-size: 18px;
    flex-shrink: 0;
    color: #F9A8D4;
}

.action-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.action-title {
    font-size: 12px;
    font-weight: 600;
    color: #FCE7F3;
    line-height: 1.2;
}

.action-desc {
    font-size: 10px;
    color: #F9A8D4;
    opacity: 0.8;
    line-height: 1.1;
}

.action-arrow {
    font-size: 14px;
    color: #F9A8D4;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.action-btn-large:hover .action-arrow {
    color: #FCE7F3;
    transform: translateX(2px);
}

/* Responsive Design for All Screen Sizes */
@media (max-width: 1200px) {
    .unique-layout {
        padding: 0 12px 20px;
    }
    
    .header-content {
        gap: 20px;
    }
    
    .header-stats {
        gap: 16px;
    }
}

@media (max-width: 1024px) {
    .unique-layout {
        padding: 0 8px 16px;
        gap: 20px;
    }
    
    .dashboard-header {
        padding: 20px;
    }
    
    .header-left h1 {
        font-size: 24px;
    }
    
    .header-left p {
        font-size: 14px;
    }
    
    .stat-item-enhanced {
        padding: 12px 16px;
        min-width: 80px;
    }
    
    .stat-number-enhanced {
        font-size: 20px;
    }
    
    .stat-label-enhanced {
        font-size: 10px;
    }
    
    .enhanced-card {
        padding: 20px;
    }
    
    .dashboard-main {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .unique-layout {
        margin-top: 70px;
        min-height: calc(100vh - 70px);
        padding: 0 6px 12px;
        gap: 16px;
    }
    
    .dashboard-header {
        padding: 16px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .header-left h1 {
        font-size: 22px;
    }
    
    .header-left p {
        font-size: 14px;
    }
    
    .header-stats {
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .stat-item-enhanced {
        padding: 10px 14px;
        min-width: 70px;
        flex: 1;
        min-width: 120px;
    }
    
    .stat-number-enhanced {
        font-size: 18px;
    }
    
    .enhanced-card {
        padding: 16px;
    }
    
    .card-header-enhanced {
        margin-bottom: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .card-title-enhanced {
        font-size: 18px;
    }
    
    .dashboard-main {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* Mobile Top Bar Improvements */
    .top-bar {
        height: 60px;
        padding: 0 12px;
    }
    
    .top-bar-center {
        margin: 0 12px;
        max-width: none;
        flex: 1;
    }
    
    .search-container {
        padding: 6px 12px;
    }
    
    .search-input {
        font-size: 14px;
    }
    
    .top-bar-right {
        gap: 8px;
    }
    
    .user-info {
        display: none;
    }
    
    .logout-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .dark-mode-toggle {
        padding: 6px;
        font-size: 16px;
    }
    
    /* Mobile Upload Area */
    .upload-area-enhanced {
        padding: 30px 16px;
    }
    
    .upload-icon-enhanced {
        font-size: 36px;
    }
    
    .upload-label-enhanced span {
        font-size: 14px;
    }
    
    .upload-label-enhanced small {
        font-size: 12px;
    }
    
    /* Mobile Students Grid */
    .students-grid-enhanced {
        max-height: 300px;
    }
    
    .student-card-enhanced {
        padding: 12px;
        gap: 12px;
    }
    
    .avatar-enhanced {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .student-info-enhanced h4 {
        font-size: 14px;
    }
    
    .student-email-enhanced {
        font-size: 12px;
    }
    
    .meta-tag-enhanced {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .student-time-enhanced {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .unique-layout {
        padding: 0 4px 8px;
        gap: 12px;
    }
    
    .dashboard-header {
        padding: 12px;
    }
    
    .header-left h1 {
        font-size: 20px;
    }
    
    .header-left p {
        font-size: 13px;
    }
    
    .header-stats {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .stat-item-enhanced {
        padding: 8px 12px;
        min-width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .stat-number-enhanced {
        font-size: 16px;
    }
    
    .stat-label-enhanced {
        font-size: 10px;
    }
    
    .enhanced-card {
        padding: 12px;
    }
    
    .card-title-enhanced {
        font-size: 16px;
    }
    
    .upload-icon-enhanced {
        font-size: 32px;
    }
    
    .upload-label-enhanced span {
        font-size: 13px;
    }
    
    .upload-label-enhanced small {
        font-size: 11px;
    }
    
    /* Enhanced Mobile Top Bar */
    .top-bar {
        height: 56px;
        padding: 0 8px;
    }
    
    .logo-icon {
        font-size: 20px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .top-bar-center {
        margin: 0 8px;
    }
    
    .search-container {
        padding: 4px 8px;
    }
    
    .search-input {
        font-size: 13px;
    }
    
    .search-btn {
        font-size: 14px;
    }
    
    .top-bar-right {
        gap: 6px;
    }
    
    .avatar-small {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .logout-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .dark-mode-toggle {
        padding: 4px;
        font-size: 14px;
    }
    
    /* Enhanced Mobile Cards */
    .upload-area-enhanced {
        padding: 20px 12px;
    }
    
    .students-grid-enhanced {
        max-height: 250px;
        gap: 12px;
    }
    
    .student-card-enhanced {
        padding: 10px;
        gap: 10px;
    }
    
    .avatar-enhanced {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
    
    .student-info-enhanced h4 {
        font-size: 13px;
    }
    
    .student-email-enhanced {
        font-size: 11px;
    }
    
    .meta-tag-enhanced {
        font-size: 9px;
        padding: 2px 4px;
    }
    
    .student-time-enhanced {
        font-size: 10px;
    }
    
    .card-badge-enhanced {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .card-footer-enhanced {
        margin-top: 16px;
        padding-top: 16px;
    }
    
    .view-all-btn-enhanced {
        font-size: 12px;
    }
    
    /* Touch-friendly interactions */
    .upload-submit-enhanced {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
    }
    
    .enhanced-card:hover {
        transform: none;
    }
    
    .student-card-enhanced:hover {
        transform: none;
        background: rgba(236, 72, 153, 0.08);
    }
}

/* Extra Small Screens (320px and below) */
@media (max-width: 320px) {
    .unique-layout {
        padding: 0 2px 6px;
        gap: 8px;
    }
    
    .dashboard-header {
        padding: 8px;
    }
    
    .header-left h1 {
        font-size: 18px;
    }
    
    .header-left p {
        font-size: 12px;
    }
    
    .stat-item-enhanced {
        padding: 6px 8px;
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }
    
    .stat-number-enhanced {
        font-size: 14px;
    }
    
    .stat-label-enhanced {
        font-size: 9px;
    }
    
    .enhanced-card {
        padding: 8px;
    }
    
    .card-title-enhanced {
        font-size: 14px;
    }
    
    .card-icon-enhanced {
        font-size: 18px;
    }
    
    .card-badge-enhanced {
        font-size: 9px;
        padding: 3px 6px;
    }
    
    .top-bar {
        height: 50px;
        padding: 0 4px;
    }
    
    .logo-icon {
        font-size: 18px;
    }
    
    .logo-text {
        font-size: 14px;
    }
    
    .search-container {
        padding: 3px 6px;
    }
    
    .search-input {
        font-size: 12px;
    }
    
    .logout-btn {
        padding: 3px 6px;
        font-size: 10px;
    }
    
    .upload-area-enhanced {
        padding: 16px 8px;
    }
    
    .upload-icon-enhanced {
        font-size: 28px;
    }
    
    .upload-label-enhanced span {
        font-size: 12px;
    }
    
    .upload-label-enhanced small {
        font-size: 10px;
    }
    
    .upload-submit-enhanced {
        padding: 10px 16px;
        font-size: 12px;
        min-height: 40px;
    }
    
    .students-grid-enhanced {
        max-height: 200px;
        gap: 8px;
    }
    
    .student-card-enhanced {
        padding: 8px;
        gap: 8px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .avatar-enhanced {
        width: 32px;
        height: 32px;
        font-size: 10px;
    }
    
    .student-info-enhanced {
        width: 100%;
    }
    
    .student-info-enhanced h4 {
        font-size: 12px;
    }
    
    .student-email-enhanced {
        font-size: 10px;
    }
    
    .meta-tag-enhanced {
        font-size: 8px;
        padding: 2px 3px;
    }
    
    .student-time-enhanced {
        font-size: 9px;
        align-self: flex-end;
    }
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #374151;
}

.panel-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #A78BFA;
    margin: 0;
}

.live-time {
    font-size: 12px;
    color: #9CA3AF;
    font-weight: 500;
    background: #1F2937;
    padding: 6px 12px;
    border-radius: 12px;
}

/* Stats Stack */
.stats-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.stat-card-unique {
    background: linear-gradient(135deg, #4C1D95, #6B21A8);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: white;
    box-shadow: 0 8px 25px rgba(76, 29, 149, 0.4);
    transition: all 0.3s ease;
}

.stat-card-unique:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(76, 29, 149, 0.6);
}

.stat-card-unique.secondary {
    background: linear-gradient(135deg, #6B21A8, #7C3AED);
}

.stat-card-unique.tertiary {
    background: linear-gradient(135deg, #7C3AED, #A78BFA);
}

.stat-icon-large {
    font-size: 32px;
    opacity: 0.9;
}

.stat-data {
    flex: 1;
}

.stat-number {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.stat-trend {
    font-size: 12px;
    opacity: 0.8;
}

/* Actions Grid */
.actions-grid h3 {
    font-size: 16px;
    font-weight: 700;
    color: #F9FAFB;
    margin-bottom: 16px;
}

.action-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.action-btn-unique {
    background: #1F2937;
    border: 2px solid #374151;
    border-radius: 12px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #D1D5DB;
    transition: all 0.3s ease;
    cursor: pointer;
}

.action-btn-unique:hover {
    background: #4C1D95;
    color: white;
    border-color: #6B21A8;
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.action-btn-unique.primary {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #4C1D95, #6B21A8);
    color: white;
    border: none;
}

.action-icon {
    font-size: 20px;
}

.action-text {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

/* Main Content */
.main-content {
    background: #111827;
    padding: 30px;
    min-height: 100%;
}

/* Upload Section - Unique */
.upload-section-unique {
    background: #1F2937;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(76, 29, 149, 0.3);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.upload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.upload-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #A78BFA;
    margin: 0;
}

.upload-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.upload-badge {
    background: linear-gradient(135deg, #4C1D95, #6B21A8);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upload-area-unique {
    border: 2px dashed #374151;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.upload-area-unique.highlight {
    border-color: #7C3AED;
    background: rgba(124, 58, 237, 0.1);
}

.upload-label-unique {
    cursor: pointer;
    display: block;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
    color: #9CA3AF;
}

.upload-label-unique span {
    display: block;
    color: #F9FAFB;
    font-weight: 600;
    margin-bottom: 8px;
}

.upload-label-unique small {
    color: #9CA3AF;
    font-size: 12px;
}

.upload-submit {
    background: linear-gradient(135deg, #4C1D95, #6B21A8);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 29, 149, 0.5);
}

/* Students Timeline */
.students-timeline {
    background: #1F2937;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(76, 29, 149, 0.3);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.timeline-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #A78BFA;
    margin: 0;
}

.timeline-stats {
    display: flex;
    align-items: center;
    gap: 16px;
}

.total-badge {
    background: #374151;
    color: #A78BFA;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 12px;
}

.view-all-link {
    color: #A78BFA;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    color: #C4B5FD;
}

.search-results {
    background: #374151;
    color: #A78BFA;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 12px;
}

/* Timeline Container */
.timeline-container {
    position: relative;
}

.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.marker-dot {
    width: 12px;
    height: 12px;
    background: #7C3AED;
    border-radius: 50%;
    border: 3px solid #1F2937;
    box-shadow: 0 0 0 3px #7C3AED;
    z-index: 2;
}

.marker-line {
    width: 2px;
    height: 100%;
    background: #374151;
    margin-top: 8px;
}

.timeline-content {
    flex: 1;
}

.student-card-unique {
    background: #111827;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #374151;
    transition: all 0.3s ease;
}

.student-card-unique:hover {
    background: #1F2937;
    box-shadow: 0 8px 25px rgba(76, 29, 149, 0.3);
}

.student-header-unique {
    display: flex;
    align-items: center;
    gap: 16px;
}

.student-avatar-unique {
    position: relative;
    flex-shrink: 0;
}

.avatar-medium {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(76, 29, 149, 0.4);
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #10B981;
    border: 2px solid #111827;
    border-radius: 50%;
}

.student-info-unique {
    flex: 1;
}

.student-info-unique h4 {
    font-size: 16px;
    font-weight: 700;
    color: #F9FAFB;
    margin: 0 0 4px 0;
}

.student-email {
    color: #9CA3AF;
    font-size: 14px;
    margin: 0 0 12px 0;
}

.student-meta-unique {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.meta-item {
    background: #374151;
    color: #A78BFA;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #4B5563;
}

.student-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.time-ago {
    font-size: 12px;
    color: #9CA3AF;
    font-weight: 500;
}

.view-btn {
    background: #4C1D95;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: #6B21A8;
}

/* Empty Timeline */
.empty-timeline {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon-large {
    font-size: 64px;
    opacity: 0.3;
    margin-bottom: 20px;
}

.empty-timeline h4 {
    font-size: 20px;
    font-weight: 700;
    color: #F9FAFB;
    margin-bottom: 8px;
}

.empty-timeline p {
    color: #9CA3AF;
    margin-bottom: 24px;
}

/* Right Panel */
.right-panel {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(124, 58, 237, 0.2);
    padding: 30px 20px;
    min-height: 100%;
}

.activity-filter {
    margin-bottom: 20px;
}

.filter-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #374151;
    border-radius: 8px;
    background: #1F2937;
    color: #F9FAFB;
    font-size: 12px;
}

/* Activity Feed */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #111827;
    border-radius: 12px;
    border: 1px solid #374151;
}

.activity-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 13px;
    font-weight: 600;
    color: #F9FAFB;
    margin-bottom: 2px;
}

.activity-time {
    font-size: 11px;
    color: #9CA3AF;
}

/* System Info */
.system-info {
    background: #111827;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #374151;
    margin-top: 20px;
}

.system-info h3 {
    font-size: 14px;
    font-weight: 700;
    color: #A78BFA;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.system-info h3::before {
    content: "💻";
    font-size: 16px;
}

.status-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-item-unique {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #1F2937;
    border-radius: 12px;
    border: 1px solid #374151;
    transition: all 0.3s ease;
}

.status-item-unique:hover {
    background: #4C1D95;
    transform: translateX(4px);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.status-dot.green {
    background: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
    0%, 100% { 
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    }
    50% { 
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.1);
    }
}

.status-item-unique span {
    font-size: 12px;
    font-weight: 600;
    color: #2C1810;
    flex: 1;
}

.status-item-unique .status-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.status-item-unique .status-label {
    font-size: 12px;
    font-weight: 600;
    color: #F9FAFB;
}

.status-item-unique .status-value {
    font-size: 10px;
    color: #9CA3AF;
    font-weight: 500;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #800020 0%, #B22222 50%, #8B0000 100%);
    border-radius: 32px;
    padding: 60px;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(128, 0, 32, 0.25);
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hero-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23hero-pattern)"/></svg>');
    pointer-events: none;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    color: white;
    margin-bottom: 16px;
    line-height: 1.1;
}

.greeting {
    display: block;
    font-size: 32px;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 8px;
}

.user-name {
    display: block;
    background: linear-gradient(45deg, #FFD700, #FFF8DC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    font-weight: 500;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.hero-stat {
    text-align: center;
}

.hero-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 4px;
}

.hero-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.hero-visual {
    position: relative;
    width: 300px;
    height: 200px;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    color: white;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: 20px;
    left: 20px;
    animation-delay: 0s;
}

.card-2 {
    top: 80px;
    right: 40px;
    animation-delay: 2s;
}

.card-3 {
    bottom: 20px;
    left: 60px;
    animation-delay: 4s;
}

.card-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.card-text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-time {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.time-display {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

/* Stats Overview */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.stat-item {
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 24px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.stat-circle {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-bg {
    fill: none;
    stroke: #f0f0f0;
    stroke-width: 6;
}

.progress-fill {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dasharray 1s ease;
}

.stat-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.stat-percent {
    font-size: 18px;
    font-weight: 800;
    color: #333;
}

.course-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #800020, #B22222);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.stat-info {
    flex: 1;
}

.stat-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.stat-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.stat-change {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

.stat-change.positive {
    background: #E8F5E8;
    color: #228B22;
}

.stat-change.neutral {
    background: #f3f4f6;
    color: #6b7280;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-text h1 {
    font-size: 42px;
    font-weight: 800;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.header-text p {
    font-size: 18px;
    color: var(--text-gray);
    font-weight: 500;
}

.header-time {
    text-align: right;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 600;
    background: var(--bg-light);
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient);
}

.stat-card.primary::before { background: linear-gradient(135deg, #667eea, #764ba2); }
.stat-card.secondary::before { background: linear-gradient(135deg, #a855f7, #ec4899); }
.stat-card.tertiary::before { background: linear-gradient(135deg, #14b8a6, #10b981); }
.stat-card.success::before { background: linear-gradient(135deg, #10b981, #22c55e); }

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.stat-icon {
    font-size: 48px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 16px;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-trend {
    text-align: right;
    flex-shrink: 0;
}

.stat-trend span {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}

.trend-positive { color: var(--success); }
.trend-neutral { color: var(--text-gray); }
.trend-success { color: var(--success); }

.stat-trend small {
    font-size: 11px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upload-section, .recent-imports, .view-data-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Main Grid Layout */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    margin-bottom: 48px;
}

.content-section {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.section-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f8f9fa;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-title h2 {
    font-size: 28px;
    font-weight: 800;
    color: #333;
    margin: 0;
}

.section-badge {
    background: linear-gradient(135deg, #800020, #B22222);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-all-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #800020;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(128, 0, 32, 0.05);
}

.view-all-btn:hover {
    background: rgba(128, 0, 32, 0.1);
    transform: translateX(4px);
}

/* Student List */
.student-list {
    display: grid;
    gap: 20px;
}

.student-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: #fafbfc;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.student-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #800020, #B22222);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.student-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    background: white;
}

.student-item:hover::before {
    transform: scaleY(1);
}

.student-avatar-new {
    position: relative;
    flex-shrink: 0;
}

.avatar-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
}

.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid white;
}

.status-dot.online {
    background: #22c55e;
}

.student-details {
    flex: 1;
}

.student-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.student-header h4 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.student-id-new {
    background: #f3f4f6;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
}

.student-email-new {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 12px;
}

.student-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.course-tag {
    background: #FFF5F5;
    color: #800020;
    border: 1px solid #E8D5C4;
}

.year-tag {
    background: #FFE4E1;
    color: #8B0000;
    border: 1px solid #D2B48C;
}

.student-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #800020;
    color: white;
    transform: scale(1.05);
}

.join-date {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

/* Empty State */
.empty-state-new {
    text-align: center;
    padding: 80px 40px;
}

.empty-illustration {
    position: relative;
    margin-bottom: 32px;
}

.empty-icon-big {
    font-size: 80px;
    opacity: 0.3;
    margin-bottom: 16px;
}

.empty-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.empty-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e5e7eb;
    animation: pulse 2s ease-in-out infinite;
}

.empty-dots span:nth-child(2) {
    animation-delay: 0.5s;
}

.empty-dots span:nth-child(3) {
    animation-delay: 1s;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.empty-state-new h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.empty-state-new p {
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 32px;
}

.empty-actions {
    display: flex;
    justify-content: center;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.action-list {
    display: grid;
    gap: 12px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.action-item:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
    transform: translateX(4px);
    text-decoration: none;
    color: inherit;
}

.action-icon-new {
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.3s ease;
}

.action-item:hover .action-icon-new {
    background: linear-gradient(135deg, #800020, #B22222);
    color: white;
}

.action-content {
    flex: 1;
}

.action-content span {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.action-content small {
    font-size: 12px;
    color: #6b7280;
}

/* Status Card */
.status-list {
    display: grid;
    gap: 16px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-indicator.green {
    background: #228B22;
    box-shadow: 0 0 0 4px rgba(34, 139, 34, 0.1);
}

.status-text {
    flex: 1;
}

.status-text span {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.status-text small {
    font-size: 12px;
    color: #6b7280;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.section-header h2 {
    color: var(--text-dark);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.section-header p {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 0;
}

.section-actions {
    display: flex;
    gap: 12px;
}

/* Student Cards */
.student-cards {
    display: grid;
    gap: 20px;
}

.student-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.student-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--bg-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.student-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.student-card:hover::before {
    opacity: 1;
}

.student-avatar {
    flex-shrink: 0;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

.student-info {
    flex: 1;
}

.student-info h4 {
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.student-id {
    color: var(--primary-blue);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.student-email {
    color: var(--text-gray);
    font-size: 13px;
    margin-bottom: 8px;
}

.student-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.course-badge, .year-badge {
    background: var(--bg-light);
    color: var(--text-gray);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.student-date {
    flex-shrink: 0;
    color: var(--text-gray);
    font-size: 12px;
    font-weight: 500;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.empty-state p {
    font-size: 14px;
    color: var(--text-gray);
}

/* Quick Actions */
.quick-actions {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: fit-content;
}

.quick-actions h3 {
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.action-grid {
    display: grid;
    gap: 16px;
}

.action-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: inherit;
}

.action-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.action-card h4 {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.action-card p {
    color: var(--text-gray);
    font-size: 12px;
    margin: 0;
}

/* Upload Area Enhancements */
.upload-label.highlight {
    border-color: var(--primary-blue);
    background: rgba(102, 126, 234, 0.05);
    transform: scale(1.02);
}

.section-header h2 {
    color: var(--text-dark);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 24px;
}

.upload-area {
    margin-bottom: 24px;
}

.upload-area input[type="file"] {
    display: none;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    border: 3px dashed var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-gray);
    background: var(--bg-light);
}

.upload-label:hover {
    border-color: var(--primary-blue);
    background: #dbeafe;
}

.upload-label svg {
    color: var(--primary-blue);
    margin-bottom: 16px;
}

.upload-label span {
    font-size: 15px;
    font-weight: 500;
}

.file-name {
    margin-top: 12px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 14px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
}

.data-table thead {
    background: var(--bg-light);
}

.data-table th {
    padding: 16px;
    text-align: left;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-dark);
}

.data-table tbody tr {
    transition: background 0.2s ease;
}

.data-table tbody tr:hover {
    background: var(--bg-light);
}

.text-success {
    color: var(--success);
    font-weight: 600;
}

.text-error {
    color: var(--error);
    font-weight: 600;
}

.no-data {
    text-align: center;
    color: var(--text-gray);
    padding: 48px;
    font-size: 15px;
}

.view-data-section {
    text-align: center;
}

.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
}

.page-info {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    background: var(--bg-light);
    border-radius: 8px;
}

.result-wrapper {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 48px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.result-wrapper h1 {
    color: var(--text-dark);
    margin-bottom: 24px;
    font-weight: 700;
}

.import-summary {
    margin: 32px 0;
}

.import-summary h2 {
    color: var(--text-dark);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.summary-item {
    background: var(--bg-light);
    padding: 24px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid var(--border-color);
}

.summary-label {
    font-size: 13px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.summary-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-blue);
}

.error-details {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid var(--error);
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}

.error-details h3 {
    color: var(--error);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.error-details ul {
    list-style: none;
    padding: 0;
}

.error-details li {
    padding: 10px 0;
    color: var(--text-dark);
    font-size: 13px;
    border-bottom: 1px solid #fee2e2;
}

.error-details li:last-child {
    border-bottom: none;
}

.note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-gray);
    font-style: italic;
}

.action-buttons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-wrapper {
    animation: fadeInUp 0.6s ease-out;
}

.form-group {
    animation: fadeInUp 0.6s ease-out backwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }

@media (max-width: 480px) {
    .top-bar {
        height: 60px;
        padding: 0 15px;
    }
    
    .logo-icon {
        font-size: 24px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    .action-btn-unique {
        padding: 12px 8px;
    }
    
    .action-icon {
        font-size: 18px;
    }
    
    .action-text {
        font-size: 11px;
    }
    
    .upload-section-unique {
        padding: 15px;
    }
    
    .upload-area-unique {
        padding: 20px 15px;
    }
    
    .upload-icon {
        font-size: 36px;
    }
    
    .students-timeline {
        padding: 15px;
    }
    
    .student-card-unique {
        padding: 15px;
    }
    
    .avatar-medium {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .student-info-unique h4 {
        font-size: 14px;
    }
    
    .student-email {
        font-size: 12px;
    }
    
    .meta-item {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .view-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* Light Mode Styles */
body.light-mode {
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 50%, #D1D5DB 100%);
    color: #1F2937;
}

body.light-mode .top-bar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(156, 163, 175, 0.2);
}

body.light-mode .logo-text {
    color: #EC4899;
}

body.light-mode .search-container {
    background: #F9FAFB;
    border-color: #E5E7EB;
}

body.light-mode .search-container:focus-within {
    border-color: #6B46C1;
    box-shadow: 0 0 0 4px rgba(107, 70, 193, 0.1);
}

body.light-mode .search-input {
    color: #1F2937;
}

body.light-mode .search-input::placeholder {
    color: #6B7280;
}

body.light-mode .search-btn {
    color: #6B46C1;
}

body.light-mode .user-name-small {
    color: #1F2937;
}

body.light-mode .user-role {
    color: #6B7280;
}

body.light-mode .logout-btn {
    background: linear-gradient(135deg, #EC4899, #DB2777);
    color: white;
}

body.light-mode .logout-btn:hover {
    background: linear-gradient(135deg, #F472B6, #EC4899);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

body.light-mode .dark-mode-toggle:hover {
    background: rgba(107, 70, 193, 0.1);
}

body.light-mode .left-panel {
    background: rgba(255, 255, 255, 0.95);
    border-right: 1px solid rgba(156, 163, 175, 0.2);
}

body.light-mode .panel-header {
    border-bottom: 2px solid #E5E7EB;
}

body.light-mode .panel-header h2 {
    color: #6B46C1;
}

body.light-mode .live-time {
    background: #F3F4F6;
    color: #6B7280;
}

body.light-mode .main-content {
    background: #F9FAFB;
}

body.light-mode .upload-section-unique {
    background: white;
    border: 1px solid #E5E7EB;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

body.light-mode .upload-header h3 {
    color: #6B46C1;
}

body.light-mode .upload-area-unique {
    border-color: #D1D5DB;
}

body.light-mode .upload-area-unique.highlight {
    border-color: #6B46C1;
    background: rgba(107, 70, 193, 0.05);
}

body.light-mode .upload-icon {
    color: #9CA3AF;
}

body.light-mode .upload-label-unique span {
    color: #1F2937;
}

body.light-mode .upload-label-unique small {
    color: #6B7280;
}

body.light-mode .students-timeline {
    background: white;
    border: 1px solid #E5E7EB;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

body.light-mode .timeline-header h3 {
    color: #6B46C1;
}

body.light-mode .total-badge,
body.light-mode .search-results {
    background: #F3F4F6;
    color: #6B46C1;
}

body.light-mode .view-all-link {
    color: #6B46C1;
}

body.light-mode .view-all-link:hover {
    color: #8B5CF6;
}

body.light-mode .marker-dot {
    background: #6B46C1;
    border-color: white;
    box-shadow: 0 0 0 3px #6B46C1;
}

body.light-mode .marker-line {
    background: #E5E7EB;
}

body.light-mode .student-card-unique {
    background: white;
    border: 1px solid #E5E7EB;
}

body.light-mode .student-card-unique:hover {
    background: #F9FAFB;
    box-shadow: 0 8px 25px rgba(107, 70, 193, 0.1);
}

body.light-mode .student-info-unique h4 {
    color: #1F2937;
}

body.light-mode .student-email {
    color: #6B7280;
}

body.light-mode .meta-item {
    background: #F3F4F6;
    color: #6B46C1;
    border: 1px solid #E5E7EB;
}

body.light-mode .time-ago {
    color: #6B7280;
}

body.light-mode .view-btn {
    background: #6B46C1;
}

body.light-mode .view-btn:hover {
    background: #8B5CF6;
}

body.light-mode .empty-timeline h4 {
    color: #1F2937;
}

body.light-mode .empty-timeline p {
    color: #6B7280;
}

body.light-mode .right-panel {
    background: rgba(255, 255, 255, 0.95);
    border-left: 1px solid rgba(156, 163, 175, 0.2);
}

body.light-mode .filter-select {
    background: white;
    border: 1px solid #E5E7EB;
    color: #1F2937;
}

body.light-mode .activity-item {
    background: white;
    border: 1px solid #E5E7EB;
}

body.light-mode .activity-title {
    color: #1F2937;
}

body.light-mode .activity-time {
    color: #6B7280;
}

body.light-mode .system-info {
    background: white;
    border: 1px solid #E5E7EB;
}

body.light-mode .system-info h3 {
    color: #6B46C1;
}

body.light-mode .status-item-unique {
    background: white;
    border: 1px solid #E5E7EB;
}

body.light-mode .status-item-unique:hover {
    background: #F3F4F6;
}

body.light-mode .status-item-unique .status-label {
    color: #1F2937;
}

body.light-mode .status-item-unique .status-value {
    color: #6B7280;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-container {
    position: relative;
    background: #1F2937;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid #374151;
    background: linear-gradient(135deg, #4C1D95, #6B21A8);
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 30px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

/* Student Detail View */
.student-detail-view {
    color: #F9FAFB;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #374151;
}

.detail-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 24px;
    text-transform: uppercase;
    box-shadow: 0 8px 25px rgba(76, 29, 149, 0.4);
    flex-shrink: 0;
}

.detail-info h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: #A78BFA;
}

.detail-id {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #9CA3AF;
    font-weight: 500;
}

.detail-email {
    margin: 0;
    font-size: 16px;
    color: #D1D5DB;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #111827;
    border-radius: 12px;
    border: 1px solid #374151;
}

.detail-label {
    font-size: 14px;
    font-weight: 600;
    color: #9CA3AF;
}

.detail-value {
    font-size: 14px;
    font-weight: 500;
    color: #F9FAFB;
    text-align: right;
}

.detail-timestamps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    padding: 20px;
    background: #111827;
    border-radius: 12px;
    border: 1px solid #374151;
}

.timestamp-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timestamp-label {
    font-size: 13px;
    font-weight: 600;
    color: #9CA3AF;
}

.timestamp-value {
    font-size: 13px;
    color: #D1D5DB;
}

.detail-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-close {
    background: linear-gradient(135deg, #4C1D95, #6B21A8);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: linear-gradient(135deg, #6B21A8, #7C3AED);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 29, 149, 0.4);
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #A78BFA;
    font-size: 16px;
}

.error-message {
    text-align: center;
    padding: 40px;
    color: #EF4444;
    font-size: 16px;
}

/* Light Mode Modal Styles */
body.light-mode .modal-container {
    background: white;
    border: 1px solid #E5E7EB;
}

body.light-mode .modal-header {
    border-bottom: 1px solid #E5E7EB;
}

body.light-mode .modal-header h3 {
    color: #1F2937;
}

body.light-mode .modal-close {
    color: #1F2937;
}

body.light-mode .modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

body.light-mode .detail-header {
    border-bottom: 1px solid #E5E7EB;
}

body.light-mode .detail-info h2 {
    color: #6B46C1;
}

body.light-mode .detail-id {
    color: #6B7280;
}

body.light-mode .detail-email {
    color: #374151;
}

body.light-mode .detail-item {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
}

body.light-mode .detail-label {
    color: #6B7280;
}

body.light-mode .detail-value {
    color: #1F2937;
}

body.light-mode .detail-timestamps {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
}

body.light-mode .timestamp-label {
    color: #6B7280;
}

body.light-mode .timestamp-value {
    color: #374151;
}

body.light-mode .loading-spinner {
    color: #6B46C1;
}

body.light-mode .error-message {
    color: #EF4444;
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 0 20px;
    }
    
    .hero-section {
        padding: 40px 24px;
        border-radius: 20px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .greeting {
        font-size: 24px;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 32px;
    }
    
    .hero-visual {
        width: 250px;
        height: 150px;
    }
    
    .stats-overview {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-item {
        padding: 24px;
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .content-section {
        padding: 24px;
        border-radius: 16px;
    }
    
    .section-header-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding-bottom: 16px;
    }
    
    .section-title h2 {
        font-size: 22px;
    }
    
    .student-item {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 20px;
    }
    
    .student-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .student-actions {
        justify-content: center;
    }
    
    .sidebar {
        grid-template-columns: 1fr;
    }
    
    .sidebar-card {
        padding: 20px;
    }
    
    .upload-section, .recent-imports, .view-data-section {
        padding: 24px;
        border-radius: 16px;
    }
    
    .form-wrapper {
        padding: 32px 24px;
        margin: 16px;
    }
    
    .form-header h1 {
        font-size: 28px;
    }
    
    .form-group input {
        padding: 14px 18px;
        font-size: 15px;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 32px 16px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .greeting {
        font-size: 20px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .hero-number {
        font-size: 28px;
    }
    
    .content-section {
        padding: 20px 16px;
    }
    
    .section-title h2 {
        font-size: 20px;
    }
    
    .student-item {
        padding: 16px;
    }
    
    .avatar-circle {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }
    
    .sidebar-card {
        padding: 16px;
    }
}
