:root {
    --bg-dark: #0b1120;
    --bg-surface: #0f172a;
    --bg-card: #162032;
    --bg-hover: #1e2b42;
    --border: #26354a;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --primary: #0284c7;
    --primary-hover: #0369a1;
    --primary-glow: rgba(2, 132, 199, 0.25);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Evrensel Gizleme Sınıfı */
.hidden {
    display: none !important;
}

/* =========================================================
   GİRİŞ EKRANI (STUDENT LOGIN)
========================================================= */
.student-login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: radial-gradient(circle at top, #0f2744 0%, var(--bg-dark) 70%);
}

.login-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.login-brand {
    text-align: center;
    margin-bottom: 28px;
}

.brand-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-glow);
    color: #60a5fa;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    border: 1px solid rgba(96, 165, 250, 0.25);
}

.login-brand h1 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.login-brand p {
    font-size: 13.5px;
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.admin-login-link {
    display: block;
    text-align: center;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.admin-login-link:hover {
    color: var(--primary);
}

/* =========================================================
   SINAV MOTORU EKRANI
========================================================= */
.exam-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.exam-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.exam-student-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.student-tag {
    font-weight: 700;
    font-size: 15px;
}

.dept-tag {
    font-size: 12px;
    background: var(--primary-glow);
    color: #60a5fa;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.timer-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 6px 14px;
    border-radius: var(--radius-md);
    color: #f87171;
    font-weight: 700;
    font-family: var(--font-mono);
    font-size: 15px;
}

.exam-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.question-panel {
    flex: 1;
    padding: 32px 48px 48px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.question-panel > * {
    width: 100%;
    max-width: 880px;
}

.q-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.q-number-pill {
    background: var(--primary-glow);
    color: #38bdf8;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.q-progress-text {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--bg-surface);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.q-text {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.55;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.q-code-block {
    background: #020617;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    font-family: var(--font-mono);
    font-size: 13.5px;
    line-height: 1.6;
    color: #38bdf8;
    margin-bottom: 24px;
    overflow-x: auto;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.q-code-block pre {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    font-family: var(--font-mono) !important;
    font-size: inherit !important;
    line-height: inherit !important;
    white-space: pre !important;
    overflow-x: auto;
    border: none !important;
    box-shadow: none !important;
}

.q-code-block code {
    font-family: var(--font-mono) !important;
    font-size: inherit !important;
    line-height: inherit !important;
    background: transparent !important;
    text-shadow: none !important;
    white-space: pre !important;
    display: inline-block;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.option-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    position: relative;
}

.option-card:hover {
    background: var(--bg-hover);
    border-color: #38bdf8;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.option-card.selected {
    background: rgba(2, 132, 199, 0.16);
    border-color: #0284c7;
    box-shadow: 0 0 0 2px var(--primary-glow), 0 4px 16px rgba(2, 132, 199, 0.2);
}

.opt-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.option-card:hover .opt-letter {
    border-color: #38bdf8;
    color: #ffffff;
}

.option-card.selected .opt-letter {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(2, 132, 199, 0.5);
}

.opt-text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-primary);
    flex: 1;
}

.q-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 10px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.q-actions .btn {
    min-width: 160px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-md);
}

/* =========================================================
   SAĞ PANEL (SORU PALETİ 1-100)
========================================================= */
.palette-panel {
    width: 310px;
    background: var(--bg-surface);
    border-left: 1px solid var(--border);
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100%;
}

.palette-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.palette-title small {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.palette-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    align-content: start; /* Satırların panel boyuna esneyip devasa olmasını engeller */
    overflow-y: auto;
    flex: 1;
    padding: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.palette-grid::-webkit-scrollbar {
    width: 5px;
}

.palette-grid::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.palette-btn {
    aspect-ratio: 1;
    width: 100%;
    min-height: 38px;
    max-height: 48px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.palette-btn:hover {
    border-color: #38bdf8;
    color: #ffffff;
    background: var(--bg-hover);
    transform: translateY(-1px);
}

.palette-btn.current {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.22);
    color: #38bdf8;
    font-weight: 800;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}

.palette-btn.answered {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.5);
    color: #34d399;
}

.palette-btn.answered.current {
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
}

.palette-legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    font-size: 11.5px;
    color: var(--text-muted);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-current { background: #38bdf8; }
.legend-answered { background: var(--success); }
.legend-empty { background: var(--border); }

/* =========================================================
   GÜVENLİK VE BLUR KORUMA EKRANI (FULLSCREEN BLOCKER)
========================================================= */
.security-blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(25px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    text-align: center;
}

.security-blur-overlay.hidden {
    display: none;
}

.security-card {
    background: #162032;
    border: 2px solid #ef4444;
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 520px;
    box-shadow: 0 0 50px rgba(239, 68, 68, 0.4);
    animation: pulseWarning 1.5s infinite alternate;
}

@keyframes pulseWarning {
    from { border-color: #ef4444; }
    to { border-color: #f59e0b; }
}

.warning-icon {
    font-size: 50px;
    margin-bottom: 16px;
}

.security-card h2 {
    color: #f87171;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

.security-card p {
    color: #cbd5e1;
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.violation-pill {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    border-radius: 20px;
    color: #fca5a5;
    font-weight: 700;
    margin-bottom: 24px;
}

/* =========================================================
   SONUÇ KARNESİ EKRANI
========================================================= */
.results-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 560px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}

.score-badge {
    font-size: 48px;
    font-weight: 900;
    color: #38bdf8;
    margin: 16px 0;
}

.results-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 24px 0;
}

.res-stat-box {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    padding: 14px;
    border-radius: var(--radius-md);
}

.res-stat-box .val {
    font-size: 20px;
    font-weight: 800;
}

.res-stat-box .lbl {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.results-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

/* =========================================================
   GENEL BUTONLAR & BİLEŞENLER
========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 44px;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 0 15px var(--primary-glow); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-secondary { background: var(--border); color: var(--text-primary); }
.btn-secondary:hover { background: #334460; }
.btn-outline-primary {
    background: transparent;
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
}
.btn-outline-primary:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: #38bdf8;
}
.btn-block { width: 100%; }
.btn-sm { padding: 6px 14px; font-size: 12.5px; min-height: 34px; }

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    margin-bottom: 18px;
}
.alert-danger { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.alert-success { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.alert.hidden { display: none; }

/* Mobil Soru Paleti Aç/Kapa Butonu (Masaüstünde Gizli) */
.mobile-palette-toggle {
    display: none;
}
.palette-backdrop {
    display: none;
}

/* =========================================================
   RESPONSİVE DÜZEN & MOBİL UYUMLULUK
========================================================= */
@media (max-width: 991px) {
    .exam-header {
        padding: 10px 16px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .exam-student-badge {
        font-size: 13px;
        gap: 8px;
    }

    .timer-box {
        padding: 4px 10px;
        font-size: 13.5px;
    }

    .mobile-palette-toggle {
        display: inline-flex;
    }

    .exam-body {
        position: relative;
        overflow: hidden;
    }

    .question-panel {
        padding: 20px 16px 95px;
        overflow-y: auto;
        align-items: stretch;
    }

    .question-panel > * {
        max-width: 100%;
    }

    .q-text {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 18px;
    }

    .q-code-block {
        font-size: 12px;
        padding: 12px 14px;
        max-width: 100%;
        overflow-x: auto;
    }

    .option-card {
        padding: 13px 15px;
        min-height: 48px;
        gap: 12px;
    }

    /* Mobilde Soru Navigasyon Barı Ekranın Altına Sabitlenir */
    .q-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #0f172a;
        padding: 12px 16px;
        margin: 0;
        border-top: 1px solid var(--border);
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6);
        z-index: 50;
        display: flex;
        justify-content: space-between;
        gap: 10px;
        max-width: 100%;
    }

    .q-actions .btn {
        flex: 1;
        min-height: 44px;
        min-width: 0;
    }

    /* Mobilde Soru Paleti: Yan Çekmece (Drawer) */
    .palette-panel {
        position: fixed;
        top: 0;
        right: -100%;
        width: 82%;
        max-width: 340px;
        height: 100vh;
        z-index: 9999;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
        transition: right 0.28s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        flex-direction: column;
    }

    .palette-panel.drawer-open {
        right: 0;
    }

    .palette-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 9998;
        display: block;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    .palette-backdrop.visible {
        opacity: 1;
        pointer-events: auto;
    }

    .palette-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
        align-content: start;
    }

    .palette-btn {
        min-height: 40px;
        max-height: 48px;
        font-size: 13.5px;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 24px 20px;
    }
    .results-card {
        padding: 24px 18px;
    }
    .results-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   ÇOKLU SINAV SEÇİM EKRANI (STUDENT EXAM SELECTION)
========================================================= */
.exam-selection-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    width: 100%;
    max-width: 860px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.exam-selection-header {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.exams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.exam-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    position: relative;
}

.exam-card:hover {
    border-color: #38bdf8;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.exam-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.exam-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
}

.exam-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    flex-grow: 1;
}

.exam-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12.5px;
    color: var(--text-muted);
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 16px;
}

.exam-card-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.exam-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

.exam-status-not_started {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.exam-status-in_progress {
    background: rgba(2, 132, 199, 0.18);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
}

.exam-status-completed {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.btn-outline-primary {
    background: transparent;
    border: 1px solid var(--primary);
    color: #38bdf8;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-outline-primary:hover {
    background: rgba(2, 132, 199, 0.15);
    color: #ffffff;
}

/* =========================================================
   ARAMALI ÖĞRENCİ SEÇİM KUTUSU (CUSTOM SEARCHABLE COMBOBOX)
========================================================= */
.custom-combobox {
    position: relative;
    width: 100%;
}

.combobox-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    min-height: 46px;
}

.combobox-trigger:hover {
    border-color: #38bdf8;
}

.combobox-trigger:focus,
.custom-combobox.open .combobox-trigger {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.combobox-placeholder {
    color: var(--text-muted);
    font-size: 13.5px;
}

.combobox-selected-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
}

.combobox-selected-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 14px;
}

.combobox-badge {
    background: rgba(2, 132, 199, 0.18);
    color: #38bdf8;
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    white-space: nowrap;
}

.combobox-arrow {
    color: var(--text-secondary);
    font-size: 12px;
    margin-left: 10px;
    transition: transform 0.2s ease;
}

.custom-combobox.open .combobox-arrow {
    transform: rotate(180deg);
}

.combobox-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border: 1px solid #334460;
    border-radius: var(--radius-md);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
    z-index: 1000;
    padding: 10px;
}

.combobox-dropdown.hidden {
    display: none !important;
}

.combobox-search-wrapper {
    position: relative;
    margin-bottom: 8px;
}

.combobox-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--text-muted);
    pointer-events: none;
}

.combobox-search-input {
    width: 100%;
    padding: 9px 32px 9px 34px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.2s;
}

.combobox-search-input:focus {
    border-color: var(--primary);
}

.combobox-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 2px;
}

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

.combobox-options-list {
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.combobox-options-list::-webkit-scrollbar {
    width: 6px;
}

.combobox-options-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.combobox-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s ease;
    font-size: 13.5px;
    color: var(--text-secondary);
}

.combobox-option * {
    pointer-events: none;
}

.combobox-option:hover,
.combobox-option.highlighted {
    background: var(--bg-card);
    color: #ffffff;
}

.combobox-option.selected {
    background: rgba(2, 132, 199, 0.18);
    color: #38bdf8;
    font-weight: 600;
}

.combobox-empty {
    padding: 18px 12px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}
