/* IELTS/static/css/style.css */

/* Alpine.js x-cloak — Alpine initialize bo'lguncha elementni yashiradi */
[x-cloak] { display: none !important; }

:root {
    --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 0.95rem;
    --font-size-small: 0.8rem;
    --font-size-smaller: 0.72rem;
    --font-size-medium: 1rem;
    --font-size-large: 1.1rem;
    --font-size-xl: 1.25rem;
    --line-height-base: 1.6;
    --line-height-tight: 1.35;
    --text-color: #111827;
    --text-muted: #64748b;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --border-soft: rgba(148,163,184,0.18);
    --radius-base: 0.85rem;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
}

html {
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--text-color);
    background: #f8fafc;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background: #f8fafc;
}

.ui-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-smaller);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.q-number {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 24px !important;
    height: 24px !important;
    padding: 0 6px !important;
    background-color: #1e293b !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    border-radius: 6px !important;
    text-align: center !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15) !important;
    user-select: none !important;
}

p, span, li, a, button, input, textarea {
    font-family: var(--font-sans);
}

.ui-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.3rem 0.65rem;
    border-radius: 0.75rem;
    background: var(--surface-soft);
    border: 1px solid #e2e8f0;
    color: #334155;
}

.ui-instruction {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #334155;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    background: #f8fafc;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: block;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

.ui-toast {
    position: relative;
    overflow: hidden;
    /* ⚠️ `min-width: 320px` EDI ✗ — konteyner mobilda `calc(100vw-2rem)`
       (320px ekranda 288px), ya'ni toast konteynerdan **20–30px toshib**
       ekrandan chiqib ketardi (o'lchandi 2026-09-21: 320px da 30px,
       360–768px da 20px). Endi konteyner o'lchamiga bo'ysunadi ✓. */
    width: 100%;
    min-width: 0;
    border-radius: 1.25rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-soft);
    color: white;
}

.ui-toast::before {
    content: '';
    position: absolute;
    right: -1rem;
    top: -1rem;
    width: 6rem;
    height: 6rem;
    background: rgba(255,255,255,0.1);
    border-radius: 9999px;
    filter: blur(16px);
    pointer-events: none;
}

/* ⚠️ KONTRAST (o'lchandi 2026-09-21): oq matn uchun fon yorqinligi L <= 0.1833
   bo'lishi SHART (WCAG AA 4.5). Eski gradientlar yorug' uchi bilan hisoblangan:
     error   #ef4444 = 3.76 ✗   success #10b981 = 2.56 ✗
     warning #f59e0b = 2.15 ✗   info    #3b82f6 = 3.72 ✗
   Endi har bir gradientning **eng yorug' uchi** ham 4.5 dan o'tadi ✓:
     error #dc2626 = 4.85 ✓ · success #047857 = 5.55 ✓
     warning #b45309 = 5.05 ✓ · info #2563eb = 5.20 ✓
   Sabab: toast'lar **imtihon runner'ida ham** ko'rinadi (flash xabarlar) —
   ya'ni nuqson talaba imtihon paytida ham chiqardi. */
.ui-toast.error {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-color: #b91c1c;
}

.ui-toast.success {
    background: linear-gradient(135deg, #047857, #065f46);
    border-color: #047857;
}

.ui-toast.warning {
    background: linear-gradient(135deg, #b45309, #92400e);
    border-color: #b45309;
}

.ui-toast.info {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: #1d4ed8;
}

.ui-toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.15);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.ui-toast-title {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    /* ⚠️ `rgba(255,255,255,0.85)` EDI ✗ — yorug' gradient uchida 4.49 (kerak 4.5),
       ya'ni **juda chegarada yiqilardi** (o'lchandi 2026-09-21). 0.95 → 5.07 ✓ */
    color: rgba(255,255,255,0.95);
    margin-bottom: 0.2rem;
}

.ui-toast-message {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.ui-hero-title {
    text-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.ui-skill-label {
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1e293b;
}

.ui-skill-number {
    font-size: 1.6rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.05em;
}

.ui-skill-meta {
    text-align: right;
}

.ui-skill-meta-label {
    display: block;
    /* ⚠️ 2026-09-22: 0.65rem (10.4px) edi -> 0.7rem (11.2px). */
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.ui-result-chip {
    font-size: 0.8rem;
    font-weight: 900;
    color: #334155;
    background: #f8fafc;
    padding: 0.35rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
}

.ui-score-status {
    font-size: 0.8rem;
    font-weight: 900;
    /* MOBIL/KONTRAST (2026-09-20): #d97706 (amber-600) fon #fffbeb ustida **3.08** edi ✗.
       #b45309 (amber-700) → **4.88** ✓ */
    color: #b45309;
    background: #fffbeb;
    padding: 0.35rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid #fef3c7;
    display: inline-flex;
    align-items: center;
}

.ui-none-status {
    font-size: 0.8rem;
    font-weight: 900;
    color: #64748b;
    background: #f8fafc;
    padding: 0.35rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
}

.flow-chart-builder {
    position: relative;
}

.flow-chart-row {
    position: relative;
}

.flow-chart-node {
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.flow-chart-node:hover {
    transform: translateY(-1px);
    border-color: #60a5fa;
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.12);
}

.flow-chart-horizontal-arrow {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(50%, -50%);
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 9999px;
    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.12);
    pointer-events: none;
}

.flow-chart-connector {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0.75rem 0;
}

.word-bank-item {
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
}

/* Standard IELTS Scrollbar */
.ielts-scrollbar::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
.ielts-scrollbar::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-left: 1px solid #ccc;
}
.ielts-scrollbar::-webkit-scrollbar-thumb {
    background: #cdcdcd;
    border: 3px solid #f0f0f0;
    border-radius: 7px;
}
.ielts-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #a6a6a6;
}

/* Gap-Fill Inputs for IELTS Exam Runner */
.ielts-input-wrapper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 0.55rem;
    padding: 0.3rem 0.6rem;
    min-width: 100px;
    background-color: #ffffff;
    box-shadow: inset 0 1px 3px rgba(15,23,42,0.08);
}
.ielts-input-wrapper:focus-within {
    border-color: #3f6791;
    box-shadow: 0 0 0 3px rgba(63,103,145,0.15);
}
.ielts-input-num {
    color: #334155;
    font-weight: 800;
    margin-right: 6px;
}
/* Exam runner gap input — NOT the Tailwind ielts-input class */
.ielts-input-wrapper .ielts-input {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: #111827;
    box-shadow: none !important;
    outline: none !important;
    flex: 1;
    min-width: 50px;
}

/* IELTS Authentic Formatting for Charts & Images inside Text Blocks */
.prose img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 90% !important;
    height: auto !important;
    border: 1px solid #ccc !important;
    background-color: #fff !important;
    padding: 8px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important;
    border-radius: 2px !important;
}

/* Restore List Styles for CKEditor Content */
.prose ul {
    list-style-type: disc !important;
    padding-left: 2rem !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}
.prose ol {
    list-style-type: decimal !important;
    padding-left: 2rem !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}
.prose li {
    margin-bottom: 0.25rem !important;
}
.prose ul ul, .prose ol ul {
    list-style-type: circle !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
}


/* Animations */
.animate-fade-in-up {
    animation: fadeInUp 0.2s ease-out;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

/* Block Browser Ext Popups (Yandex Translate, etc) */
.passage-content, .question-block {
    -webkit-touch-callout: none !important;
}
::selection {
    background: #b3d4fc;
    color: inherit;
}

/* Grade Essay Specific Scrollbar & Styles */
.grade-essay-body::-webkit-scrollbar { width: 5px; height: 5px; }
.grade-essay-body::-webkit-scrollbar-track { background: transparent; }
.grade-essay-body::-webkit-scrollbar-thumb { background: #3f3f46; border-radius: 3px; }
.grade-essay-body::-webkit-scrollbar-thumb:hover { background: #52525b; }

.essay-text {
    font-family: 'Georgia', serif;
    line-height: 1.8;
    font-size: 0.95rem;
    color: #1f2937;
}

/* Global Scrollbar */
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Standard Sidebar Styles */
.dashboard-sidebar .sidebar-header {
    padding: 32px 24px;
}
.dashboard-sidebar .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 13px;
    color: #94a3b8;  /* kontrast-ok: qorong'i sidebar (#0f172a) ustida — 6.45 ✓ */
    /* ⚠️ 2026-09-21: `all 0.4s` sidebar yopilishida kumulativ sekinlashuvga olib
       kelardi ✗ (layout reflow → barcha xossa 400 ms animatsiya). Faqat hover'da
       o'zgaradigan xossalar (150 ms — sezilarli tezroq, baribir silliq ✓). */
    transition: color 0.15s, background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
    position: relative;
    overflow: hidden;
}
.dashboard-sidebar .nav-item i {
    transition: transform 0.15s, color 0.15s;
    width: 20px;
    text-align: center;
}
.dashboard-sidebar .nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}
.dashboard-sidebar .nav-item:hover i {
    transform: scale(1.2) rotate(5deg);
    color: #e4002b;
}
.dashboard-sidebar .nav-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}
.dashboard-sidebar .nav-item:hover::after {
    left: 100%;
}
.dashboard-sidebar .nav-item-active {
    background: linear-gradient(135deg, #e4002b, #b00020) !important;
    color: white !important;
    box-shadow: 0 8px 25px rgba(228, 0, 43, 0.4);
}
.dashboard-sidebar .nav-item-active i {
    color: white !important;
}
.dashboard-sidebar .profile-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 6px 8px;
    transition: border-color 0.25s, background 0.25s;
}
.dashboard-sidebar .profile-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(228, 0, 43, 0.35);
}

/* Track Toggle for Admin */
.admin-track-toggle {
    display: flex;
    padding: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0 16px 24px 16px;
}
.admin-track-btn {
    flex: 1;
    padding: 10px;
    text-align: center;
    /* ⚠️ 2026-09-22: 10px edi -> 11px (platformada eng kichik matn pol o'lchami). */
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 14px;
    transition: all 0.3s;
    color: #94a3b8;  /* kontrast-ok: qorong'i sidebar (#0f172a) ustida — 6.45 ✓ */
}
.admin-track-btn.active {
    background: white;
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Glass Card — ielts-glass-card (tailwind.css) ga o'tgan, bu yerda kerak emas */

/* Django Password Input (Profile Edit) */
form.pass_form input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    font-weight: 500;
    color: #1f2937;
    outline: none;
    transition: all 0.3s ease;
}
form.pass_form input[type="password"]:focus {
    --tw-ring-color: rgba(228, 0, 43, 0.2);
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    border-color: #e4002b;
    background-color: #ffffff;
}

/* Writing Textarea Editor Override */
.textarea-editor iframe {
    border-radius: 1rem !important;
    border: 1px solid #e2e8f0 !important;
}

/* Base Checkbox Style */
input[type='checkbox'] {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.375rem;
    border-color: #cbd5e1;
}
/* HTMX Indicator */
.htmx-indicator {
    display: none;
}
.htmx-request .htmx-indicator {
    display: inline-block;
}
.htmx-request.htmx-indicator {
    display: inline-block;
}

/* ═══ Exam Question Selection Indicator (from true_false + multiple_choice templates) ═══ */
.group:has(input:checked) .exam-sel-indicator {
    opacity: 1 !important;
}

/* ═══ Exam Card Target Checkbox (from exam_card template) ═══ */
input.target-checkbox:checked + .target-card.theme-mock {
    border-color: #004b87 !important;
    background-color: rgba(0, 75, 135, 0.05) !important;
    color: #004b87 !important;
}
input.target-checkbox:checked + .target-card.theme-cefr {
    border-color: #e4002b !important;
    background-color: rgba(228, 0, 43, 0.05) !important;
    color: #e4002b !important;
}
input.target-checkbox:checked + .target-card .check-icon {
    opacity: 1 !important;
}

/* ═══ Float Animation (from exam_list template) ═══ */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-delayed { animation: float 8s ease-in-out infinite; animation-delay: 2s; }

/* ═══ Exam Result Page (from exam_result template) ═══ */
.results-layout {
    width: 100%;
    margin: 0 auto;
    padding: 16px 24px;
    min-height: 100vh;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

@media (max-width: 1024px) {
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .skills-grid { grid-template-columns: 1fr; }
}

.skill-card {
    background-color: white;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.skill-card.active-blue { border-color: #3b82f6; box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15); background-color: #fafbfd; }
.skill-card.active-blue::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, #3b82f6, #60a5fa); }

.skill-card.active-rose { border-color: #f43f5e; box-shadow: 0 8px 24px rgba(244, 63, 94, 0.15); background-color: #fdfafa; }
.skill-card.active-rose::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, #f43f5e, #fb7185); }

.skill-card.active-emerald { border-color: #10b981; box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15); background-color: #fafdfa; }
.skill-card.active-emerald::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, #10b981, #34d399); }

.skill-card.active-amber { border-color: #f59e0b; box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15); background-color: #fdfcfa; }
.skill-card.active-amber::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, #f59e0b, #fbbf24); }

/* Result scrollbar */
.custom-scrollbar::-webkit-scrollbar { width: 5px; height: 5px; }
.custom-scrollbar::-webkit-scrollbar-track { background: #f1f5f9; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

/* Result gap/table display */
.result-gap-container table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; border: 1px solid #e2e8f0; }
.result-gap-container th { background-color: #f8fafc; border: 1px solid #e2e8f0; padding: 12px; font-weight: bold; text-align: left; }
.result-gap-container td { border: 1px solid #e2e8f0; padding: 12px; vertical-align: top; }

/* ═══ Flow Chart (from map_labelling template) ═══ */
.flow-chart-content ul,
.flow-chart-content ol {
    padding-left: 1.25rem !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
    list-style-type: disc !important;
}
.flow-chart-content li {
    margin-bottom: 0.5rem !important;
    color: #475569 !important;
    line-height: 1.6 !important;
}
.flow-chart-node:hover { transform: translateY(-2px); }
.flow-chart-connector svg line {
    stroke-dasharray: 4;
    animation: flow-dash 30s linear infinite;
}
@keyframes flow-dash { to { stroke-dashoffset: -100; } }
.word-bank-item { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }

/* ─── CKEditor 5 — admin question editor balandligi ───────────────────
 * CKEditor 5 default config'ida `height` parameteri yo'q (CKEditor 4'dan farqli).
 * Balandlikni CSS bilan o'rnatamiz, aks holda editor maydoni 0px bo'lib qoladi.
 */
.ck-editor-container { width: 100%; }
.ck-editor__editable_inline {
    min-height: 180px;
    max-height: 600px;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem !important;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}
/* Instruction maydoni qisqaroq (config_name=instruction_cfg) */
#input-instruction + .ck-editor .ck-editor__editable_inline,
#input-passage-text + .ck-editor .ck-editor__editable_inline {
    min-height: 120px;
}
/* Asosiy savol matni — kattaroq */
#input-content + .ck-editor .ck-editor__editable_inline {
    min-height: 320px;
}
.ck.ck-toolbar {
    border-radius: 0.5rem 0.5rem 0 0 !important;
    border-color: #cbd5e1 !important;
}
.ck.ck-editor__main > .ck-editor__editable {
    border-radius: 0 0 0.5rem 0.5rem !important;
}
.ck.ck-button:hover { background: #f1f5f9 !important; }
.ck.ck-button.ck-on { background: #e0f2fe !important; }
/* z-index: HTMX modal ichida toolbar dropdownlari ko'rinishi uchun */
.ck-body-wrapper { z-index: 100000; }

/* ─── Fokus ko'rinishi — klaviatura uchun MAJBURIY ───────────────────────
   Ilgari `.ielts-input` va parol maydonida `outline: none` bor edi, lekin
   ko'rinadigan alternativa YO'Q edi ✗ → klaviatura bilan ishlaydigan
   foydalanuvchi qaysi maydonda turganini umuman ko'rmasdi (WCAG 2.4.7 ✗).
   Endi: brend qizili halqa. Kontrast — oq fonda 4.85 ✓, qorong'i
   sidebarda 4.0 ✓ (talab ≥3:1, WCAG 2.4.11 ✓).
   `!important` SHART — yuqorida `outline: none !important` bor. */
:focus-visible {
    outline: 2px solid #e4002b !important;
    outline-offset: 2px;
}
/* Qorong'i sidebar'da qizil halqa yetarli — oq halqa yorqinroq ko'rinadi */
.dashboard-sidebar :focus-visible {
    outline-color: #ffffff !important;
}

/* `outline: none !important` ni yengish uchun ANIQROQ selektor kerak ✗→✓
   `.ielts-input-wrapper .ielts-input` (0,2,0) mening `:focus-visible` (0,1,0)
   dan ustun — shuning uchun bu yerda 0,3,0 ishlatiladi.
   Tekshirildi: usiz imtihon maydonida fokus halqasi KO'RINMASDI ✗. */
.ielts-input-wrapper .ielts-input:focus-visible,
.ielts-input:focus-visible,
form.pass_form input[type="password"]:focus-visible {
    outline: 2px solid #e4002b !important;
    outline-offset: 2px;
}
