/* ==========================================
   STYLE RULES FOR SACHKT QUIZ (LINVA.NET)
   Flat, simple, luxury UI with Light/Dark Mode
========================================== */

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

input, button, textarea, select {
    font-family: inherit;
    color: inherit;
}

:root {
    /* Color Tokens - Dark Mode Default */
    --bg: #030712;
    --bg-card: rgba(17, 24, 39, 0.45);
    --bg-card-hover: rgba(31, 41, 55, 0.65);
    --accent-primary: #6366f1; /* Indigo */
    --accent-secondary: #06b6d4; /* Cyan */
    --accent-pink: #ec4899;
    --accent-glow: rgba(99, 102, 241, 0.15);
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(99, 102, 241, 0.3);
    
    --correct: #10b981;
    --correct-glow: rgba(16, 185, 129, 0.15);
    --incorrect: #ef4444;
    --incorrect-glow: rgba(239, 68, 68, 0.15);
    
    --option-bg: rgba(255, 255, 255, 0.02);
    --option-border: rgba(255, 255, 255, 0.06);
    --option-hover: rgba(255, 255, 255, 0.06);
    --option-selected-bg: rgba(99, 102, 241, 0.1);
    --option-selected-border: #6366f1;

    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'Space Grotesk', monospace;
    
    --transition-speed: 0.3s;
}

/* Light Mode Overrides */
body.light-theme {
    --bg: #f9fafb;
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --accent-primary: #4f46e5;
    --accent-secondary: #0891b2;
    --accent-pink: #db2777;
    --accent-glow: rgba(79, 70, 229, 0.1);
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --border: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(79, 70, 229, 0.3);
    
    --correct: #16a34a;
    --correct-glow: rgba(22, 163, 74, 0.15);
    --incorrect: #dc2626;
    --incorrect-glow: rgba(220, 38, 38, 0.15);
    
    --option-bg: rgba(0, 0, 0, 0.02);
    --option-border: rgba(0, 0, 0, 0.06);
    --option-hover: rgba(0, 0, 0, 0.04);
    --option-selected-bg: rgba(79, 70, 229, 0.06);
    --option-selected-border: #4f46e5;
}

/* Base Document Styles */
body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

/* Animated Ambient Background */
.bg-mesh {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: 
        radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(6, 182, 212, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 50% 85%, rgba(236, 72, 153, 0.06) 0%, transparent 50%);
    filter: blur(80px);
    transition: all 0.5s ease;
}

body.light-theme .bg-mesh {
    background: 
        radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(6, 182, 212, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 50% 85%, rgba(236, 72, 153, 0.03) 0%, transparent 50%);
}

.glow-sphere {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Main Container */
.app-container {
    position: relative;
    z-index: 1;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Header */
header {
    padding: 32px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeIn 0.8s ease;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
    cursor: pointer;
}

.back-link:hover {
    color: var(--text-primary);
}

.back-link .icon {
    width: 18px;
    height: 18px;
}

.header-logo {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 0 10px var(--accent-primary);
}

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

.action-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.light-theme .action-btn {
    background: rgba(0, 0, 0, 0.02);
}

.action-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-1px);
}

.action-btn .icon {
    width: 20px;
    height: 20px;
}

/* Hide utility class */
.hide {
    display: none !important;
}

/* Workspace Portal */
#game-portal {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 0 60px;
}

.portal-screen {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
    width: 100%;
}

/* LOADER SCREEN */
#loading-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.loader-circle {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* START SCREEN (DASHBOARD) */
.hero-section {
    text-align: center;
    margin-bottom: 40px;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #a5b4fc;
    margin-bottom: 16px;
}

body.light-theme .category-badge {
    background: rgba(79, 70, 229, 0.06);
    border-color: rgba(79, 70, 229, 0.12);
    color: var(--accent-primary);
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary) 50%, var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto;
}

/* Configuration Grid */
.config-grid {
    max-width: 600px;
    width: 100%;
    margin: 0 auto 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.config-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: border-color var(--transition-speed) ease;
}

.config-card:hover {
    border-color: var(--border-hover);
}

.config-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.flex-between {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Game Mode Selection Options */
.options-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mode-option {
    display: flex;
    padding: 16px;
    border: 1px solid var(--option-border);
    background: var(--option-bg);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mode-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.mode-option:hover {
    border-color: var(--border-hover);
    background: var(--option-hover);
}

.mode-option.selected {
    background: var(--option-selected-bg);
    border-color: var(--option-selected-border);
}

.option-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.option-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-icon {
    font-size: 1.2rem;
}

.option-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.option-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Segmented Control */
.segmented-control {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(0, 0, 0, 0.15);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--border);
    margin-bottom: 24px;
}

body.light-theme .segmented-control {
    background: rgba(0, 0, 0, 0.04);
}

.segment-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 12px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.segment-btn:hover {
    color: var(--text-primary);
}

.segment-btn.selected {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body.light-theme .segment-btn.selected {
    background: #fff;
}

/* Topic Selector Style */
.topic-selector-container {
    max-width: 480px;
    width: 100%;
    margin: 0 auto 32px;
    animation: fadeIn 0.8s ease;
}

.topic-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: rgba(0, 0, 0, 0.2);
    padding: 6px;
    border-radius: 16px;
    border: 1px solid var(--border);
    margin-bottom: 0;
}

body.light-theme .topic-selector {
    background: rgba(0, 0, 0, 0.04);
}

.topic-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.topic-btn:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.topic-btn.selected {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

body.light-theme .topic-btn.selected {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Checkbox Filters */
.filters-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.92rem;
    color: var(--text-secondary);
    font-weight: 500;
    user-select: none;
}

.checkbox-filter input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-box {
    width: 20px;
    height: 20px;
    border: 1px solid var(--option-border);
    background: var(--option-bg);
    border-radius: 6px;
    display: inline-block;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-filter:hover .checkbox-box {
    border-color: var(--border-hover);
}

.checkbox-filter input:checked + .checkbox-box {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.checkbox-filter input:checked + .checkbox-box::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-filter input:checked ~ .filter-name {
    color: var(--text-primary);
    font-weight: 600;
}

/* Scoreboard Panel */
.scoreboard-title {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 800;
    margin-bottom: 8px;
}

.scoreboard-card {
    text-align: center;
}

.scores-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.score-item-new {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

body.light-theme .score-item-new {
    background: rgba(0, 0, 0, 0.02);
}

.score-item-new:hover {
    border-color: var(--border-hover);
    background: var(--option-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.score-label-new {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.score-val-new {
    font-size: 1.15rem;
    color: var(--accent-secondary);
    font-weight: 800;
    font-family: var(--font-mono);
}

/* Scope Selector Style */
.scope-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(0, 0, 0, 0.2);
    padding: 6px;
    border-radius: 16px;
    border: 1px solid var(--border);
    margin-bottom: 0;
}

body.light-theme .scope-selector {
    background: rgba(0, 0, 0, 0.04);
}

.scope-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.scope-btn:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.scope-btn.selected {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

body.light-theme .scope-btn.selected {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Play Buttons Layout */
.actions-area {
    display: flex;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 36px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    box-shadow: 0 15px 30px -10px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -5px var(--accent-glow);
}

.btn-secondary {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

body.light-theme .btn-secondary {
    background: rgba(0,0,0,0.02);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.07);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

body.light-theme .btn-secondary:hover {
    background: rgba(0,0,0,0.04);
}

.btn-start {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    padding: 16px 48px;
    border-radius: 14px;
    font-size: 1.1rem;
    box-shadow: 0 15px 35px -8px var(--accent-glow);
    width: auto;
}

.btn-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 45px -5px var(--accent-glow);
}

.btn-start svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.btn-start:hover svg {
    transform: translateX(4px);
}

/* ==========================================
   GAME PLAY SCREEN
========================================== */

/* Game Status Bar */
.game-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.status-left, .status-right {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 30%;
}

.status-right {
    justify-content: flex-end;
}

.status-center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40%;
}

.status-stat {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    font-weight: 700;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.text-accent {
    color: var(--accent-secondary);
}

#streak-badge {
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Timer Display */
.timer-display {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    padding: 6px 14px;
    border-radius: 30px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.05rem;
}

.timer-display .icon-timer {
    width: 16px;
    height: 16px;
}

body.light-theme .timer-display {
    background: rgba(220, 38, 38, 0.06);
    border-color: rgba(220, 38, 38, 0.15);
    color: var(--incorrect);
}

/* Counter Display */
.counter-display {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

/* Lives Display */
.hearts-wrapper {
    display: flex;
    gap: 4px;
}

.heart {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.heart.lost {
    filter: grayscale(1) opacity(0.2);
    transform: scale(0.8);
}

/* Progress Bar */
.game-progress-track {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 32px;
}

.game-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 10px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Question Card */
.question-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    margin-bottom: 24px;
    transition: all 0.3s ease;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.question-card.wrong-shake {
    animation: shake 0.5s ease;
    border-color: var(--incorrect);
    box-shadow: 0 0 30px var(--incorrect-glow);
}

.question-card.correct-glow {
    border-color: var(--correct);
    box-shadow: 0 0 30px var(--correct-glow);
}

.q-badge {
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.q-text {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 32px;
    color: var(--text-primary);
}

/* Interactive Choices Area */
.q-interactive-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.interactive-layout {
    animation: fadeIn 0.4s ease;
}

.grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--option-bg);
    border: 1px solid var(--option-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    outline: none;
}

.btn-option:hover {
    background: var(--option-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-option .opt-letter {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
}

body.light-theme .btn-option .opt-letter {
    background: rgba(0,0,0,0.03);
}

.btn-option:hover .opt-letter {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

/* Answer Feedback States on Options */
.btn-option.selected-correct {
    background: var(--correct-glow) !important;
    border-color: var(--correct) !important;
    color: #fff !important;
}
body.light-theme .btn-option.selected-correct {
    color: var(--correct) !important;
}

.btn-option.selected-correct .opt-letter {
    background: var(--correct) !important;
    border-color: var(--correct) !important;
    color: #fff !important;
}

.btn-option.selected-wrong {
    background: var(--incorrect-glow) !important;
    border-color: var(--incorrect) !important;
    color: #fff !important;
}
body.light-theme .btn-option.selected-wrong {
    color: var(--incorrect) !important;
}

.btn-option.selected-wrong .opt-letter {
    background: var(--incorrect) !important;
    border-color: var(--incorrect) !important;
    color: #fff !important;
}

.btn-option.reveal-correct {
    border-color: var(--correct) !important;
}

/* CHECKLIST INPUT STYLE */
.section-instruction {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 500;
}

.checklist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.checklist-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--option-bg);
    border: 1px solid var(--option-border);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
    user-select: none;
}

.checklist-option:hover {
    border-color: var(--border-hover);
    background: var(--option-hover);
}

.checklist-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checklist-option .checkbox-indicator {
    width: 18px;
    height: 18px;
    border: 1px solid var(--border);
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.checklist-option:hover .checkbox-indicator {
    border-color: var(--border-hover);
}

.checklist-option input:checked + .checkbox-indicator {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.checklist-option input:checked + .checkbox-indicator::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checklist-option.selected {
    background: var(--option-selected-bg);
    border-color: var(--option-selected-border);
}

/* Feedback verification states for checklist */
.checklist-option.verified-correct {
    border-color: var(--correct) !important;
    background: var(--correct-glow) !important;
}
.checklist-option.verified-wrong {
    border-color: var(--incorrect) !important;
    background: var(--incorrect-glow) !important;
}

/* Action button for submission */
.btn-action-submit {
    background: var(--text-primary);
    color: var(--bg);
    width: 100%;
    font-size: 0.95rem;
    padding: 14px;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

body.light-theme .btn-action-submit {
    background: var(--text-primary);
    color: #fff;
}

.btn-action-submit:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

/* NUMERIC INPUT STYLE */
.number-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.number-input-row input {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 1.25rem;
    font-family: var(--font-mono);
    font-weight: 700;
    outline: none;
    transition: all 0.2s ease;
}

body.light-theme .number-input-row input {
    background: rgba(0, 0, 0, 0.02);
}

.number-input-row input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Correct / Wrong highlight on input box */
.number-input-row input.correct-input {
    border-color: var(--correct) !important;
    box-shadow: 0 0 10px var(--correct-glow) !important;
}

.number-input-row input.wrong-input {
    border-color: var(--incorrect) !important;
    box-shadow: 0 0 10px var(--incorrect-glow) !important;
}

.year-suffix {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 700;
    background: var(--border);
    padding: 16px 20px;
    border-radius: 12px;
    color: var(--text-secondary);
    min-width: 80px;
    text-align: center;
}

.input-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    padding-left: 4px;
}

/* Explanation Layout for wrong answers */
.explanation-box {
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

body.light-theme .explanation-box {
    background: rgba(220, 38, 38, 0.02);
    border-color: rgba(220, 38, 38, 0.1);
}

.explanation-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f87171;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

body.light-theme .explanation-title {
    color: var(--incorrect);
}

.explanation-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border);
    color: var(--text-secondary);
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-row strong {
    color: var(--text-primary);
    font-weight: 600;
}

.info-row span {
    font-weight: 500;
    color: var(--text-primary);
    text-align: right;
    padding-left: 12px;
}


/* Timeline Sorting Styles */
.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.timeline-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--option-bg);
    border: 1px solid var(--option-border);
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    animation: fadeIn 0.3s ease;
}

.timeline-item:hover {
    border-color: var(--border-hover);
    background: var(--option-hover);
    transform: translateY(-1px);
}

.timeline-item-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.timeline-rank {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent-glow);
    color: var(--accent-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.88rem;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

body.light-theme .timeline-rank {
    background: rgba(79, 70, 229, 0.05);
    color: var(--accent-primary);
    border-color: rgba(79, 70, 229, 0.15);
}

.timeline-label {
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--text-primary);
}

.timeline-controls {
    display: flex;
    gap: 6px;
}

.btn-ctrl {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

body.light-theme .btn-ctrl {
    background: rgba(0, 0, 0, 0.02);
}

.btn-ctrl:hover:not(:disabled) {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.btn-ctrl:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

/* Timeline option feedback states */
.timeline-item.verified-correct {
    border-color: var(--correct) !important;
    background: var(--correct-glow) !important;
}

.timeline-item.verified-wrong {
    border-color: var(--incorrect) !important;
    background: var(--incorrect-glow) !important;
}

.timeline-item.keyboard-focused {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Streak Notifications */
.streak-notification {
    background: linear-gradient(135deg, #f97316, #ec4899);
    border-radius: 14px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.25);
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    margin-top: 12px;
    justify-content: center;
}

.streak-emoji {
    font-size: 1.25rem;
    animation: bounce 0.6s infinite alternate;
}

/* ==========================================
   RESULTS SCREEN
========================================== */

.results-header {
    text-align: center;
    margin-bottom: 32px;
}

.trophy-wrap {
    font-size: 3rem;
    margin-bottom: 12px;
    animation: bounce 1s infinite alternate;
    display: inline-block;
}

.result-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
}

.summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    text-align: center;
    margin-bottom: 32px;
}

.score-display {
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
}

.score-desc {
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    font-weight: 700;
}

.total-score {
    font-size: 4rem;
    font-family: var(--font-mono);
    font-weight: 800;
    line-height: 1.1;
    margin: 8px 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.high-score-alert {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.25);
    color: #fbbf24;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    animation: pulse 1s infinite alternate;
}

.rating-box {
    margin-bottom: 32px;
}

.rating-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
}

.rating-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 6px 0 10px;
}

.rating-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 480px;
    margin: 0 auto;
}

/* Stats grid on results */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-card {
    background: rgba(0,0,0,0.15);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

body.light-theme .stat-card {
    background: rgba(0,0,0,0.02);
}

.stat-card .stat-num {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
}

.text-orange {
    color: #f97316;
}

.text-cyan {
    color: #06b6d4;
}

.stat-card .stat-label {
    font-size: 0.7rem;
}

/* Results action buttons */
.actions-area-results {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn-retry {
    padding-left: 42px;
    padding-right: 42px;
}

.btn-retry svg {
    width: 16px;
    height: 16px;
}

.btn-retry:hover svg {
    transform: rotate(45deg);
}

/* Footer styling */
footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* ==========================================
   ANIMATIONS & KEYFRAMES
========================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-6px); }
}

@keyframes pulse {
    from { transform: scale(1); opacity: 0.9; }
    to { transform: scale(1.05); opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

/* ==========================================
   RESPONSIVE DESIGN (MOBILE ADAPTATION)
========================================== */

@media (max-width: 768px) {
    .question-card {
        padding: 24px;
        min-height: auto;
    }

    .q-text {
        font-size: 1.25rem;
        margin-bottom: 24px;
    }

    .grid-2x2, .checklist-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .btn-option {
        padding: 14px 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .actions-area-results {
        flex-direction: column;
    }
    
    .actions-area-results .btn {
        width: 100%;
    }
    
    .actions-area .btn-start {
        width: 100%;
        padding: 16px;
    }
    
    .status-left, .status-right {
        width: auto;
    }
    
    .status-center {
        flex: 1;
        justify-content: flex-end;
        padding-right: 8px;
    }
    
    .summary-card {
        padding: 24px 16px;
    }
}

@media (max-width: 640px) {
    .back-link span {
        display: none;
    }
    
    .back-link {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        border: 1px solid var(--border);
        background: rgba(255, 255, 255, 0.03);
        justify-content: center;
        align-items: center;
    }
    
    body.light-theme .back-link {
        background: rgba(0, 0, 0, 0.02);
    }
    
    .back-link:hover {
        border-color: var(--border-hover);
        background: var(--bg-card-hover);
    }
    
    .header-logo {
        font-size: 1rem;
    }
    
    header {
        padding: 20px 0;
    }
}

/* Step-based Wizard & Header Navigation Buttons */
.config-flow-wrapper {
    position: relative;
    width: 100%;
}

.config-step-panel {
    animation: fadeIn 0.4s ease;
    width: 100%;
}

.step-header {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 16px;
}

.btn-back-step {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 10px;
    transition: all 0.2s ease;
    border: 1px dashed var(--border);
}

.btn-back-step:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-hover);
    transform: translateX(-2px);
}

body.light-theme .btn-back-step:hover {
    background: rgba(0, 0, 0, 0.04);
}

.btn-back-step svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.btn-back-step:hover svg {
    transform: translateX(-2px);
}

/* Questions summary card */
.summary-questions-card {
    text-align: left;
    width: 100%;
}

.summary-questions-title {
    color: var(--text-primary);
}

.questions-summary-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

.summary-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

body.light-theme .summary-item {
    background: rgba(0, 0, 0, 0.02);
}

.summary-item:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
}

.summary-item.correct-item {
    border-left: 4px solid var(--correct);
}

.summary-item.wrong-item {
    border-left: 4px solid var(--incorrect);
    background: var(--incorrect-glow);
}

body.light-theme .summary-item.wrong-item {
    background: rgba(220, 38, 38, 0.03);
}

.summary-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
}

.summary-q-num {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.summary-q-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.summary-q-badge.correct {
    background: var(--correct-glow);
    color: var(--correct);
}

.summary-q-badge.wrong {
    background: var(--incorrect-glow);
    color: var(--incorrect);
}

.summary-q-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.summary-answers {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
}

.summary-ans-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: baseline;
}

.summary-ans-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.summary-ans-value {
    font-weight: 700;
}

.summary-ans-value.correct-val {
    color: var(--correct);
}

.summary-ans-value.wrong-val {
    color: var(--incorrect);
}

.summary-details {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.summary-details strong {
    color: var(--text-primary);
}

.summary-tip-box {
    margin-top: 8px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.04);
    border: 1px dashed var(--border-hover);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.summary-tip-box strong {
    color: var(--accent-secondary);
}

/* Practice button styling */
.btn-practice {
    background: linear-gradient(135deg, #f59e0b, #d97706); /* Amber/Orange */
    color: #fff;
    box-shadow: 0 15px 30px -10px rgba(245, 158, 11, 0.15);
}

.btn-practice:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -5px rgba(245, 158, 11, 0.25);
}

/* Click-to-Select Timeline UI */
.timeline-slots-zone {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.timeline-slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.01);
    border: 1.5px dashed var(--border);
    border-radius: 12px;
    padding: 14px 20px;
    min-height: 56px;
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
}

body.light-theme .timeline-slot {
    background: rgba(0, 0, 0, 0.01);
}

.timeline-slot.empty {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 500;
    justify-content: center;
}

.timeline-slot.filled {
    border-style: solid;
    border-color: var(--border-hover);
    background: var(--bg-card);
    cursor: pointer;
}

.timeline-slot.filled:hover {
    border-color: var(--accent-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -2px rgba(99, 102, 241, 0.08);
}

.timeline-slot-num {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-right: 12px;
}

body.light-theme .timeline-slot-num {
    background: rgba(0, 0, 0, 0.05);
}

.timeline-slot-name {
    flex-grow: 1;
    font-weight: 600;
    color: var(--text-primary);
}

.timeline-slot-remove {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.timeline-slot.filled:hover .timeline-slot-remove {
    color: var(--incorrect);
}

/* Correct / Wrong Verification styles on Slots */
.timeline-slot.verified-correct {
    border-style: solid;
    border-color: var(--correct) !important;
    background: var(--correct-glow) !important;
}

.timeline-slot.verified-wrong {
    border-style: solid;
    border-color: var(--incorrect) !important;
    background: var(--incorrect-glow) !important;
}

/* Timeline Pool of Choices */
.timeline-pool-zone {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    color: var(--text-primary);
    box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.1);
    user-select: none;
}

.timeline-card:hover {
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.15);
}

.timeline-card.placed {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
}

/* General Settings Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 7, 18, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
    padding: 16px;
}

/* Modal Card */
.modal-card {
    background: #0d1117;
    border: 1px solid var(--border-hover);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    animation: modalScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
}

body.light-theme .modal-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

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

/* Modal Header */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.btn-close-modal:hover {
    color: var(--text-primary);
}

/* Modal Body */
.modal-body {
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Settings Group */
.settings-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-group-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 700;
}

/* Modal Footer */
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
}

.btn-save-settings {
    background: var(--accent-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-save-settings:hover {
    background: #4f46e5;
    transform: translateY(-1px);
}

/* Modal Selector Layout Adjustments */
.settings-sound-selector,
.settings-theme-selector,
.settings-review-selector {
    grid-template-columns: repeat(2, 1fr) !important;
}

.settings-timeline-count-selector {
    grid-template-columns: repeat(4, 1fr) !important;
}

.custom-timeline-input-row {
    animation: fadeIn 0.3s ease;
}

#modal-input-custom-timeline-count {
    outline: none;
    transition: all 0.2s ease;
}

#modal-input-custom-timeline-count:focus {
    border-color: var(--accent-secondary) !important;
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

/* Explanation Title States */
.explanation-title.correct-title {
    color: var(--correct) !important;
}

.explanation-title.incorrect-title {
    color: var(--incorrect) !important;
}


