/* CSS Variables for Theming */
:root {
    --primary-color: #2563EB;
    --primary-hover: #1D4ED8;
    --primary-light: rgba(37, 99, 235, 0.08);
    --bg-color: #F0F4F8;
    --surface-color: #FFFFFF;
    --surface-elevated: #FFFFFF;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    --border-color: #e2e8f0;
    --border-color-subtle: #f1f5f9;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.625rem;
    --radius-2xl: 0.75rem;
    --transition-speed: 0.3s;
    --transition-fast: 0.15s;
    --font-family: 'Inter', sans-serif;
    --sidebar-width: 280px;
    --navbar-height: 64px;
    --content-max-width: 1140px;
}

body.dark-mode {
    --bg-color: #080e1e;
    --surface-color: rgba(15, 23, 42, 0.75);
    --surface-elevated: rgba(20, 30, 52, 0.8);
    --text-primary: #e8edf5;
    --text-secondary: #8b9bc0;
    --text-tertiary: #5a6a8a;
    --border-color: rgba(56, 78, 122, 0.3);
    --border-color-subtle: rgba(40, 58, 100, 0.2);
    --primary-color: #3B82F6;
    --primary-hover: #5B9BF8;
    --primary-light: rgba(59, 130, 246, 0.1);
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(100, 130, 200, 0.12);
    --glass-blur: blur(16px) saturate(180%);
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    transition: background-color var(--transition-speed), color var(--transition-speed);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    letter-spacing: -0.011em;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    padding: 0.75rem 1.25rem;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: var(--radius-md);
    font-weight: 600;
    z-index: 9999;
    transition: top 0.2s;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

/* Hidden utility (replaces inline display:none) */
.hidden {
    display: none !important;
}

/* Focus Visible Styles for Keyboard Navigation */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Selection Styling */
::selection {
    background-color: rgba(59, 130, 246, 0.2);
    color: var(--text-primary);
}

/* Layout */
#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigation Bar */
.navbar {
    border-bottom: 1px solid var(--border-color-subtle);
    padding: 0 1.5rem;
    height: var(--navbar-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-xs);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background-color: rgba(255, 255, 255, 0.82);
    transition: box-shadow var(--transition-fast), background-color var(--transition-speed);
}

body.dark-mode .navbar {
    background-color: rgba(8, 14, 30, 0.7);
    border-bottom-color: var(--glass-border);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    letter-spacing: -0.035em;
}

.nav-brand .material-icons-round {
    font-size: 1.6rem;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-item {
    text-decoration: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast) ease;
    position: relative;
}

.nav-item .material-icons-round {
    font-size: 1.2rem;
}

.nav-item:hover {
    color: var(--text-primary);
    background-color: var(--primary-light);
}

.nav-item.active {
    color: var(--primary-color);
    background-color: var(--primary-light);
    font-weight: 600;
}

/* User Dropdown */
.nav-actions {
    position: relative;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.25rem);
    right: 0;
    margin-top: 0.5rem;
    background-color: var(--surface-elevated);
    border: 1px solid var(--border-color-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 220px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    animation: dropdownAppear 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownAppear {
    from {
        opacity: 0;
        transform: translateY(-2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu.active {
    display: flex;
}

body.dark-mode .dropdown-menu {
    background-color: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-color: var(--glass-border);
}

.dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-color);
}

.dropdown-user-name {
    font-weight: 600;
    display: block;
    color: var(--text-primary);
}

.dropdown-user-role {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.dropdown-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: var(--bg-color);
    color: var(--primary-color);
}

.dropdown-item.danger {
    color: var(--error-color);
}

.dropdown-item.danger:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast) ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

/* Main Content */
#main-content {
    flex: 1;
    padding: 2.5rem 3rem;
    max-width: var(--content-max-width);
    margin: 0 auto;
    width: 100%;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h1 {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-secondary);
}

/* Cards & Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: var(--surface-color);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color-subtle);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
}

body.dark-mode .card {
    background-color: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-color: var(--glass-border);
}

body.dark-mode .card:hover {
    border-color: rgba(100, 130, 200, 0.2);
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(59, 130, 246, 0.05);
}

.full-width {
    grid-column: 1 / -1;
}

/* Login Screen */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.login-container {
    background-color: var(--surface-color);
    padding: 3rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--border-color-subtle);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

body.dark-mode .login-container {
    background-color: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-color: var(--glass-border);
}

.login-header {
    margin-bottom: 2rem;
}

.login-logo {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.form-group input:hover {
    border-color: var(--text-tertiary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background-color: var(--surface-color);
}

.btn {
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 0.9rem;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.01em;
}

.btn .material-icons-round {
    font-size: 1.15rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 1px 2px rgba(59, 130, 246, 0.2), 0 4px 8px -2px rgba(59, 130, 246, 0.15);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.btn-primary:active {
    box-shadow: 0 1px 2px rgba(59, 130, 246, 0.15);
}

.btn-block {
    width: 100%;
}

.forgot-password {
    display: block;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
}

.forgot-password:hover {
    color: var(--primary-color);
}

/* Widget Styles */
.widget-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.widget-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-icon.warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.widget-icon.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.widget-info h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.widget-info .highlight {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.widget-info .subtext {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.widget-news .news-item {
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
    margin-top: 1rem;
}

.widget-news .date {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.25rem;
}

/* Calendar Styles */
.calendar-view {
    overflow: hidden;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}

.day-col h4 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.event-card {
    background-color: var(--primary-light);
    border-left: 3px solid var(--primary-color);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: transform 0.2s ease;
}

.event-card:hover {
    background-color: rgba(59, 130, 246, 0.06);
}

.event-card .title {
    font-weight: 600;
    color: var(--text-primary);
}

.event-card .time,
.event-card .room {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.event-card.empty {
    background: none;
    border: 1px dashed var(--border-color);
    opacity: 0.5;
}

/* Table Styles */
.table-card {
    overflow-x: auto;
    padding: 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.data-table th,
.data-table td {
    padding: 0.85rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color-subtle);
}

.data-table th {
    background-color: var(--bg-color);
    font-weight: 600;
    color: var(--text-tertiary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.data-table td {
    color: var(--text-primary);
    font-size: 0.925rem;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover td {
    background-color: var(--primary-light);
}

.badge {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.badge.warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.badge.pending {
    background-color: rgba(107, 114, 128, 0.1);
    color: var(--text-secondary);
}

.grade-good {
    color: var(--success-color);
    font-weight: 700;
}

/* Exam Card */
.exam-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
}

.exam-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg-color);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    min-width: 70px;
}

.exam-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.exam-date .month {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.exam-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.exam-details p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.exam-details p span {
    font-size: 1rem;
}

/* File List */
.file-list {
    list-style: none;
}

.file-list li {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
}

.file-list li:last-child {
    border-bottom: none;
}

.file-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.file-info .name {
    font-weight: 500;
    color: var(--text-primary);
}

.file-info .meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Contact List */
.contact-list {
    list-style: none;
    margin-top: 1rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.placeholder-map {
    height: 200px;
    background-color: var(--bg-color);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    margin-top: 1rem;
    border: 1px dashed var(--border-color);
}

.mobile-only {
    display: none;
}

/* Utility to hide/show sections */
.content-section {
    display: none;
    animation: fadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-section.active {
    display: block;
}

/* Mobile Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: var(--sidebar-width);
    height: 100%;
    background-color: var(--surface-color);
    z-index: 100;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.sidebar.active {
    left: 0;
}

body.dark-mode .sidebar {
    background-color: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--glass-border);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-links .nav-item {
    width: 100%;
    padding: 0.75rem 1rem;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 90;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.overlay.active {
    display: block;
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .nav-links {
        display: none;
    }

    .mobile-only {
        display: flex;
    }

    #main-content {
        padding: 1rem 1rem 2rem;
    }

    /* Reduce card padding on mobile */
    .card {
        padding: 1.15rem;
        border-radius: var(--radius-lg);
    }

    /* Fix grid-container overflow on small screens */
    .grid-container {
        grid-template-columns: 1fr;
    }

    /* Reduce header size */
    .section-header h1 {
        font-size: 1.5rem;
    }

    .calendar-grid {
        grid-template-columns: 1fr;
    }

    .day-col {
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .exam-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .exam-date {
        flex-direction: row;
        gap: 0.5rem;
        width: 100%;
        justify-content: center;
    }

    .exam-date .day {
        font-size: 1.25rem;
    }
}

/* Footer */
.app-footer {
    text-align: center;
    padding: 2rem 1.5rem;
    color: var(--text-tertiary);
    font-size: 0.8rem;
    border-top: 1px solid var(--border-color-subtle);
    margin-top: 3rem;
    letter-spacing: 0.01em;
}

/* Address styling in contact section */
address.contact-list {
    font-style: normal;
}

address.contact-list ul {
    list-style: none;
    margin-top: 1rem;
}

address.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

address.contact-list a {
    color: var(--primary-color);
    text-decoration: none;
}

address.contact-list a:hover {
    text-decoration: underline;
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* Prefer Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Reduce glass-morphism blur on mobile for performance */
@media (max-width: 768px) {
    body.dark-mode {
        --glass-blur: blur(8px);
        --surface-color: rgba(15, 23, 42, 0.85);
        --surface-elevated: rgba(20, 30, 52, 0.9);
        --glass-bg: rgba(15, 23, 42, 0.75);
    }

    body.dark-mode .navbar {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    body.dark-mode .card {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

/* Auto color scheme detection */
@media (prefers-color-scheme: dark) {
    body:not(.light-mode):not(.dark-mode) {
        --bg-color: #080e1e;
        --surface-color: rgba(15, 23, 42, 0.75);
        --surface-elevated: rgba(20, 30, 52, 0.8);
        --text-primary: #e8edf5;
        --text-secondary: #8b9bc0;
        --text-tertiary: #5a6a8a;
        --border-color: rgba(56, 78, 122, 0.3);
        --border-color-subtle: rgba(40, 58, 100, 0.2);
        --primary-color: #3B82F6;
        --primary-light: rgba(59, 130, 246, 0.1);
        --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
        --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    }
}