@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Color Palette */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --secondary: #0f172a;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Neutrals */
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-blur: 12px;

    /* Spacing & Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Glassmorphism utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
}

/* Card */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #0ea5e9);
    color: white !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
    opacity: 0.95;
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569 !important;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: #1e293b !important;
}

.links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-danger {
    background: var(--danger);
    color: white !important;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-orange { background: #ffedd5; color: #9a3412; }
.badge-purple { background: #f3e8ff; color: #6b21a8; }
.badge-red { background: #fee2e2; color: #991b1b; }

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.25rem;
    margin-bottom: 1rem;
    color: var(--secondary);
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Search Bar */
.search-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.search-bar {
    width: 100%;
    padding: 1.25rem 1.5rem 1.25rem 3.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    font-size: 1.1rem;
    outline: none;
    transition: var(--transition);
    background-color: var(--bg-card);
    color: var(--text-main);
}

.search-bar:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    display: flex;
    align-items: center;
}

/* Main Layout Grid */
.main-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    padding: 3rem 0;
}

/* Sidebar Filter Panel */
.sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-select, .form-input {
    width: 100%;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    font-family: inherit;
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

.filter-select:focus, .form-input:focus {
    border-color: var(--primary);
}

/* Section Titles */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title h2 {
    font-size: 1.75rem;
}

/* Exam Grid */
.exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.exam-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.exam-card .card-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.exam-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.exam-info {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.exam-info span {
    display: block;
    margin-bottom: 0.25rem;
}

.exam-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: auto;
}

.last-updated {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Alerts Sidebar Card */
.alerts-sidebar-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.alert-bell-wrapper {
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bell-icon {
    width: 20px;
    height: 20px;
}

/* Pulse dot animation */
.live-pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: var(--radius-full);
    display: inline-block;
    position: relative;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    display: inline-block;
}

.pulse-blue { background: var(--primary); animation: pulseBlue 2s infinite; }
.pulse-green { background: var(--success); animation: pulseGreen 2s infinite; }
.pulse-orange { background: var(--warning); animation: pulseOrange 2s infinite; }

@keyframes pulseBlue {
    0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(79, 70, 229, 0); }
    100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

@keyframes pulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulseOrange {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Trending listing */
.trending-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.trending-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.trending-list li a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

/* Exam Details Layout */
.exam-header {
    background: var(--secondary);
    color: white;
    padding: 4rem 0;
}

.exam-header-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.exam-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    padding: 3rem 0;
}

.exam-section {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.exam-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-light);
    color: var(--secondary);
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

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

.data-table th {
    background: #f8fafc;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* FAQ accordion style */
.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq-q {
    padding: 1rem;
    background: #f8fafc;
    font-weight: 600;
    cursor: pointer;
}

.faq-a {
    padding: 1rem;
    border-top: 1px solid var(--border);
    background: white;
    color: var(--text-muted);
}

/* Auth Pages styling */
.auth-container {
    max-width: 450px;
    margin: 5rem auto;
    width: 100%;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Footer layout */
footer {
    background: var(--secondary);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #94a3b8;
}

.footer-links h3 {
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: #94a3b8;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #94a3b8;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 380px;
    width: 100%;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    font-weight: 500;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transition: var(--transition);
    color: var(--secondary);
}

.toast-success {
    border-left: 5px solid var(--success);
}

.toast-danger {
    border-left: 5px solid var(--danger);
}

.toast-info {
    border-left: 5px solid var(--info);
}

@keyframes slideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Admin Dashboard layout */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 70px);
}

.admin-sidebar {
    background: #f8fafc;
    color: var(--text-main);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-right: 1px solid var(--border);
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    color: var(--text-muted);
}

.admin-nav-link:hover, .admin-nav-link.active {
    background: var(--primary-light);
    color: var(--primary);
}

.admin-nav-link.active {
    background: var(--primary-light) !important;
    color: var(--primary) !important;
    border-left: 4px solid var(--primary);
}

.admin-content {
    padding: 2.5rem;
    background: var(--bg-main);
    overflow-y: auto;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.stat-card {
    background: var(--bg-card);
    padding: 1.1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.03), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -4px rgba(15, 23, 42, 0.06), 0 3px 8px -2px rgba(15, 23, 42, 0.03);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: transparent;
    transition: all 0.3s ease;
}

.stat-card .info-side {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 2;
    min-width: 0;
}

.stat-card .value {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.stat-card .label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-card .icon-side {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    flex-shrink: 0;
}

.stat-card .icon-side ion-icon {
    font-size: 1.35rem;
}

/* Card Specific Themes (More Modern Glassmorphic/Soft Color Vibes) */
.stat-exams {
    --card-accent: #64748b;
}
.stat-exams::before { background: var(--card-accent); }
.stat-exams .icon-side { background: #f1f5f9; color: var(--card-accent); }
.stat-exams:hover .icon-side { background: var(--card-accent); color: white; }

.stat-published {
    --card-accent: #10b981;
}
.stat-published::before { background: var(--card-accent); }
.stat-published .value { color: var(--card-accent); }
.stat-published .icon-side { background: #e6fbf3; color: var(--card-accent); }
.stat-published:hover .icon-side { background: var(--card-accent); color: white; }
.stat-published:hover { box-shadow: 0 12px 24px -4px rgba(16, 185, 129, 0.12); }

.stat-sectors {
    --card-accent: #4f46e5;
}
.stat-sectors::before { background: var(--card-accent); }
.stat-sectors .value { color: var(--card-accent); }
.stat-sectors .icon-side { background: #eef2ff; color: var(--card-accent); }
.stat-sectors:hover .icon-side { background: var(--card-accent); color: white; }
.stat-sectors:hover { box-shadow: 0 12px 24px -4px rgba(79, 70, 229, 0.12); }

.stat-departments {
    --card-accent: #0ea5e9;
}
.stat-departments::before { background: var(--card-accent); }
.stat-departments .value { color: var(--card-accent); }
.stat-departments .icon-side { background: #e0f2fe; color: var(--card-accent); }
.stat-departments:hover .icon-side { background: var(--card-accent); color: white; }
.stat-departments:hover { box-shadow: 0 12px 24px -4px rgba(14, 165, 233, 0.12); }

.stat-states {
    --card-accent: #f97316;
}
.stat-states::before { background: var(--card-accent); }
.stat-states .value { color: var(--card-accent); }
.stat-states .icon-side { background: #ffedd5; color: var(--card-accent); }
.stat-states:hover .icon-side { background: var(--card-accent); color: white; }
.stat-states:hover { box-shadow: 0 12px 24px -4px rgba(249, 115, 22, 0.12); }

/* --- ADMIN DARK THEME OVERRIDES REMOVED --- */


/* Responsive queries */
@media (max-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
    .exam-layout {
        display: block;
    }
    .admin-layout {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        flex-direction: row;
        overflow-x: auto;
        padding: 1rem;
    }
}

@media (max-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr !important;
    }
    .exam-layout {
        display: block !important;
        width: 100% !important;
    }
    #notification, .sidebar {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    .sidebar {
        position: relative !important;
        top: 0 !important;
        margin-bottom: 2.5rem !important;
    }
    .admin-layout {
        grid-template-columns: 1fr !important;
    }
    .admin-sidebar {
        flex-direction: row !important;
        overflow-x: auto !important;
        padding: 0.75rem 1rem !important;
        height: auto !important;
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #e2e8f0 !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 999 !important;
        justify-content: space-between !important;
    }
    .admin-sidebar-top {
        flex-direction: row !important;
        align-items: center !important;
        gap: 1rem !important;
        width: auto !important;
    }
    .admin-logo-container {
        display: none !important;
    }
    .admin-nav {
        flex-direction: row !important;
        gap: 0.35rem !important;
        width: auto !important;
        margin: 0 !important;
    }
    .admin-nav-link {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.85rem !important;
        white-space: nowrap !important;
    }
    .admin-nav-section-title {
        display: none !important;
    }
    .sidebar-footer {
        border-top: none !important;
        padding-top: 0 !important;
        margin: 0 0 0 auto !important;
        width: auto !important;
        flex-direction: row !important;
    }
    .user-profile-card {
        display: none !important;
    }
    .btn-signout {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
        border-radius: 8px !important;
        white-space: nowrap !important;
        width: auto !important;
    }
    .btn-signout::before {
        display: none !important;
    }
    .admin-content {
        padding: 1.5rem !important;
        max-height: none !important;
    }
    .stats-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
        gap: 1rem !important;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    .navbar {
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(8px) !important;
    }
    .navbar .container {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 0 1.5rem !important;
    }
    .menu-toggle {
        display: block !important;
    }
    .nav-links {
        display: none !important;
    }
    .nav-links.mobile-active {
        display: flex !important;
        flex-direction: column !important;
        position: absolute !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        background: #ffffff !important;
        border-bottom: 1.5px solid var(--border) !important;
        padding: 1.5rem !important;
        box-shadow: var(--shadow-lg) !important;
        z-index: 9999 !important;
        gap: 1.25rem !important;
        align-items: center !important;
    }
    .hero h1 {
        font-size: 2.25rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Database filter grid */
    div[style*="display: grid; grid-template-columns: 2fr 1.8fr 1fr 1fr 1fr 1fr;"],
    .filters-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Disable sticky sidebar/filters on mobile */
    .sidebar {
        position: relative !important;
        top: 0 !important;
        margin-bottom: 2rem !important;
    }
    
    /* Stack form layout columns */
    form div[style*="grid-template-columns"],
    .card div[style*="grid-template-columns"],
    .exam-section div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Responsive header flex containers */
    .section-title,
    div[style*="display: flex; justify-content: space-between; align-items: flex-start;"],
    div[style*="display: flex; justify-content: space-between; align-items: center;"] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
    }
    
    div[style*="display: flex; align-items: center; gap: 1.25rem;"] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }
    
    /* Table cards overflow horizontally */
    .table-card, .card {
        overflow-x: auto !important;
    }
    .data-table {
        min-width: 600px !important;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Modal System */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #ffffff;
    margin: auto;
    padding: 2rem;
    border: 1px solid var(--border);
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    position: relative;
    animation: modalSlideIn 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.close-modal {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: var(--secondary);
}

/* Tab Navigation System */
.tabs-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    gap: 1.5rem;
    border-bottom: 1.5px solid var(--border);
    margin-bottom: 2rem;
    padding-bottom: 0;
    width: 100%;
}

.tabs-container::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.tab-btn {
    padding: 0.75rem 0.15rem;
    background: transparent;
    border: none;
    border-bottom: 2.5px solid transparent;
    border-radius: 0;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.775rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    margin-bottom: -1.5px;
    outline: none;
    flex-shrink: 0;
}

.tab-btn ion-icon {
    font-size: 1.05rem;
    color: inherit;
}

.tab-btn:hover {
    color: var(--primary);
    background: transparent;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 700;
    background: transparent;
}

.tab-pane {
    display: none;
}

.tab-pane.active-pane {
    display: block;
    animation: tabFadeIn 0.25s ease-out;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Helper Utilities */
.desktop-only {
}
.mobile-only {
    display: none !important;
}
.mobile-only-block {
    display: none !important;
}

@media (max-width: 1024px) {
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: inline-flex !important;
    }
    .mobile-only-block {
        display: block !important;
    }
}

/* Mobile Vertical Status Timeline */
.status-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    padding: 1rem 0;
    align-items: center;
    width: 100%;
}

.status-timeline::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    bottom: 1.5rem;
    left: 50%;
    width: 2px;
    background: #cbd5e1;
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-step {
    position: relative;
    z-index: 1;
    background: #ffffff;
    padding: 0.5rem 1.5rem;
    border: 2px solid #cbd5e1;
    border-radius: 9999px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    width: fit-content;
    min-width: 150px;
    transition: all 0.3s ease;
}

.timeline-step.active {
    border-color: #4f46e5;
    color: #4f46e5;
    background: #eef2ff;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.1);
}

.timeline-step.completed {
    border-color: #10b981;
    color: #10b981;
    background: #f0fdf4;
}

@media (max-width: 768px) {
    .exam-section {
        padding: 1.25rem !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .card {
        padding: 1.25rem !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .exam-section .data-table {
        min-width: auto !important;
        width: 100% !important;
    }
    .exam-section .data-table th, 
    .exam-section .data-table td {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.85rem !important;
        white-space: normal !important;
    }
    .links-grid {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .links-grid .btn {
        width: 100% !important;
    }
    .status-timeline {
        align-items: flex-start !important;
    }
    .status-timeline::before {
        left: 1.5rem !important;
    }
    .timeline-step {
        width: 100% !important;
        text-align: left !important;
        padding-left: 2.5rem !important;
    }
}

/* Mobile Floating TOC */
.mobile-toc-fab-wrapper {
    display: none;
}
.mobile-toc-modal {
    display: none;
}

@media (max-width: 1024px) {
    .mobile-toc-fab-wrapper {
        display: block;
        position: fixed;
        bottom: 4.5rem;
        left: 1.5rem;
        z-index: 10000;
    }
    .mobile-toc-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 100000;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 1.5rem;
    }
}

/* Selection Process Timeline specific styling */
.selection-timeline {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 1rem !important;
}

.selection-timeline::before {
    display: none !important;
}

.selection-timeline .timeline-step {
    width: fit-content !important;
    min-width: 150px !important;
    text-align: center !important;
    padding: 0.5rem 1.5rem !important;
}

@media (max-width: 768px) {
    .selection-timeline {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1.5rem !important;
    }
    
    .selection-timeline::before {
        display: block !important;
        left: 1.5rem !important;
    }
    
    .selection-timeline .timeline-step {
        width: 100% !important;
        text-align: left !important;
        padding-left: 2.5rem !important;
    }
}

/* Admin Dashboard Recently Updated Exams Styles */
.dashboard-exam-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: transparent;
    border-radius: 10px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.dashboard-exam-row:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.dashboard-exam-row .exam-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.dashboard-exam-row h4.exam-title-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-exam-row:hover h4.exam-title-text {
    color: var(--primary);
}

.dashboard-exam-row .meta-tag {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.action-btn-pill {
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
}

.action-btn-view {
    background: #eef2ff;
    color: #4f46e5 !important;
}

.action-btn-view:hover {
    background: #4f46e5;
    color: #ffffff !important;
}

.action-btn-edit {
    background: #f1f5f9;
    color: #475569 !important;
    border: 1px solid #cbd5e1;
}

.action-btn-edit:hover {
    background: #cbd5e1;
    color: #1e293b !important;
}

/* Performance Grid Layout */
.performance-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2.5rem;
    align-items: center;
}

@media (max-width: 992px) {
    .performance-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}



