:root {
    /* Dark Purple Theme Color Palette */
    --primary-gradient: linear-gradient(135deg, #4C1D95 0%, #6B21A8 50%, #7C3AED 100%);
    --primary-purple: #4C1D95;
    --primary-purple-dark: #3730A3;
    --primary-purple-light: #6B21A8;
    --secondary-dark: #1E1B4B;
    --secondary-darker: #0F0A3C;
    --accent-bright: #A78BFA;
    --accent-light: #C4B5FD;
    --bg-gradient: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #4C1D95 100%);
    --bg-light: #1F2937;
    --bg-white: #111827;
    --text-dark: #F9FAFB;
    --text-gray: #D1D5DB;
    --border-color: #374151;
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    --shadow-sm: 0 2px 4px rgba(76, 29, 149, 0.3);
    --shadow-md: 0 4px 6px rgba(76, 29, 149, 0.4);
    --shadow-lg: 0 10px 15px rgba(76, 29, 149, 0.5);
    --shadow-xl: 0 20px 25px rgba(76, 29, 149, 0.6);
    --shadow-glow: 0 0 30px rgba(124, 58, 237, 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, #800020 0%, #8B0000 50%, #A52A2A 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: #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-blue);
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.15),
        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(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(102, 126, 234, 0.4);
}

.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: #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: #6B46C1;
    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-blue-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-blue);
    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;
}

/* Unique Dashboard Layout */
body {
    background: linear-gradient(135deg, #0F0A3C 0%, #1E1B4B 50%, #312E81 100%);
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
}

/* Top Bar Navigation */
.top-bar {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.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: #A78BFA;
    margin: 0;
}

.top-bar-center {
    flex: 1;
    max-width: 500px;
    margin: 0 40px;
}

.search-container {
    display: flex;
    align-items: center;
    background: #1F2937;
    border-radius: 25px;
    padding: 8px 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-container:focus-within {
    border-color: #7C3AED;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.2);
}

.search-input {
    border: none;
    background: none;
    outline: none;
    flex: 1;
    font-size: 14px;
    color: #F9FAFB;
}

.search-input::placeholder {
    color: #9CA3AF;
}

.search-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #A78BFA;
}

.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(107, 70, 193, 0.2);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name-small {
    font-size: 14px;
    font-weight: 600;
    color: #F9FAFB;
}

.user-role {
    font-size: 12px;
    color: #9CA3AF;
}

.logout-btn {
    background: linear-gradient(135deg, #4C1D95, #6B21A8);
    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, #6B21A8, #7C3AED);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 29, 149, 0.3);
}

.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(124, 58, 237, 0.2);
}

.dark-mode-icon {
    font-size: 16px;
    display: block;
}

/* Unique Layout - Three Column */
.unique-layout {
    display: grid;
    grid-template-columns: 320px 1fr 280px;
    gap: 0;
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    position: relative;
}

/* Left Panel */
.left-panel {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(124, 58, 237, 0.2);
    padding: 30px 20px;
    overflow-y: auto;
}

.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; }
.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 Design for Unique Layout */
@media (max-width: 1400px) {
    .unique-layout {
        grid-template-columns: 280px 1fr 260px;
    }
    
    .top-bar-center {
        margin: 0 20px;
    }
}

@media (max-width: 1200px) {
    .unique-layout {
        grid-template-columns: 260px 1fr;
    }
    
    .right-panel {
        display: none;
    }
    
    .top-bar-center {
        max-width: 400px;
        margin: 0 20px;
    }
}

@media (max-width: 768px) {
    .unique-layout {
        grid-template-columns: 1fr;
        position: static;
        min-height: auto;
        margin-top: 70px;
    }
    
    .left-panel {
        position: static;
        border-right: none;
        border-bottom: 1px solid rgba(128, 0, 32, 0.1);
        padding: 20px;
    }
    
    .main-content {
        padding: 20px;
        min-height: auto;
    }
    
    .top-bar {
        padding: 0 20px;
    }
    
    .top-bar-center {
        display: none;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .user-info {
        display: none;
    }
    
    .action-buttons-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-stack {
        gap: 12px;
    }
    
    .stat-card-unique {
        padding: 16px;
    }
    
    .stat-icon-large {
        font-size: 24px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .upload-section-unique {
        padding: 20px;
    }
    
    .upload-area-unique {
        padding: 30px 20px;
    }
    
    .students-timeline {
        padding: 20px;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .student-header-unique {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .student-time {
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
    
    .timeline-item {
        gap: 16px;
    }
    
    .timeline-marker {
        display: none;
    }
}

@media (max-width: 480px) {
    .top-bar {
        height: 60px;
        padding: 0 15px;
    }
    
    .unique-layout {
        margin-top: 60px;
    }
    
    .logo-icon {
        font-size: 24px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .left-panel {
        padding: 15px;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .stat-card-unique {
        padding: 12px;
    }
    
    .stat-icon-large {
        font-size: 20px;
    }
    
    .stat-number {
        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: #6B46C1;
}

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, #6B46C1, #9333EA);
    color: white;
}

body.light-mode .logout-btn:hover {
    background: linear-gradient(135deg, #8B5CF6, #A855F7);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 70, 193, 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;
    }
}
