:root {
    --brand-50: #f0fdf4;
    --brand-100: #dcfce7;
    --brand-200: #bbf7d0;
    --brand-500: #10b981;
    --brand-600: #059669;
    --brand-700: #047857;
    --brand-900: #064e3b;
    --accent-500: #3b82f6;
    --accent-600: #2563eb;
    --accent-700: #1d4ed8;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
}

/* Custom Scrollbar for Theory */
.theory-scroll {
    max-height: 280px;
    overflow-y: auto;
    padding-right: 8px;
}

.theory-scroll::-webkit-scrollbar {
    width: 4px;
}

.theory-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.theory-scroll::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.dark .theory-scroll::-webkit-scrollbar-thumb {
    background: #334155;
}

body {
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

/* Premium Gradient Header */
header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.3);
}

.dark header {
    background: rgba(15, 23, 42, 0.7);
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

/* Progress bar premium look */
#progress-bar {
    background: linear-gradient(90deg, var(--brand-500), #34d399);
}

/* Card interactions */
.card-enter {
    opacity: 0;
    transform: translateY(20px);
    will-change: transform, opacity;
}

/* Premium Button Styling */
button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#next-btn {
    background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
    color: white;
}

#next-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
}

.dark #next-btn:hover:not(:disabled) {
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.2);
}

/* Sidebar refined */
#sidebar .module-switch-btn {
    border-radius: 16px;
    margin-bottom: 12px;
    border: 1px solid transparent;
}

#sidebar .module-switch-btn.active {
    background: var(--brand-600);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.2);
}

/* Quiz Option refinement */
.quiz-option {
    transition: all 0.2s ease;
}

.dark .quiz-option {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

.quiz-option:hover {
    transform: scale(1.02);
}

.quiz-option.selected {
    border-color: var(--accent-500);
    background: #eff6ff;
}

.dark .quiz-option.selected {
    background: #1e3a8a33;
    border-color: var(--accent-500);
}

.quiz-option.correct {
    border-color: var(--brand-500);
    background: var(--brand-50);
}

.dark .quiz-option.correct {
    background: #065f4633;
    border-color: var(--brand-500);
}

.quiz-option.incorrect {
    border-color: #ef4444;
    background: #fef2f2;
}

.dark .quiz-option.incorrect {
    background: #991b1b33;
    border-color: #ef4444;
}

/* Result Card */
.result-card {
    background: white;
    border-radius: 32px;
}

.dark .result-card {
    background: #1e293b;
    border: 1px solid #334155;
}

/* Ko-fi Button Premium */
.ko-fi-btn {
    background: #29abe0;
    color: white;
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s;
}

.ko-fi-btn:hover {
    transform: rotate(-2deg) scale(1.05);
}
