:root {
    /* Dark Modern Color Palette */
    --primary-gradient: linear-gradient(135deg, #8e1616 0%, #000000 100%);
    --primary-black: #000000;
    --primary-red: #8e1616;
    --primary-red-dark: #5a0e0e;
    --primary-red-light: #b71c1c;
    --secondary-brown: #e8c999;
    --accent-cream: #f8eedf;
    --bg-gradient: linear-gradient(135deg, #000000 0%, #8e1616 50%, #e8c999 100%);
    --bg-light: #f8eedf;
    --bg-white: #ffffff;
    --text-dark: #000000;
    --text-gray: #8e1616;
    --border-color: #e8c999;
    --success: #8e1616;
    --error: #b71c1c;
    --warning: #e8c999;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(142, 22, 22, 0.4);
}

* {
    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, #000000 0%, #8e1616 50%, #e8c999 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-dark);
    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="white" opacity="0.3"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.3"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.2"/><circle cx="10" cy="50" r="0.5" fill="white" opacity="0.2"/><circle cx="90" cy="30" r="0.5" fill="white" opacity="0.2"/></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.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 
        0 20px 25px rgba(0, 0, 0, 0.15),
        0 10px 10px rgba(0, 0, 0, 0.04),
        var(--shadow-glow);
    padding: 56px;
    width: 100%;
    max-width: 520px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    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, 0, 0, 0.2),
        0 15px 15px rgba(0, 0, 0, 0.06),
        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: var(--text-gray);
    font-size: 16px;
    font-weight: 500;
}

.form-group {
    margin-bottom: 28px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.2px;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 
        0 0 0 4px rgba(142, 22, 22, 0.15),
        var(--shadow-md);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: var(--text-gray);
    opacity: 0.6;
}

.form-group small {
    display: block;
    margin-top: 8px;
    color: var(--text-gray);
    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(102, 126, 234, 0.3);
}

.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(142, 22, 22, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--secondary-gray);
}

.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: #991b1b;
    border-color: var(--error);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #166534;
    border-color: var(--success);
}

.form-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid var(--border-color);
}

.form-footer p {
    color: var(--text-gray);
    font-size: 15px;
    font-weight: 500;
}

.form-footer a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 700;
    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-red-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-red);
    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-gray);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    background: var(--bg-light);
    border-radius: 8px;
}

/* Enhanced Dashboard Header */
.dashboard-header {
    margin-bottom: 48px;
    padding: 48px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 32px;
}

.header-text h1 {
    font-size: 48px;
    font-weight: 800;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    line-height: 1.1;
}

.header-text p {
    font-size: 18px;
    color: var(--text-gray);
    font-weight: 500;
    margin-bottom: 24px;
}

.header-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-item .stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-red);
    line-height: 1;
}

.stat-item .stat-label {
    font-size: 12px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.header-time {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

.header-time #currentDateTime {
    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);
}

.header-actions {
    display: flex;
    gap: 12px;
}

.btn-small {
    padding: 10px 20px;
    font-size: 14px;
}

/* Enhanced Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    margin-bottom: 32px;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Enhanced Stats Cards */
.stat-card.enhanced {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat-card.enhanced::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient);
}

.stat-card.enhanced:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.stat-card.enhanced .stat-icon {
    font-size: 40px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 16px;
    flex-shrink: 0;
    color: var(--primary-red);
}

.stat-card.enhanced .stat-content {
    flex: 1;
}

.stat-card.enhanced .stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1;
}

.stat-card.enhanced .stat-label {
    font-size: 14px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 8px;
}

.stat-change {
    font-size: 12px;
    font-weight: 600;
    display: block;
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.neutral {
    color: var(--text-gray);
}

.stat-card.enhanced .stat-trend {
    text-align: right;
    flex-shrink: 0;
}

.stat-card.enhanced .stat-trend span {
    display: block;
    font-size: 24px;
    margin-bottom: 4px;
}

.stat-card.enhanced .stat-trend small {
    font-size: 11px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced Upload Section */
.upload-section.enhanced {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 48px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.section-title h2 {
    color: var(--text-dark);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-title p {
    color: var(--text-gray);
    font-size: 16px;
    margin-bottom: 0;
}

.section-badge {
    display: flex;
    align-items: center;
}

.badge {
    background: var(--primary-red);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upload-guide {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid var(--border-color);
}

.guide-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.guide-item:last-child {
    margin-bottom: 0;
}

.guide-number {
    width: 32px;
    height: 32px;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.guide-text {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.upload-area.enhanced {
    margin-bottom: 32px;
}

.upload-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 24px;
    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-icon {
    color: var(--primary-red);
}

.upload-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.upload-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.upload-subtitle {
    font-size: 14px;
    color: var(--text-gray);
}

.upload-actions {
    display: flex;
    justify-content: center;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Enhanced Recent Imports */
.recent-imports.enhanced {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 48px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.view-toggle {
    display: flex;
    background: var(--bg-light);
    border-radius: 8px;
    padding: 4px;
    border: 1px solid var(--border-color);
}

.toggle-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-btn.active {
    background: var(--primary-red);
    color: white;
}

/* Enhanced Student Cards */
.student-cards.enhanced {
    display: grid;
    gap: 20px;
}

.student-card.enhanced {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.student-card.enhanced::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.enhanced:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.student-card.enhanced:hover::before {
    opacity: 1;
}

.student-avatar {
    flex-shrink: 0;
    position: relative;
}

.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
}

.status-dot.online {
    background: #10b981;
}

.student-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-gray);
}

.action-btn:hover {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

.student-date {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.time-ago {
    font-size: 11px;
    color: var(--text-gray);
    font-weight: 500;
}

/* Enhanced Empty State */
.empty-state.enhanced {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-gray);
}

.empty-state.enhanced .empty-icon {
    color: var(--text-gray);
    margin-bottom: 24px;
    opacity: 0.5;
}

.empty-state.enhanced h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.empty-state.enhanced p {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 32px;
}

/* Enhanced Quick Actions */
.quick-actions.enhanced {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.quick-actions.enhanced h3 {
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.quick-actions.enhanced .section-header p {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 24px;
}

.action-card.enhanced {
    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;
    position: relative;
    overflow: hidden;
}

.action-card.enhanced::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary-red);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-card.enhanced:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: inherit;
}

.action-card.enhanced:hover::before {
    opacity: 1;
}

.action-card.enhanced .action-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    flex-shrink: 0;
}

.action-card.enhanced .action-content {
    flex: 1;
}

.action-card.enhanced h4 {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.action-card.enhanced p {
    color: var(--text-gray);
    font-size: 12px;
    margin: 0;
}

.action-arrow {
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.action-card.enhanced:hover .action-arrow {
    color: var(--primary-red);
    transform: translateX(4px);
}

/* Activity Feed */
.activity-feed {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.activity-feed h3 {
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.activity-feed .section-header p {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 24px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.activity-item:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon.import {
    background: rgba(142, 22, 22, 0.1);
    color: var(--primary-red);
}

.activity-icon.user {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.activity-icon.system {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.activity-content {
    flex: 1;
}

.activity-content p {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.activity-content span {
    color: var(--text-gray);
    font-size: 12px;
    font-weight: 500;
}

/* Responsive Enhancements */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    
    .header-stats {
        gap: 20px;
    }
    
    .header-time {
        align-items: flex-start;
    }
    
    .header-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        grid-template-columns: 1fr;
    }
    
    .upload-label {
        flex-direction: column;
        gap: 16px;
    }
    
    .student-card.enhanced {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .student-actions {
        justify-content: center;
    }
    
    .student-date {
        align-items: center;
    }
}

/* 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-red);
    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-red);
    background: rgba(142, 22, 22, 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-red);
    background: rgba(142, 22, 22, 0.05);
}

.upload-label svg {
    color: var(--primary-red);
    margin-bottom: 16px;
}

.upload-label span {
    font-size: 15px;
    font-weight: 500;
}

.file-name {
    margin-top: 12px;
    color: var(--primary-red);
    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-red);
}

.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; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }

/* Responsive Enhancements */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .header-time {
        text-align: center;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .stat-trend {
        text-align: center;
    }
    
    .student-card {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .student-meta {
        justify-content: center;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-wrapper {
        padding: 40px 32px;
        margin: 20px;
    }
    
    .form-header h1 {
        font-size: 28px;
    }
    
    .form-group input {
        padding: 14px 18px;
        font-size: 15px;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .upload-section, .recent-imports, .view-data-section {
        padding: 24px;
    }
    
    .quick-actions {
        padding: 24px;
    }
}
