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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f0fdfa;
    color: #1f2937;
    line-height: 1.5;
}

.font-heading {
    font-family: 'Inter', sans-serif;
}

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

a:hover {
    text-decoration: none;
}

.bg-white { background-color: #ffffff; }
.bg-teal-50 { background-color: #f0fdfa; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-teal-100 { background-color: #ccfbf1; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-green-100 { background-color: #dcfce7; }
.bg-red-50 { background-color: #fef2f2; }
.bg-red-100 { background-color: #fee2e2; }
.bg-amber-50 { background-color: #fffbeb; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-purple-100 { background-color: #f3e8ff; }
.bg-yellow-100 { background-color: #fef9c3; }

.text-gray-900 { color: #111827; }
.text-gray-600 { color: #4b5563; }
.text-gray-500 { color: #6b7280; }
.text-gray-700 { color: #374151; }
.text-teal-700 { color: #0f766e; }
.text-teal-600 { color: #0d9488; }
.text-teal-500 { color: #14b8a6; }
.text-white { color: #ffffff; }
.text-green-600 { color: #16a34a; }
.text-green-700 { color: #15803d; }
.text-red-600 { color: #dc2626; }
.text-red-700 { color: #b91c1c; }
.text-amber-600 { color: #d97706; }
.text-amber-800 { color: #92400e; }
.text-blue-600 { color: #2563eb; }
.text-purple-600 { color: #9333ea; }
.text-yellow-300 { color: #fde047; }
.text-yellow-700 { color: #a16207; }
.bg-teal-500 { background-color: #14b8a6; }
.bg-green-500 { background-color: #22c55e !important; }


.from-green-400 { --tw-gradient-from: #4ade80; --tw-gradient-to: rgba(74, 222, 128, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-green-600 { --tw-gradient-to: #16a34a; }

.from-yellow-400 { --tw-gradient-from: #facc15; --tw-gradient-to: rgba(250, 204, 21, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-yellow-600 { --tw-gradient-to: #ca8a04; }

.from-red-400 { --tw-gradient-from: #f87171; --tw-gradient-to: rgba(248, 113, 113, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-red-600 { --tw-gradient-to: #dc2626; }
.border { border: 1px solid #e5e7eb; }
.border-gray-200 { border: 1px solid #e5e7eb; }
.border-teal-200 { border: 1px solid #99f6e4; }
.border-teal-300 { border: 1px solid #5eead4; }
.border-green-200 { border: 1px solid #bbf7d0; }
.border-green-300 { border: 1px solid #86efac; }
.border-red-200 { border: 1px solid #fecaca; }
.border-red-300 { border: 1px solid #fca5a5; }
.border-amber-200 { border: 1px solid #fde68a; }
.border-yellow-200 { border: 1px solid #fde047; }
.border-b { border-bottom: none; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-full { border-radius: 9999px; }

.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.leading-relaxed { line-height: 1.625; }

.inline-flex { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 6px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); width: fit-content; }

.flex { display: flex; align-items: center; justify-content: left; gap: 6px; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 14px; font-weight: 500; color: black; transition: all 0.2s ease-in-out; user-select: none; }
.flex:hover { color: #374151; background-color: rgba(255, 255, 255, 0.6); }
.flex:active, .flex:focus-within { color: #111827; transform: translateY(-1px); }

.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.space-y-1\.5 > * + * { margin-top: 0.375rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

.w-full { width: 100%; }
.w-3 { width: 0.75rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-7 { width: 1.75rem; }
.w-8 { width: 2rem; }
.w-9 { width: 2.25rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }

.h-2 { height: 0.5rem; }
.h-3 { height: 0.75rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }
.h-8 { height: 2rem; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-full { height: 100%; }
.duration-500 { transition-duration: 500ms; }
.min-h-screen { min-height: 100vh; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-2 { margin-top: 0.5rem; }

.p-1 { padding: 0.25rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }

.relative { position: relative; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.top-16 { top: 4rem; }
.top-36 { top: 9rem; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; }
.cursor-pointer { cursor: pointer; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.bg-white\/80 { background-color: rgba(255, 255, 255, 0.8); }

.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.from-teal-400 { --tw-gradient-from: #2dd4bf; --tw-gradient-to: rgba(45, 212, 191, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-teal-600 { --tw-gradient-to: #0d9488; }
.from-teal-500 { --tw-gradient-from: #14b8a6; --tw-gradient-to: rgba(20, 184, 166, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-blue-600 { --tw-gradient-to: #2563eb; }

.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }

.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:bg-gray-200:hover { background-color: #e5e7eb; }
.hover\:bg-teal-50:hover { background-color: #f0fdfa; }
.hover\:text-teal-700:hover { color: #0f766e; }
.hover\:text-gray-900:hover { color: #111827; }
.hover\:border-gray-400\/30:hover { border-color: rgba(156, 163, 175, 0.3); }
.hover\:shadow-sm:hover { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.hover\:from-teal-500:hover { --tw-gradient-from: #14b8a6; }
.hover\:to-teal-700:hover { --tw-gradient-to: #0f766e; }
.disabled\:opacity-50:disabled { opacity: 0.5; }

.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-wrap { flex-wrap: wrap; }

.question-slide.active { display: block; }
.question-slide.hidden { display: none; }
.answer-option.disabled { opacity: 0.6; pointer-events: none; }
.answer-option.correct { border-color: #86efac; background-color: #f0fdf4; }
.answer-option.correct .letter-badge { background-color: #22c55e; color: white; }
.answer-option.incorrect { border-color: #fca5a5; background-color: #fef2f2; }
.answer-option.incorrect .letter-badge { background-color: #ef4444; color: white; }

.letter-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    color: #ffffff;
}

.answer-option.correct .letter-badge,
.answer-option.incorrect .letter-badge {
    color: #ffffff;
}

@keyframes moveStripes {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

#progressBar,
#progressBar2 {
    background-color: #ef4444;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.15) 10px, rgba(255,255,255,0.15) 20px);
    background-size: 20px 20px;
    animation: moveStripes 1s linear infinite;
    transition: width 0.3s ease-in-out;
}

#accuracyBar {
    background-color: #22c55e;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.1) 10px, rgba(255,255,255,0.1) 20px);
    background-size: 20px 20px;
    animation: moveStripes 1s linear infinite;
    transition: width 0.3s ease-in-out;
}

.answer-option.correct {
    border-left: 4px solid #22c55e;
}

.answer-option.incorrect {
    border-left: 4px solid #ef4444;
}

.answer-option .flex {
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    padding: 0 !important;
    border-radius: 0 !important;
    cursor: default !important;
    user-select: auto !important;
    gap: 0.75rem !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
}

@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 768px) {
    .md\:flex { display: flex; }
}

@media (min-width: 1024px) {
    .lg\:block { display: block; }
    .lg\:grid-cols-\[220px_1fr_280px\] { grid-template-columns: 220px 1fr 280px; }
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}
#resultsSection {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#resultsSection:not(.hidden) {
    display: flex;
}

#resultsSection .max-w-md {
    animation: slideUp 0.4s ease-out;
}

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

#finalAccuracyBar {
    transition: width 0.5s ease-out;
}

/* Letter Badge Fix */
[style*="background:#14b8a6"] span {
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    display: block;
}