/* -------------------------------------------------------------
   Nukleáris Leszerelés Vizsgafelkészítő - Design System & Styles
   ------------------------------------------------------------- */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;700&display=swap');

/* CSS Variables for Premium Dark Theme (Atomic/Nuclear Theme) */
:root {
    --bg-main: radial-gradient(circle at 50% 50%, hsl(220, 30%, 10%) 0%, hsl(225, 50%, 4%) 100%);
    --bg-card: rgba(18, 22, 33, 0.65);
    --bg-card-hover: rgba(26, 31, 46, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-glow: rgba(16, 185, 129, 0.3);
    
    --text-primary: hsl(210, 40%, 98%);
    --text-secondary: hsl(215, 25%, 72%);
    --text-muted: hsl(215, 16%, 50%);
    
    --accent-emerald: hsl(150, 84%, 48%);
    --accent-emerald-glow: rgba(16, 185, 129, 0.4);
    
    --accent-yellow: hsl(45, 93%, 47%);
    --accent-yellow-glow: rgba(245, 158, 11, 0.4);
    
    --accent-cyan: hsl(190, 90%, 50%);
    --accent-cyan-glow: rgba(6, 182, 212, 0.4);

    --correct: hsl(150, 84%, 45%);
    --correct-bg: rgba(16, 185, 129, 0.12);
    --correct-border: rgba(16, 185, 129, 0.35);
    
    --incorrect: hsl(355, 85%, 55%);
    --incorrect-bg: rgba(239, 68, 68, 0.12);
    --incorrect-border: rgba(239, 68, 68, 0.35);
    
    --category-bg-1: rgba(16, 185, 129, 0.12); 
    --category-text-1: hsl(150, 80%, 75%);
    
    --category-bg-2: rgba(245, 158, 11, 0.12); 
    --category-text-2: hsl(40, 95%, 70%);
    
    --category-bg-3: rgba(6, 182, 212, 0.12); 
    --category-text-3: hsl(190, 90%, 75%);
    
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.12);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(rgba(3, 7, 18, 0.85), rgba(3, 7, 18, 0.85)), url('bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    padding-bottom: 5rem;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Glassmorphic Dashboard */
header {
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-premium);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.5rem;
}

.logo-section .logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-icon {
    width: 2.2rem;
    height: 2.2rem;
    color: var(--accent-emerald);
    filter: drop-shadow(0 0 8px var(--accent-emerald-glow));
    animation: spinSlow 20s linear infinite;
}

.logo-section h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 40%, var(--accent-emerald) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.logo-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.2rem;
    opacity: 0.8;
}

/* Stats Widget */
.stats-widget {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-val.accent {
    color: var(--accent-emerald);
    text-shadow: 0 0 15px var(--accent-emerald-glow);
}

.stat-val.exam-accent {
    color: var(--accent-yellow);
    text-shadow: 0 0 15px var(--accent-yellow-glow);
}

.stat-lbl {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: -0.2rem;
}

/* Progress Tracker Dashboard */
.progress-dashboard {
    display: block;
}

.overall-progress-bar-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.2rem;
}

.overall-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.overall-progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.overall-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-emerald) 0%, var(--accent-cyan) 100%);
    border-radius: 6px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 12px var(--accent-emerald-glow);
}

.category-progress-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 580px) {
    .category-progress-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}

.category-progress-item {
    font-size: 0.82rem;
}

.cat-progress-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.cat-progress-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 3px;
    overflow: hidden;
}

.cat-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Exam Dashboard view in header */
.exam-dashboard {
    width: 100%;
    animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.exam-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .exam-info-grid {
        grid-template-columns: 1fr;
    }
}

.exam-info-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    text-align: center;
}

.exam-info-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.exam-info-val {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Mode Switcher Tabs Styling */
.mode-tabs-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.mode-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 0.35rem;
    border-radius: 16px;
    gap: 0.35rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.6rem 1.4rem;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition-fast);
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    background: var(--bg-card-hover);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: inset 0 0 10px rgba(16, 185, 129, 0.08), 0 4px 12px rgba(0, 0, 0, 0.3);
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.tab-btn.active[data-mode="exam"] {
    color: var(--accent-yellow);
    border-color: rgba(245, 158, 11, 0.2);
    box-shadow: inset 0 0 10px rgba(245, 158, 11, 0.08), 0 4px 12px rgba(0, 0, 0, 0.3);
    text-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

.tab-icon {
    width: 18px;
    height: 18px;
    transition: var(--transition-fast);
}

.tab-btn.active .tab-icon {
    transform: scale(1.05);
}

.tab-btn.active[data-mode="practice"] .tab-icon {
    filter: drop-shadow(0 0 4px var(--accent-emerald-glow));
}

.tab-btn.active[data-mode="exam"] .tab-icon {
    filter: drop-shadow(0 0 4px var(--accent-yellow-glow));
}

/* Controls Sections */
.controls-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.filter-group {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1.1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-body);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

.filter-btn.active {
    background: var(--accent-emerald);
    color: #030712;
    border-color: var(--accent-emerald);
    box-shadow: 0 4px 15px -4px var(--accent-emerald-glow);
    font-weight: 700;
}

/* Switch styling for Only Unlearned toggle */
.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.toggle-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.06);
    transition: .3s;
    border-radius: 34px;
    border: 1px solid var(--border-color);
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-secondary);
    transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--accent-emerald);
    border-color: var(--accent-emerald);
}

input:checked + .slider:before {
    transform: translateX(22px);
    background-color: #030712;
}

/* Exam controls specific styles */
.exam-status-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.exam-badge {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.15);
    color: hsl(355, 90%, 65%);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.pulsing-red {
    animation: pulseGlow 2s infinite;
}

.exam-progress-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.exam-action-wrapper {
    display: flex;
    gap: 0.8rem;
}

.action-btn {
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
}

.restart-exam-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.restart-exam-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.submit-exam-btn {
    background: var(--accent-yellow);
    color: #030712;
    box-shadow: 0 4px 15px -4px var(--accent-yellow-glow);
}

.submit-exam-btn:hover:not(.disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px -4px var(--accent-yellow-glow);
}

.submit-exam-btn.disabled {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-muted) !important;
    box-shadow: none !important;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Quiz Card Grid */
.quiz-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

/* Quiz Card Styling */
.quiz-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-premium);
    position: relative;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.quiz-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-premium), 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    gap: 1rem;
}

.category-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0.35rem 0.8rem;
    border-radius: 8px;
}

.category-tag[data-source*="A"] { background: var(--category-bg-1); color: var(--category-text-1); }
.category-tag[data-source*="B"] { background: var(--category-bg-2); color: var(--category-text-2); }
.category-tag[data-source*="C"] { background: var(--category-bg-3); color: var(--category-text-3); }

/* "Ezt már tudom" Checkbox Button */
.tudom-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 10px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.tudom-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.tudom-btn svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: var(--transition-fast);
}

.tudom-btn.learned {
    background: rgba(16, 185, 129, 0.08);
    color: var(--correct);
    border-color: rgba(16, 185, 129, 0.2);
}

/* Card Body & Question text */
.question-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.question-text .question-number {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Option Statement Items */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.option-item {
    background: rgba(255, 255, 255, 0.012);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    transition: var(--transition-fast);
    cursor: pointer;
    position: relative;
    user-select: none;
}

.option-item:hover:not(.locked) {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
}

.option-layout {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Selection circles / checkboxes styling */
.checkbox-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

/* Multiple choice checkbox is square */
.quiz-card[data-type="multiple"] .checkbox-icon {
    border-radius: 4px;
}

.statement-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Active Selected states */
.option-item.selected {
    border-color: rgba(6, 182, 212, 0.4);
    background: rgba(6, 182, 212, 0.04);
}

.option-item.selected .checkbox-icon {
    border-color: var(--accent-cyan);
    background: var(--accent-cyan);
}

.option-item.selected .checkbox-icon::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #030712;
}

/* Checked indicator square checkbox */
.quiz-card[data-type="multiple"] .option-item.selected .checkbox-icon::after {
    border-radius: 1px;
    width: 6px;
    height: 6px;
    background: #030712;
}

/* Revealed Correct State Styles */
.option-item.revealed-correct {
    border-color: var(--correct-border) !important;
    background: var(--correct-bg) !important;
    cursor: default;
}

.option-item.revealed-correct .checkbox-icon {
    border-color: var(--correct) !important;
    background: var(--correct) !important;
}

.option-item.revealed-correct .checkbox-icon::after {
    content: '✓';
    font-size: 0.75rem;
    color: #030712;
    font-weight: bold;
    border-radius: 0 !important;
    background: transparent !important;
}

.option-item.revealed-incorrect {
    border-color: var(--incorrect-border) !important;
    background: var(--incorrect-bg) !important;
    cursor: default;
}

.option-item.revealed-incorrect .checkbox-icon {
    border-color: var(--incorrect) !important;
    background: var(--incorrect) !important;
}

.option-item.revealed-incorrect .checkbox-icon::after {
    content: '✗';
    font-size: 0.75rem;
    color: #ffffff;
    font-weight: bold;
    border-radius: 0 !important;
    background: transparent !important;
}

.option-item.locked {
    cursor: default;
}

/* Explanation panel slide out */
.explanation-panel {
    display: none !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 0;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
}

.quiz-card.card-revealed .explanation-panel {
    max-height: 500px;
    margin-top: 1.2rem;
    border: 1px solid var(--border-color);
    padding: 1rem 1.2rem;
}

.explanation-title {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.4rem;
    color: var(--accent-emerald);
}

.explanation-body {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Learned card state */
.quiz-card.learned-card {
    opacity: 0.4;
}

.quiz-card.learned-card:hover {
    opacity: 0.85;
}

/* Exam Result Hero Panel */
.exam-result-hero {
    position: relative;
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 24px;
    padding: 2.2rem;
    margin-bottom: 2rem;
    overflow: hidden;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    animation: scaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.result-glow-bg {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 200px;
    height: 200px;
    background: var(--accent-yellow);
    filter: blur(120px);
    opacity: 0.3;
    pointer-events: none;
}

.result-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

@media (max-width: 580px) {
    .result-content {
        flex-direction: column;
        text-align: center;
        gap: 1.2rem;
    }
}

.result-badge-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.grade-badge {
    font-family: var(--font-heading);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-yellow);
    color: #030712;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    box-shadow: 0 0 20px var(--accent-yellow-glow);
}

.grade-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.result-details h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.result-details p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.score-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
}

@media (max-width: 580px) {
    .score-row {
        justify-content: center;
    }
}

.score-label {
    color: var(--text-muted);
}

.score-value {
    color: var(--text-primary);
}

.score-percent {
    color: var(--accent-yellow);
    background: rgba(245, 158, 11, 0.12);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 500;
    animation: scaleIn 0.4s ease;
}

.empty-state h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state button {
    margin-top: 1rem;
    background: var(--accent-emerald);
    color: #030712;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
}

.empty-state button:hover {
    transform: translateY(-1px);
}

/* Helper utilities */
.hidden {
    display: none !important;
}

/* Footer Styling */
footer {
    text-align: center;
    margin-top: 4rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Practice Mode Verify Button */
.practice-action-wrapper {
    margin-top: 1.2rem;
    display: flex;
    justify-content: flex-end;
}

.verify-btn {
    background: var(--accent-cyan);
    color: #030712;
    padding: 0.6rem 1.4rem;
    border-radius: 12px;
    font-family: var(--font-body);
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px -4px var(--accent-cyan-glow);
    transition: var(--transition-fast);
}

.verify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px -4px var(--accent-cyan-glow);
    background: hsl(190, 95%, 55%);
}

.verify-btn:active {
    transform: translateY(0);
}
