/* ============================================
   AFCAT Command Center - Design System
   ============================================ */

/* CSS Custom Properties */
:root {
    /* Colors - Dark Military Theme */
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.8);
    --bg-card-hover: rgba(30, 41, 59, 0.9);
    --bg-glass: rgba(15, 23, 42, 0.6);
    --bg-glass-border: rgba(100, 116, 139, 0.2);
    
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-blue: #3b82f6;
    --accent-blue-glow: rgba(59, 130, 246, 0.3);
    --accent-purple: #8b5cf6;
    --accent-purple-glow: rgba(139, 92, 246, 0.3);
    --accent-gold: #f59e0b;
    --accent-gold-glow: rgba(245, 158, 11, 0.3);
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-cyan: #06b6d4;
    
    --gradient-primary: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --gradient-gold: linear-gradient(135deg, #f59e0b, #f97316);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    
    --border-color: rgba(100, 116, 139, 0.15);
    --border-glow: rgba(59, 130, 246, 0.4);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.15);
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Outfit', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    --nav-height: 72px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Background Animation
   ============================================ */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: twinkle var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

.jet-trail {
    position: absolute;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.6), transparent);
    animation: flyAcross 12s linear infinite;
    opacity: 0;
}

#jetTrail1 {
    top: 20%;
    animation-delay: 2s;
}

#jetTrail2 {
    top: 60%;
    animation-delay: 8s;
    animation-duration: 15s;
}

@keyframes flyAcross {
    0% { left: -120px; opacity: 0; }
    5% { opacity: 0.8; }
    95% { opacity: 0.8; }
    100% { left: calc(100% + 120px); opacity: 0; }
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 1000;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(10, 14, 26, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.brand-icon {
    width: 36px;
    height: 36px;
    color: var(--accent-blue);
    filter: drop-shadow(0 0 8px var(--accent-blue-glow));
}

.brand-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.brand-accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    white-space: nowrap;
}

.nav-link svg {
    width: 16px;
    height: 16px;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.1);
}

.nav-link.active {
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.15);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.score-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 20px;
    color: var(--accent-gold);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-mono);
}

.score-badge svg {
    width: 14px;
    height: 14px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ============================================
   Main Content
   ============================================ */
.main-content {
    position: relative;
    z-index: 1;
    padding-top: var(--nav-height);
    min-height: 100vh;
}

.page {
    display: none;
    padding: 40px 32px 80px;
    max-width: 1280px;
    margin: 0 auto;
    animation: fadeInUp 0.4s ease;
}

.page.active {
    display: block;
}

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

/* ============================================
   Hero Section
   ============================================ */
.hero {
    text-align: center;
    padding: 60px 0 40px;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 30px;
    color: var(--accent-blue);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    animation: pulse-border 3s ease-in-out infinite;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

@keyframes pulse-border {
    0%, 100% { border-color: rgba(59, 130, 246, 0.3); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
    50% { border-color: rgba(59, 130, 246, 0.6); box-shadow: 0 0 20px rgba(59, 130, 246, 0.1); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-glow {
    animation: btn-glow 3s ease-in-out infinite;
}

@keyframes btn-glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3); }
    50% { box-shadow: 0 4px 30px rgba(59, 130, 246, 0.5), 0 0 60px rgba(59, 130, 246, 0.2); }
}

.btn-secondary {
    background: rgba(100, 116, 139, 0.15);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(100, 116, 139, 0.25);
    border-color: var(--text-muted);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: rgba(100, 116, 139, 0.1);
    border-color: var(--text-muted);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

/* ============================================
   Countdown Section
   ============================================ */
.countdown-section {
    text-align: center;
    padding: 48px 0;
    margin-bottom: 24px;
}

.countdown-date {
    font-size: 1rem;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 28px;
    font-family: var(--font-mono);
}

.countdown-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.countdown-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    min-width: 120px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.countdown-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.countdown-value {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.countdown-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 8px;
}

.countdown-separator {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-muted);
    animation: blink 1s steps(1) infinite;
}

@keyframes blink {
    50% { opacity: 0.2; }
}

/* ============================================
   Stats Grid
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent, var(--accent-blue));
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(100, 116, 139, 0.3);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent, var(--accent-blue));
    flex-shrink: 0;
}

.stat-icon svg {
    width: 22px;
    height: 22px;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    margin-bottom: 24px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.section-title svg {
    width: 24px;
    height: 24px;
    color: var(--accent-blue);
}

/* ============================================
   Exam Pattern Grid
   ============================================ */
.exam-pattern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.pattern-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: var(--transition-normal);
}

.pattern-card:hover {
    transform: translateY(-3px);
    border-color: rgba(100, 116, 139, 0.3);
    box-shadow: var(--shadow-md);
}

.pattern-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.pattern-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.pattern-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============================================
   Quick Access Cards
   ============================================ */
.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.quick-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    min-height: 180px;
    transition: var(--transition-normal);
}

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

.quick-card-bg {
    position: absolute;
    inset: 0;
    background: var(--bg);
    opacity: 0.9;
    transition: var(--transition-normal);
}

.quick-card:hover .quick-card-bg {
    opacity: 1;
    transform: scale(1.02);
}

.quick-card-content {
    position: relative;
    z-index: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.quick-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.quick-card-content h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.quick-card-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    flex: 1;
}

.quick-arrow {
    font-size: 1.5rem;
    align-self: flex-end;
    opacity: 0.6;
    transition: var(--transition-fast);
}

.quick-card:hover .quick-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* ============================================
   Performance Section
   ============================================ */
.performance-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.performance-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
}

.performance-card h3 {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.perf-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Page Headers
   ============================================ */
.page-header {
    text-align: center;
    padding: 48px 0 36px;
}

.page-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.predicted-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 30px;
    color: var(--accent-purple);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.predicted-badge svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   Year Tabs
   ============================================ */
.year-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.year-tab {
    padding: 10px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-mono);
}

.year-tab:hover {
    border-color: var(--accent-blue);
    color: var(--text-primary);
}

.year-tab.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* ============================================
   Filter Bar
   ============================================ */
.filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 32px;
}

.filter-btn {
    padding: 8px 18px;
    background: rgba(100, 116, 139, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-primary);
}

.filter-btn:hover {
    border-color: var(--accent-blue);
    color: var(--text-primary);
}

.filter-btn.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* ============================================
   Practice Mode Toggle
   ============================================ */
.practice-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.toggle-label input {
    display: none;
}

.toggle-slider {
    width: 44px;
    height: 24px;
    background: rgba(100, 116, 139, 0.3);
    border-radius: 12px;
    position: relative;
    transition: var(--transition-fast);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.toggle-label input:checked + .toggle-slider {
    background: var(--accent-blue);
}

.toggle-label input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.toggle-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ============================================
   Questions Container
   ============================================ */
.questions-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.question-card:hover {
    border-color: rgba(100, 116, 139, 0.3);
    box-shadow: var(--shadow-sm);
}

.question-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.q-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.q-number-badge {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
    font-family: var(--font-mono);
}

.q-section-badge {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
}

.q-difficulty-badge {
    font-size: 0.65rem;
}

.q-difficulty-badge.easy {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.q-difficulty-badge.medium {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-gold);
}

.q-difficulty-badge.hard {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

.question-text-content {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.7;
    font-weight: 500;
}

.options-list {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.option-item {
    padding: 12px 18px;
    background: rgba(100, 116, 139, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.option-item:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
}

.option-letter {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(100, 116, 139, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.option-item.selected {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--accent-blue);
}

.option-item.selected .option-letter {
    background: var(--accent-blue);
    color: white;
}

.option-item.correct {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--accent-green);
}

.option-item.correct .option-letter {
    background: var(--accent-green);
    color: white;
}

.option-item.wrong {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--accent-red);
}

.option-item.wrong .option-letter {
    background: var(--accent-red);
    color: white;
}

.explanation-box {
    padding: 16px 20px;
    background: rgba(59, 130, 246, 0.08);
    border-left: 3px solid var(--accent-blue);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-top: 16px;
}

.explanation-box.hidden-answer {
    filter: blur(6px);
    cursor: pointer;
    user-select: none;
    transition: var(--transition-normal);
}

.explanation-box.hidden-answer:hover {
    filter: blur(3px);
}

.explanation-box.revealed {
    filter: none;
}

.explanation-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.explanation-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   Mock Test Cards
   ============================================ */
.mock-test-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.mock-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.mock-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-normal);
}

.mock-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: var(--shadow-lg);
}

.mock-card:hover::before {
    opacity: 1;
}

.mock-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.mock-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
}

.mock-badge {
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-blue);
}

.mock-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.mock-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.mock-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.mock-status {
    margin-bottom: 16px;
    font-size: 0.8rem;
    color: var(--accent-green);
    font-weight: 600;
}

.mock-card .btn {
    width: 100%;
    justify-content: center;
}

/* ============================================
   Active Test View
   ============================================ */
.test-header {
    position: sticky;
    top: var(--nav-height);
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    padding: 16px 0;
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.test-info {
    flex: 1;
}

.test-info h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.test-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.progress-bar {
    flex: 1;
    max-width: 200px;
    height: 4px;
    background: rgba(100, 116, 139, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.test-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-sm);
    color: var(--accent-red);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1.1rem;
}

.test-timer svg {
    width: 18px;
    height: 18px;
}

.test-timer.warning {
    animation: timer-pulse 1s ease-in-out infinite;
}

@keyframes timer-pulse {
    0%, 100% { background: rgba(239, 68, 68, 0.1); }
    50% { background: rgba(239, 68, 68, 0.25); }
}

.test-actions-header {
    display: flex;
    gap: 8px;
}

/* Section Tabs */
.section-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.section-tab {
    padding: 8px 16px;
    background: rgba(100, 116, 139, 0.1);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-primary);
}

.section-tab:hover {
    border-color: var(--accent-blue);
}

.section-tab.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* Question Display */
.question-display {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.question-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.question-number {
    padding: 4px 14px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.question-section-badge {
    padding: 4px 12px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.question-difficulty-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.question-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 28px;
    font-weight: 500;
}

.options-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 28px;
}

.option-btn {
    padding: 16px 20px;
    background: rgba(100, 116, 139, 0.05);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.95rem;
    color: var(--text-primary);
    text-align: left;
    font-family: var(--font-primary);
}

.option-btn:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateX(4px);
}

.option-btn.selected {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

.option-btn.selected .opt-letter {
    background: var(--accent-blue);
    color: white;
}

.opt-letter {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(100, 116, 139, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.question-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

/* ============================================
   Results View
   ============================================ */
.results-container {
    max-width: 900px;
    margin: 0 auto;
}

.results-header {
    text-align: center;
    padding: 48px 0 24px;
}

.results-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.results-header h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.results-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Score Circle */
.score-display {
    display: flex;
    justify-content: center;
    padding: 32px 0;
}

.score-circle {
    width: 200px;
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-circle svg {
    position: absolute;
    width: 100%;
    height: 100%;
}

.score-text {
    text-align: center;
    z-index: 1;
}

.score-value {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-total {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Results Stats */
.results-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.result-stat {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
}

.result-stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
}

.result-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.result-stat.correct .result-stat-value {
    color: var(--accent-green);
}

.result-stat.wrong .result-stat-value {
    color: var(--accent-red);
}

.result-stat.skipped .result-stat-value {
    color: var(--accent-gold);
}

.result-stat.accuracy-stat .result-stat-value {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Analysis */
.section-analysis {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    margin-bottom: 40px;
}

.section-analysis h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.section-bar {
    margin-bottom: 16px;
}

.section-bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.section-bar-name {
    font-weight: 500;
}

.section-bar-score {
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.section-bar-track {
    height: 8px;
    background: rgba(100, 116, 139, 0.15);
    border-radius: 4px;
    overflow: hidden;
}

.section-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
}

/* Review Section */
.review-section {
    margin-bottom: 40px;
}

.review-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.review-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.results-actions {
    text-align: center;
    padding: 20px 0;
}

/* ============================================
   Syllabus Cards
   ============================================ */
.syllabus-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.syllabus-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.syllabus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-accent, var(--accent-blue));
}

.syllabus-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.syllabus-icon {
    font-size: 2rem;
}

.syllabus-card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.syllabus-weight {
    font-size: 0.8rem;
    color: var(--card-accent, var(--accent-blue));
    font-weight: 600;
}

.syllabus-topics {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.topic-group h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}

.topic-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.topic-group li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
}

.topic-group li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--card-accent, var(--accent-blue));
    font-weight: 700;
}

/* ============================================
   Tips Grid
   ============================================ */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.tip-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: var(--transition-normal);
}

.tip-card:hover {
    transform: translateY(-3px);
    border-color: rgba(100, 116, 139, 0.3);
}

.tip-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    margin-bottom: 8px;
}

.tip-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.tip-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   Modal
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    padding: 28px;
    animation: modalIn 0.3s ease;
}

.palette-modal {
    max-width: 600px;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(100, 116, 139, 0.15);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: rgba(100, 116, 139, 0.3);
    color: var(--text-primary);
}

.modal-body p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.submit-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.submit-stat {
    display: flex;
    justify-content: space-between;
    padding: 8px 16px;
    background: rgba(100, 116, 139, 0.05);
    border-radius: var(--radius-sm);
}

.submit-stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.submit-stat-value {
    font-weight: 700;
    font-family: var(--font-mono);
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* Palette Grid */
.palette-legend {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-dot.answered {
    background: var(--accent-green);
}

.legend-dot.review {
    background: var(--accent-gold);
}

.legend-dot.unanswered {
    background: rgba(100, 116, 139, 0.3);
}

.legend-dot.current {
    background: var(--accent-blue);
}

.palette-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 6px;
}

.palette-btn {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-mono);
}

.palette-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--accent-blue);
}

.palette-btn.answered {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.5);
    color: var(--accent-green);
}

.palette-btn.review {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.5);
    color: var(--accent-gold);
}

.palette-btn.current {
    background: rgba(59, 130, 246, 0.3);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

/* ============================================
   Toast
   ============================================ */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 3000;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.toast.visible {
    transform: translateX(-50%) translateY(0);
}

.toast.hidden {
    display: block;
}

/* ============================================
   Utility Classes
   ============================================ */
.hidden {
    display: none !important;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.5);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .exam-pattern-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mock-test-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .syllabus-grid {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 16px;
    }
    
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition-normal);
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .hamburger {
        display: flex;
    }
    
    .page {
        padding: 24px 16px 60px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .countdown-card {
        min-width: 80px;
        padding: 16px 20px;
    }
    
    .countdown-value {
        font-size: 2rem;
    }
    
    .stats-grid,
    .performance-section,
    .results-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .exam-pattern-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-access-grid {
        grid-template-columns: 1fr;
    }
    
    .mock-test-cards {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .test-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .test-actions-header {
        justify-content: center;
    }
    
    .question-nav {
        flex-wrap: wrap;
    }
    
    .page-title {
        font-size: 1.8rem;
    }

    .palette-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .filter-bar {
        gap: 6px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .countdown-grid {
        gap: 4px;
    }
    
    .countdown-card {
        min-width: 65px;
        padding: 12px 14px;
    }
    
    .countdown-value {
        font-size: 1.6rem;
    }
    
    .countdown-separator {
        font-size: 1.5rem;
    }
    
    .stats-grid,
    .performance-section,
    .results-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 16px;
    }
}

/* ============================================
   Loading State
   ============================================ */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    gap: 16px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   Animations
   ============================================ */
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.animate-in {
    animation: fadeInUp 0.4s ease forwards;
}

.question-card {
    animation: fadeInUp 0.3s ease forwards;
    animation-delay: calc(var(--index) * 0.05s);
    opacity: 0;
}

/* ============================================
   OFFICIAL AFCAT 2026 CBT EXAMINATION UI STYLES
   ============================================ */
.cbt-exam-wrapper {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    background: #0d1322;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(59, 130, 246, 0.25);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Top Official Exam Header */
.cbt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #0a0e1a 0%, #111a2e 100%);
    padding: 14px 24px;
    border-bottom: 2px solid #1e293b;
}

.cbt-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cbt-iaf-logo {
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

.cbt-exam-title-box {
    display: flex;
    flex-direction: column;
}

.cbt-exam-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: 0.04em;
    margin: 0;
}

.cbt-exam-subtitle {
    font-size: 0.75rem;
    color: #3b82f6;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.cbt-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cbt-candidate-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(100, 116, 139, 0.3);
    padding: 6px 16px;
    border-radius: 30px;
}

.cbt-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1e293b;
    border: 1px solid #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
}

.cbt-avatar svg {
    width: 18px;
    height: 18px;
}

.cbt-cand-info {
    display: flex;
    flex-direction: column;
}

.cbt-cand-info .cand-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #f1f5f9;
}

.cbt-cand-info .cand-roll {
    font-size: 0.72rem;
    color: #94a3b8;
    font-family: var(--font-mono);
}

.cbt-timer-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 6px 18px;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

.cbt-timer-box.warning {
    border-color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
    animation: pulseTimer 1s ease-in-out infinite;
}

@keyframes pulseTimer {
    0%, 100% { background: rgba(15, 23, 42, 0.9); }
    50% { background: rgba(239, 68, 68, 0.2); }
}

.timer-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    color: #cbd5e1;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.timer-value-row {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #f59e0b;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
}

.cbt-timer-box.warning .timer-value-row {
    color: #ef4444;
}

.timer-value-row svg {
    width: 18px;
    height: 18px;
}

/* Section Bar */
.cbt-section-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111827;
    border-bottom: 1px solid #1e293b;
    padding: 0 16px;
}

.cbt-section-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
}

.cbt-sec-tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.cbt-sec-tab:hover {
    color: #f8fafc;
    background: rgba(59, 130, 246, 0.05);
}

.cbt-sec-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.cbt-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cbt-tool-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid #334155;
    border-radius: var(--radius-sm);
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.cbt-tool-btn:hover {
    background: #334155;
    color: #fff;
}

.cbt-tool-btn svg {
    width: 14px;
    height: 14px;
}

/* Main Workspace Grid */
.cbt-workspace {
    display: grid;
    grid-template-columns: 1fr 320px;
    min-height: 640px;
}

@media (max-width: 1024px) {
    .cbt-workspace {
        grid-template-columns: 1fr;
    }
}

/* Left Panel - Question Display */
.cbt-main-area {
    display: flex;
    flex-direction: column;
    background: #0f172a;
    border-right: 1px solid #1e293b;
}

.cbt-q-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: #161e31;
    border-bottom: 1px solid #1e293b;
}

.cbt-q-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cbt-q-num {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: #f8fafc;
}

.cbt-q-sec {
    padding: 3px 10px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    color: #60a5fa;
    font-size: 0.78rem;
    font-weight: 600;
}

.cbt-q-diff {
    padding: 3px 10px;
    background: rgba(245, 158, 11, 0.15);
    border-radius: 12px;
    color: #f59e0b;
    font-size: 0.78rem;
    font-weight: 600;
}

.cbt-marks-badge {
    font-size: 0.82rem;
    color: #94a3b8;
    font-family: var(--font-mono);
}

.cbt-q-body {
    flex: 1;
    padding: 28px 24px;
    overflow-y: auto;
}

.cbt-q-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #f1f5f9;
    font-weight: 500;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Options List */
.cbt-options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cbt-option-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    background: #182238;
    border: 2px solid #23314d;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.cbt-option-item:hover {
    background: #1d2b47;
    border-color: #3b82f6;
}

.cbt-option-item.selected {
    background: rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.cbt-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.cbt-option-item.selected .cbt-radio {
    border-color: #3b82f6;
    background: #3b82f6;
}

.cbt-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    opacity: 0;
    transform: scale(0);
    transition: var(--transition-fast);
}

.cbt-option-item.selected .cbt-radio::after {
    opacity: 1;
    transform: scale(1);
}

.cbt-opt-label {
    font-weight: 700;
    color: #3b82f6;
    font-size: 0.95rem;
    margin-right: 4px;
}

.cbt-opt-text {
    font-size: 0.98rem;
    color: #e2e8f0;
    line-height: 1.5;
}

/* Bottom Action Bar */
.cbt-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #111827;
    border-top: 1px solid #1e293b;
}

.cbt-footer-left,
.cbt-footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cbt-btn {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
}

.cbt-btn-review {
    background: #6d28d9;
    color: white;
}

.cbt-btn-review:hover {
    background: #7c3aed;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.cbt-btn-clear {
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
}

.cbt-btn-clear:hover {
    background: rgba(239, 68, 68, 0.1);
}

.cbt-btn-prev {
    background: #1e293b;
    border: 1px solid #334155;
    color: #cbd5e1;
}

.cbt-btn-prev:hover {
    background: #334155;
    color: white;
}

.cbt-btn-savenext {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.cbt-btn-savenext:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    transform: translateY(-1px);
}

/* Right Sidebar Panel */
.cbt-sidebar {
    background: #0a0e1a;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-left: 1px solid #1e293b;
}

.cbt-candidate-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: var(--radius-md);
}

.cbt-cand-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1e293b;
    border: 2px solid #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
}

.cbt-cand-img svg {
    width: 26px;
    height: 26px;
}

.cbt-cand-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cbt-cand-details strong {
    font-size: 0.9rem;
    color: #f8fafc;
}

.cbt-cand-details span {
    font-size: 0.75rem;
    color: #94a3b8;
}

.badge-aug8 {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b !important;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.7rem !important;
    margin-top: 2px;
}

/* Status Legend */
.cbt-legend-box {
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: var(--radius-md);
    padding: 14px;
}

.cbt-legend-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.cbt-legend-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.cbt-leg-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
    color: #94a3b8;
}

.cbt-leg-wide {
    grid-column: span 2;
}

.cbt-box {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.status-answered {
    background: #15803d;
    border: 1px solid #22c55e;
}

.status-not-answered {
    background: #b91c1c;
    border: 1px solid #ef4444;
}

.status-not-visited {
    background: #334155;
    border: 1px solid #475569;
    color: #cbd5e1;
}

.status-review {
    background: #6d28d9;
    border: 1px solid #8b5cf6;
    border-radius: 50%;
}

.status-ans-review {
    background: #6d28d9;
    border: 2px solid #22c55e;
    border-radius: 50%;
    position: relative;
}

.status-ans-review::after {
    content: '✓';
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border-radius: 50%;
    color: white;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Palette Grid */
.cbt-palette-container {
    flex: 1;
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
}

.cbt-palette-header {
    font-size: 0.8rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 12px;
}

.cbt-palette-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    max-height: 260px;
    overflow-y: auto;
    padding-right: 4px;
}

.cbt-pal-btn {
    height: 34px;
    border: 1px solid transparent;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;

    /* Default Not Visited */
    background: #1e293b;
    color: #94a3b8;
    border-radius: 4px;
}

.cbt-pal-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.cbt-pal-btn.current {
    box-shadow: 0 0 0 2px #3b82f6, 0 0 12px rgba(59, 130, 246, 0.6) !important;
}

.cbt-pal-btn.answered {
    background: #15803d;
    color: white;
    border-color: #22c55e;
}

.cbt-pal-btn.not-answered {
    background: #b91c1c;
    color: white;
    border-color: #ef4444;
}

.cbt-pal-btn.review {
    background: #6d28d9;
    color: white;
    border-radius: 50%;
    border-color: #8b5cf6;
}

.cbt-pal-btn.ans-review {
    background: #6d28d9;
    color: white;
    border-radius: 50%;
    border: 2px solid #22c55e;
    position: relative;
}

/* Submit Sidebar Button */
.cbt-sidebar-submit {
    margin-top: auto;
}

.cbt-btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.4);
    transition: var(--transition-normal);
}

.cbt-btn-submit:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5);
}

/* Submit Modal Table */
.cbt-submit-modal {
    max-width: 850px !important;
    width: 95%;
}

.cbt-submit-note {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.cbt-summary-table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: var(--radius-sm);
    border: 1px solid #334155;
}

.cbt-summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: center;
}

.cbt-summary-table th {
    background: #1e293b;
    color: #3b82f6;
    padding: 10px;
    border: 1px solid #334155;
    font-weight: 700;
}

.cbt-summary-table td {
    padding: 10px;
    border: 1px solid #334155;
    color: #f1f5f9;
}

.cbt-summary-table tr:nth-child(even) {
    background: rgba(30, 41, 59, 0.4);
}

.cbt-summary-table tfoot td {
    font-weight: 800;
    background: #0f172a;
    color: #f59e0b;
}

