/*
 * dark.css — Kapsamlı Koyu Mod Katmanı v3
 * ─────────────────────────────────────────────────────────────
 * TEMEL SORUN VE ÇÖZÜMÜ:
 *   Bazı sayfalar kendi <style> bloğunda :root { --card-bg:#fff;
 *   --page-bg:#f6f7fb; --line:#e8ecf4 ... } tanımlıyor.
 *   :root specificity'si body.dark-theme'den yüksek olduğu için
 *   body.dark-theme kuralları bu değişkenleri override EDEMEZ.
 *
 *   Çözüm: body.dark-theme altında aynı değişkenleri yeniden
 *   tanımlıyoruz. CSS'de bir element body.dark-theme altındaysa
 *   bu değişkenler :root'takinden önce gelir.
 *
 * Kapsam: TÜM panel sayfaları + footer + login + home
 * ─────────────────────────────────────────────────────────────
 */

/* ============================================================
   BÖLÜM 1 — SAYFA-ÖZEL :root DEĞİŞKENLERİNİ OVERRIDE ET
   survey_archive, compare_surveys, student_list gibi sayfalar
   kendi :root bloğunu tanımlıyor. body.dark-theme altında
   aynı isimleri tanımlayınca o sayfalardaki değişkenler
   otomatik olarak karanlık değerleri alır.
   ============================================================ */
body.dark-theme {
    /* Sayfa arka planı (--page-bg kullanan: archive, compare, student_list) */
    --page-bg:    #0f1117;
    --card-bg:    #1e2130;
    --line:       #2e3147;
    --text-main:  #e2e8f0;
    --text-soft:  #9aa3b8;

    /* Mor tonlar */
    --purple:      #8a5ea4;
    --purple-dark: #6a4085;

    /* Sol/sağ karşılaştırma renkleri (compare_surveys) */
    --left:       #3b82f6;
    --right:      #f97316;
    --left-soft:  #0f1e3a;
    --right-soft: #2d1a00;

    /* Status/badge renk çiftleri — dark versiyonları */
    --green-soft:  #052e16;
    --green-text:  #6ee7b7;
    --red-soft:    #2d1515;
    --red-text:    #fca5a5;
    --blue-soft:   #0f1e3a;
    --blue-text:   #93c5fd;
    --orange-soft: #2d1a00;
    --orange-text: #fde68a;
    --gray-soft:   #232635;
    --gray-text:   #9aa3b8;

    /* Gölge güncelle */
    --shadow:    0 10px 30px rgba(0,0,0,0.35);
    --shadow-lg: 0 16px 40px rgba(0,0,0,0.45);

    /* Radius'lar aynı kalır */
    --radius-xl: 18px;
    --radius-lg: 14px;
    --radius-md: 10px;

    /* style.css'ten gelen global değişkenler */
    --bg-color:       #0f1117;
    --surface-color:  #1a1d27;
    --surface-alt:    #232635;
    --surface-raised: #1e2130;
    --border-color:   #2e3147;
    --border-light:   #252838;
    --text-heading:   #f1f5f9;
    --text-light:     #9aa3b8;
    --text-muted:     #5c6480;
    --soft-bg:        #0f1117;
}

/* ============================================================
   BÖLÜM 2 — GENEL YÜZEYLER
   ============================================================ */
body.dark-theme {
    background-color: var(--page-bg) !important;
    color: var(--text-main) !important;
}

/* Tüm beyaz/açık renkli kartlar */
body.dark-theme .card-box,
body.dark-theme .center-box,
body.dark-theme .modal-content,
body.dark-theme .modal-card,
body.dark-theme .stat-card,
body.dark-theme .stats-card,
body.dark-theme .filter-card,
body.dark-theme .content-card,
body.dark-theme .select-card,
body.dark-theme .summary-card,
body.dark-theme .survey-card,
body.dark-theme .archive-card,
body.dark-theme .toolbar,
body.dark-theme .panel-card,
body.dark-theme .question-card,
body.dark-theme .metric-card,
body.dark-theme .insight-card,
body.dark-theme .table-card,
body.dark-theme .backup-card,
body.dark-theme .settings-card,
body.dark-theme .score-card,
body.dark-theme .chart-summary-card,
body.dark-theme .mode-card,
body.dark-theme .bottom-option,
body.dark-theme .co-topbar,
body.dark-theme .co-filters,
body.dark-theme .co-course-block,
body.dark-theme .co-add-form,
body.dark-theme .co-paste-panel,
body.dark-theme .lv-topbar,
body.dark-theme .lv-stat,
body.dark-theme .lv-filters,
body.dark-theme .lv-card,
body.dark-theme .topbar,
body.dark-theme .profile-setup-card,
body.dark-theme .reset-card,
body.dark-theme .pq-card,
body.dark-theme .mu-card-top,
body.dark-theme .mu-card-body,
body.dark-theme .mu-page-header,
body.dark-theme .mu-filters,
body.dark-theme .detail-row,
body.dark-theme .detail-wrapper {
    background: var(--card-bg) !important;
    border-color: var(--line) !important;
    color: var(--text-main) !important;
}

/* Açık renkli tablo th'ları */
body.dark-theme table th,
body.dark-theme .students-table thead th,
body.dark-theme .archive-table thead th,
body.dark-theme .compare-table thead th,
body.dark-theme .history-table thead th,
body.dark-theme .gsf-table th,
body.dark-theme .co-preview-table th,
body.dark-theme .outcomes-list th {
    background: #232635 !important;
    color: var(--text-soft) !important;
    border-color: var(--line) !important;
}

body.dark-theme table td,
body.dark-theme .students-table td,
body.dark-theme .archive-table td,
body.dark-theme .compare-table td,
body.dark-theme .history-table td,
body.dark-theme .gsf-table td,
body.dark-theme .co-preview-table td,
body.dark-theme .outcomes-list td {
    color: var(--text-main) !important;
    border-color: var(--line) !important;
}

body.dark-theme table tr:hover td,
body.dark-theme .students-table .student-row:hover,
body.dark-theme .archive-table tbody tr:hover,
body.dark-theme .compare-table tbody tr:hover,
body.dark-theme .history-table tbody tr:hover {
    background: #232635 !important;
}

/* ============================================================
   BÖLÜM 3 — COURSE OUTCOMES SAYFASI (co- prefix)
   ============================================================ */
body.dark-theme .co-course-head {
    background: linear-gradient(135deg, #1e1628, #1a1030) !important;
    border-color: var(--line) !important;
}
body.dark-theme .co-course-title { color: #c8a8e4 !important; }
body.dark-theme .co-course-meta  { color: var(--text-soft) !important; }
body.dark-theme .co-outcome-row  { border-color: var(--line) !important; }
body.dark-theme .co-outcome-row:hover { background: #232635 !important; }
body.dark-theme .co-code-badge   { background: #1a0d3a !important; color: #c4b5fd !important; }
body.dark-theme .co-text         { color: var(--text-main) !important; }
body.dark-theme .co-inline-edit  { background: #1a1030 !important; border-color: #3a2060 !important; }
body.dark-theme .co-preview-badge { background: #1a0d3a !important; color: #c4b5fd !important; }
body.dark-theme .co-filters input,
body.dark-theme .co-filters select,
body.dark-theme .co-edit-grid input,
body.dark-theme .co-add-grid input,
body.dark-theme .co-add-grid select,
body.dark-theme .co-paste-cell-course select,
body.dark-theme .co-paste-cell-mode select {
    background: #232635 !important;
    border-color: var(--line) !important;
    color: var(--text-main) !important;
}
body.dark-theme .co-filters label,
body.dark-theme .co-paste-cell-course label,
body.dark-theme .co-paste-cell-mode label { color: var(--text-soft) !important; }
body.dark-theme .co-preview-table tr:hover td { background: #1e1628 !important; }

/* ============================================================
   BÖLÜM 4 — STUDENT LIST SAYFASI
   ============================================================ */
body.dark-theme .students-page  { background: var(--page-bg) !important; }
body.dark-theme .hero-title h2  { color: var(--purple) !important; }
body.dark-theme .hero-sub       { color: var(--text-soft) !important; }

body.dark-theme .mask-btn {
    background: #2d1a00 !important;
    color: #fde68a !important;
    border-color: #78350f !important;
}
body.dark-theme .danger-btn {
    background: #2d1515 !important;
    color: #fca5a5 !important;
    border-color: #7f1d1d !important;
}
body.dark-theme .mini-card {
    background: #1e2130 !important;
    border-color: var(--line) !important;
    color: var(--text-main) !important;
}

/* Filter inputs */
body.dark-theme .filter-item input,
body.dark-theme .filter-item select,
body.dark-theme .select-box {
    background: #232635 !important;
    border-color: var(--line) !important;
    color: var(--text-main) !important;
}
body.dark-theme .filter-item label { color: var(--text-soft) !important; }

/* Section head */
body.dark-theme .section-head     { border-color: var(--line) !important; }
body.dark-theme .section-head h3  { color: var(--text-main) !important; }
body.dark-theme .section-meta     { color: var(--text-soft) !important; }

/* Details row */
body.dark-theme .details-row     { background: #232635 !important; }
body.dark-theme .details-content { border-color: var(--purple) !important; }
body.dark-theme .profile-name    { color: var(--text-main) !important; }
body.dark-theme .profile-email   { color: var(--text-soft) !important; }
body.dark-theme .hash-code       { background: #0f1117 !important; color: #9aa3b8 !important; border-color: var(--line) !important; }

/* Survey card (student list içinde) */
body.dark-theme .survey-head     { background: #232635 !important; border-color: var(--line) !important; }
body.dark-theme .survey-title    { color: var(--text-main) !important; }
body.dark-theme .survey-date     { color: var(--text-soft) !important; }
body.dark-theme .survey-body     { background: #1a1d27 !important; border-color: var(--line) !important; }

/* Flag box */
body.dark-theme .flag-box.red    { background: #2d1515 !important; color: #fca5a5 !important; border-color: #ef4444 !important; }
body.dark-theme .flag-box.orange { background: #2d1a00 !important; color: #fde68a !important; border-color: #f97316 !important; }

/* Answer list */
body.dark-theme .answer-list-item    { background: #232635 !important; border-color: var(--line) !important; }
body.dark-theme .answer-list-meta    { color: var(--text-soft) !important; }
body.dark-theme .answer-list-question { color: var(--text-main) !important; }
body.dark-theme .answer-list-answer  { color: #c8cde0 !important; }

/* Mobile cards (student list) */
body.dark-theme .student-mobile-card { background: #1e2130 !important; border-color: var(--line) !important; }

/* Toggle/delete btn */
body.dark-theme .toggle-btn        { background: #0f1e3a !important; color: #93c5fd !important; }
body.dark-theme .toggle-btn.active { background: var(--purple) !important; color: #fff !important; }
body.dark-theme .delete-btn        { background: #2d1515 !important; color: #fca5a5 !important; }

/* Tags */
body.dark-theme .demo-badge     { background: #1a0d3a !important; color: #c4b5fd !important; }
body.dark-theme .tag            { background: #232635 !important; color: #9aa3b8 !important; }
body.dark-theme .tag-dgs        { background: #2d1515 !important; color: #fca5a5 !important; }
body.dark-theme .tag-eng        { background: #2d1a00 !important; color: #fde68a !important; }
body.dark-theme .tag-quarantine { background: #2d1515 !important; color: #fca5a5 !important; border-color: #7f1d1d !important; }
body.dark-theme .tag-warning    { background: #2d1a00 !important; color: #fde68a !important; border-color: #78350f !important; }
body.dark-theme .tag-standard   { background: #052e16 !important; color: #6ee7b7 !important; }

/* State note */
body.dark-theme .state-note { color: var(--text-soft) !important; }

/* ============================================================
   BÖLÜM 5 — SURVEY ARCHIVE SAYFASI
   ============================================================ */
body.dark-theme .archive-page   { background: var(--page-bg) !important; }
body.dark-theme .hero-title-wrap h2 { color: var(--purple) !important; }
body.dark-theme .hero-subtitle  { color: var(--text-soft) !important; }

body.dark-theme .back-btn       { background: #232635 !important; color: #9aa3b8 !important; }
body.dark-theme .back-btn:hover { background: #2e3147 !important; }
body.dark-theme .primary-link   { background: var(--purple) !important; color: #fff !important; }
body.dark-theme .ghost-link     { background: #0f1e3a !important; color: #93c5fd !important; }
body.dark-theme .ghost-link:hover { background: #1e3a5f !important; }

/* Filter submit/reset */
body.dark-theme .filter-submit  { background: var(--purple) !important; color: #fff !important; }
body.dark-theme .filter-reset   { background: #232635 !important; color: #9aa3b8 !important; }
body.dark-theme .filter-reset:hover { background: #2e3147 !important; }

/* Stat cards */
body.dark-theme .stat-label { color: var(--text-soft) !important; }
body.dark-theme .stat-value { color: var(--text-main) !important; }
body.dark-theme .stat-meta  { color: var(--text-soft) !important; }

/* Badge/status */
body.dark-theme .badge-year  { background: var(--blue-soft) !important; color: var(--blue-text) !important; }
body.dark-theme .badge-sem   { background: #1a0d3a !important; color: #c4b5fd !important; }
body.dark-theme .status-active { background: var(--green-soft) !important; color: var(--green-text) !important; }
body.dark-theme .status-closed { background: var(--red-soft) !important; color: var(--red-text) !important; }

/* Mini value */
body.dark-theme .mini-value  { color: var(--purple) !important; }
body.dark-theme .mini-sub    { color: var(--text-soft) !important; }
body.dark-theme .tiny-note   { color: var(--text-soft) !important; }
body.dark-theme .fake-pill   { background: #2d1a00 !important; color: #fde68a !important; }
body.dark-theme .course-line { color: var(--text-soft) !important; }
body.dark-theme .survey-title { color: var(--text-main) !important; }

/* Aksiyon butonları */
body.dark-theme .btn-analysis   { background: var(--purple) !important; color: #fff !important; }
body.dark-theme .btn-compare    { background: #0f1e3a !important; color: #93c5fd !important; }
body.dark-theme .btn-compare:hover { background: #1e3a5f !important; }

/* Mobile cards (archive) */
body.dark-theme .archive-mobile-card { background: #1e2130 !important; border-color: var(--line) !important; }
body.dark-theme .mobile-top   { }
body.dark-theme .mobile-title { color: var(--text-main) !important; }
body.dark-theme .mobile-label { color: var(--text-soft) !important; }
body.dark-theme .mobile-value { color: var(--text-main) !important; }

/* Empty state */
body.dark-theme .empty-state  { color: var(--text-soft) !important; }
body.dark-theme .empty-title  { color: var(--text-main) !important; }
body.dark-theme .empty-desc   { color: var(--text-soft) !important; }

/* ============================================================
   BÖLÜM 6 — COMPARE SURVEYS SAYFASI
   ============================================================ */
body.dark-theme .compare-page { background: var(--page-bg) !important; }

/* System tabs */
body.dark-theme .system-tabs {
    background: #1a1d27 !important;
    border-color: var(--line) !important;
}
body.dark-theme .system-tab { color: var(--text-soft) !important; }
body.dark-theme .system-tab:hover { background: rgba(255,255,255,0.05) !important; color: var(--text-main) !important; }
body.dark-theme .system-tab.active {
    background: #232635 !important;
    color: var(--purple) !important;
    border-color: rgba(138,94,164,0.25) !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.30) !important;
}

/* Vs box */
body.dark-theme .vs-box {
    background: linear-gradient(135deg, rgba(138,94,164,0.16), rgba(59,130,246,0.10)) !important;
    border-color: rgba(138,94,164,0.25) !important;
}

/* Select box */
body.dark-theme .select-box { background: #232635 !important; border-color: var(--line) !important; color: var(--text-main) !important; }

/* Notice / error box */
body.dark-theme .notice    { background: #1e2130 !important; border-color: var(--line) !important; color: #9aa3b8 !important; }
body.dark-theme .error-box { background: #2d1515 !important; border-color: #7f1d1d !important; color: #fca5a5 !important; }

/* Survey card left/right */
body.dark-theme .survey-card.left  { border-top-color: var(--left) !important; background: #1e2130 !important; }
body.dark-theme .survey-card.right { border-top-color: var(--right) !important; background: #1e2130 !important; }
body.dark-theme .survey-card.left .survey-side-tag  { background: var(--left-soft) !important; color: #93c5fd !important; }
body.dark-theme .survey-card.right .survey-side-tag { background: var(--right-soft) !important; color: #fde68a !important; }
body.dark-theme .survey-sub { color: var(--text-soft) !important; }

/* Meta box */
body.dark-theme .meta-box   { background: #232635 !important; border-color: var(--line) !important; }
body.dark-theme .meta-label { color: var(--text-soft) !important; }
body.dark-theme .meta-value { color: var(--text-main) !important; }

/* Stat card (compare) */
body.dark-theme .stat-card { background: var(--card-bg) !important; border-color: var(--line) !important; }

/* Summary */
body.dark-theme .summary-title { color: var(--text-main) !important; }
body.dark-theme .summary-text  { background: #232635 !important; border-color: var(--line) !important; color: var(--text-soft) !important; }
body.dark-theme .summary-list  { background: #232635 !important; border-color: var(--line) !important; }
body.dark-theme .summary-list h4 { color: var(--text-main) !important; }
body.dark-theme .summary-q    { color: var(--text-main) !important; }
body.dark-theme .summary-item { border-color: #2e3147 !important; }

/* Score cell */
body.dark-theme .score-big    { color: var(--text-main) !important; }
body.dark-theme .score-sub    { color: var(--text-soft) !important; }

/* Bar */
body.dark-theme .bar-bg { background: #2e3147 !important; }

/* Diff pills */
body.dark-theme .diff-positive { background: var(--green-soft) !important; color: var(--green-text) !important; }
body.dark-theme .diff-negative { background: var(--red-soft) !important; color: var(--red-text) !important; }
body.dark-theme .diff-neutral  { background: var(--gray-soft) !important; color: var(--gray-text) !important; }

/* History */
body.dark-theme .timeline-year { color: var(--text-main) !important; }
body.dark-theme .muted-small   { color: var(--text-soft) !important; }
body.dark-theme .q-title       { color: var(--text-main) !important; }
body.dark-theme .q-meta        { color: var(--text-soft) !important; }

/* Mobile cards (compare) */
body.dark-theme .mobile-q-card   { background: #1e2130 !important; border-color: var(--line) !important; }
body.dark-theme .mobile-q-title  { color: var(--text-main) !important; }
body.dark-theme .mobile-score-box { background: #232635 !important; border-color: var(--line) !important; }
body.dark-theme .mobile-score-label { color: var(--text-soft) !important; }

/* ============================================================
   BÖLÜM 7 — FOOTER
   ============================================================ */
body.dark-theme .site-footer        { background: #1a1d27 !important; border-color: rgba(138,94,164,0.15) !important; }
body.dark-theme .footer-main        { color: #9aa3b8 !important; }
body.dark-theme .footer-link-chip   { background: #232635 !important; border-color: rgba(138,94,164,0.20) !important; color: #c8a8e4 !important; }
body.dark-theme .footer-link-chip:hover { background: #2e3147 !important; }
body.dark-theme .feedback-chip      { background: #0f1e3a !important; border-color: #1e3a5f !important; color: #93c5fd !important; }

/* ============================================================
   BÖLÜM 8 — LOGIN
   ============================================================ */
body.dark-theme .login-card       { background: #1a1d27 !important; border-color: #2e3147 !important; box-shadow: 0 8px 32px rgba(0,0,0,0.40) !important; }
body.dark-theme .kvkk-scroll-box  { background: #232635 !important; border-color: #2e3147 !important; color: #9aa3b8 !important; }
body.dark-theme .checkbox-row span { color: #9aa3b8 !important; }

/* ============================================================
   BÖLÜM 9 — HOME (Öğrenci Anasayfa)
   ============================================================ */
body.dark-theme .s-hero {
    background: linear-gradient(135deg,#1a1d27 0%,#1d1a2e 55%,#1e1628 100%) !important;
    border-color: rgba(138,94,164,0.18) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35) !important;
}
body.dark-theme .s-name          { color: #f1f5f9 !important; }
body.dark-theme .s-name .muted   { color: #5c6480 !important; }
body.dark-theme .s-hero-right    { background: #1e2130 !important; border-color: #2e3147 !important; }
body.dark-theme .s-info          { background: #1e2130 !important; border-color: #2e3147 !important; }
body.dark-theme .s-sum-text strong { color: #f1f5f9 !important; }
body.dark-theme .s-sum-text small  { color: #5c6480 !important; }
body.dark-theme .s-divider       { border-color: #2e3147 !important; }
body.dark-theme .s-more-link     { color: #c8a8e4 !important; }
body.dark-theme .section-title   { color: #f1f5f9 !important; }

/* ============================================================
   BÖLÜM 10 — ANALYSIS SAYFASI
   ============================================================ */
body.dark-theme .toolbar-meta        { color: #9aa3b8 !important; }
body.dark-theme .toolbar-meta-item strong { color: #e2e8f0 !important; }
body.dark-theme .toolbar-bottom      { border-color: #2e3147 !important; }
body.dark-theme .tabbar              { border-color: #2e3147 !important; }
body.dark-theme .tabbar a            { color: #9aa3b8 !important; border-color: #2e3147 !important; background: transparent !important; }
body.dark-theme .tabbar a:hover      { background: rgba(138,94,164,0.12) !important; color: #c8a8e4 !important; }
body.dark-theme .tabbar a.active     { background: rgba(138,94,164,0.16) !important; border-color: var(--purple) !important; color: #c8a8e4 !important; }
body.dark-theme .status-pill.final   { background: #052e16 !important; color: #6ee7b7 !important; }
body.dark-theme .status-pill.draft   { background: #2d1f00 !important; color: #fde68a !important; }
body.dark-theme .status-pill.fake-on { background: #2d1515 !important; color: #fca5a5 !important; }
body.dark-theme .fake-toggle         { background: #232635 !important; border-color: #2e3147 !important; }
body.dark-theme .fake-toggle.off     { background: #1e2130 !important; }
body.dark-theme .fake-toggle.on      { background: #2d1515 !important; }

/* ============================================================
   BÖLÜM 11 — LOG VIEWER
   ============================================================ */
body.dark-theme .lv-card:hover       { background: #232635 !important; }
body.dark-theme .lv-card-inner       { border-color: #2e3147 !important; }
body.dark-theme .lv-date             { color: #e2e8f0 !important; }
body.dark-theme .lv-clock            { color: #5c6480 !important; }
body.dark-theme .lv-id               { color: #3a4060 !important; }
body.dark-theme .lv-user-name        { color: #e2e8f0 !important; }
body.dark-theme .lv-type-staff       { background: #0f1e3a !important; color: #93c5fd !important; }
body.dark-theme .lv-type-student     { background: #1a0d3a !important; color: #c4b5fd !important; }
body.dark-theme .lv-action-badge     { background: #232635 !important; color: #9aa3b8 !important; border-color: #2e3147 !important; }
body.dark-theme .lv-detail-text      { color: #9aa3b8 !important; }
body.dark-theme .lv-stat-lbl         { color: #5c6480 !important; }
body.dark-theme .lv-stat-num         { color: #f1f5f9 !important; }
body.dark-theme .lv-input,
body.dark-theme .lv-select,
body.dark-theme .lv-btn-gray         { background: #232635 !important; border-color: #2e3147 !important; color: #c8cde0 !important; }
body.dark-theme .lv-btn-green        { background: #052e16 !important; color: #6ee7b7 !important; border-color: #166534 !important; }
body.dark-theme .lv-btn-red          { background: #2d1515 !important; color: #fca5a5 !important; border-color: #7f1d1d !important; }

/* ============================================================
   BÖLÜM 12 — TROLLPROOF
   ============================================================ */
body.dark-theme .detail-row          { background: #1e2130 !important; border-color: #2e3147 !important; }
body.dark-theme .detail-wrapper      { background: #232635 !important; }
body.dark-theme .student-meta-grid   { border-color: #2e3147 !important; }
body.dark-theme .meta-label          { color: #5c6480 !important; }
body.dark-theme .meta-val            { color: #e2e8f0 !important; }
body.dark-theme .history-card        { background: #232635 !important; border-color: #2e3147 !important; }
body.dark-theme .history-header      { color: #9aa3b8 !important; }
body.dark-theme .quarantined-row     { background: #2d1515 !important; }
body.dark-theme .quarantined-badge   { background: #7f1d1d !important; color: #fca5a5 !important; }
body.dark-theme .sc-1 { background: #7f1d1d !important; }
body.dark-theme .sc-2 { background: #78350f !important; }
body.dark-theme .sc-3 { background: #374151 !important; }
body.dark-theme .sc-4 { background: #064e3b !important; }
body.dark-theme .sc-5 { background: #134e4a !important; }

/* ============================================================
   BÖLÜM 13 — MANAGE USERS
   ============================================================ */
body.dark-theme .mu-name           { color: #f1f5f9 !important; }
body.dark-theme .mu-info           { color: #9aa3b8 !important; }
body.dark-theme .mu-handle         { color: #5c6480 !important; }
body.dark-theme .mu-badge-green    { background: #052e16 !important; color: #6ee7b7 !important; }
body.dark-theme .mu-badge-neutral  { background: #232635 !important; color: #9aa3b8 !important; }
body.dark-theme .mu-btn-primary    { background: var(--purple) !important; color: #fff !important; }
body.dark-theme .mu-btn-secondary  { background: #0f1e3a !important; color: #93c5fd !important; border-color: #1e3a5f !important; }
body.dark-theme .mu-btn-danger     { background: #2d1515 !important; color: #fca5a5 !important; border-color: #7f1d1d !important; }
body.dark-theme .mu-alert          { background: #2d1f00 !important; border-color: #78350f !important; color: #fde68a !important; }
body.dark-theme .mu-course-tag     { background: #232635 !important; border-color: #2e3147 !important; color: #9aa3b8 !important; }
body.dark-theme .mu-course-preview { background: #0f1117 !important; border-color: #2e3147 !important; }
body.dark-theme .role-overseer     { background: rgba(138,94,164,0.18) !important; color: #c8a8e4 !important; }
body.dark-theme .role-staff        { background: #0f1e3a !important; color: #93c5fd !important; }
body.dark-theme .role-anketor      { background: #052e16 !important; color: #6ee7b7 !important; }
body.dark-theme .role-default      { background: #232635 !important; color: #9aa3b8 !important; }

/* ============================================================
   BÖLÜM 14 — IMPORT COURSES
   ============================================================ */
body.dark-theme .badge-zorunlu     { background: #2d1515 !important; color: #fca5a5 !important; }
body.dark-theme .badge-secmeli     { background: #052e16 !important; color: #6ee7b7 !important; }
body.dark-theme .filter-bar        { background: #1e2130 !important; border-color: #2e3147 !important; box-shadow: none !important; }
body.dark-theme .filter-input,
body.dark-theme .filter-select     { background: #232635 !important; border-color: #2e3147 !important; color: #e2e8f0 !important; }
body.dark-theme .edit-row          { background: #0f1117 !important; }
body.dark-theme .edit-form-container { background: #1e2130 !important; border-color: #2e3147 !important; }
body.dark-theme .form-group label  { color: #9aa3b8 !important; }
body.dark-theme .btn-inline-save   { background: #052e16 !important; color: #6ee7b7 !important; border-color: #166534 !important; }
body.dark-theme .btn-inline-cancel { background: #2d1515 !important; color: #fca5a5 !important; border-color: #7f1d1d !important; }

/* ============================================================
   BÖLÜM 15 — SYSTEM SETTINGS
   ============================================================ */
body.dark-theme .field-label       { color: #c8cde0 !important; }
body.dark-theme .field-input,
body.dark-theme .field-textarea,
body.dark-theme .field-select      { background: #232635 !important; border-color: #2e3147 !important; color: #e2e8f0 !important; }
body.dark-theme .link-card         { background: #232635 !important; border-color: #2e3147 !important; }
body.dark-theme .soft-btn          { background: #232635 !important; border-color: #2e3147 !important; color: #c8cde0 !important; }
body.dark-theme .soft-btn.purple   { background: linear-gradient(135deg,var(--purple),#6f4397) !important; color: #fff !important; border-color: transparent !important; }
body.dark-theme .soft-btn.danger   { background: #2d1515 !important; color: #fca5a5 !important; border-color: #7f1d1d !important; }

/* ============================================================
   BÖLÜM 16 — CREATE/EDIT SURVEY
   ============================================================ */
body.dark-theme .mode-card         { background: #1e2130 !important; border-color: #2e3147 !important; color: #e2e8f0 !important; }
body.dark-theme .mode-card:hover   { border-color: var(--purple) !important; background: #232635 !important; }
body.dark-theme .mode-card.active  { background: #1a0d3a !important; border-color: var(--purple) !important; }
body.dark-theme .mode-title        { color: #f1f5f9 !important; }
body.dark-theme .mode-text         { color: #9aa3b8 !important; }
body.dark-theme .readonly-box      { background: #232635 !important; border-color: #2e3147 !important; }
body.dark-theme .readonly-box strong { color: #9aa3b8 !important; }
body.dark-theme .readonly-box span { color: #e2e8f0 !important; }
body.dark-theme .readonly-note     { color: #5c6480 !important; }
body.dark-theme .helper-box        { background: #0f1e3a !important; border-color: #1e3a5f !important; color: #93c5fd !important; }
body.dark-theme .helper-box.warning { background: #2d1f00 !important; border-color: #78350f !important; color: #fde68a !important; }
body.dark-theme .outcomes-box      { background: #2d1f00 !important; border-color: #4a3000 !important; color: #fde68a !important; }
body.dark-theme .bottom-option     { background: #1e2130 !important; border-color: #2e3147 !important; }
body.dark-theme .bottom-option label.main { color: #f1f5f9 !important; }
body.dark-theme .bottom-option small { color: #9aa3b8 !important; }
body.dark-theme .final-course-select { background: #0f1e3a !important; border-color: #1e3a5f !important; color: #93c5fd !important; }
body.dark-theme .filter-select     { background: #232635 !important; border-color: #2e3147 !important; color: #e2e8f0 !important; }
body.dark-theme .btn-sm-edit       { background: #0f1e3a !important; color: #93c5fd !important; }
body.dark-theme .btn-sm-delete     { background: #2d1515 !important; color: #fca5a5 !important; }
body.dark-theme .btn-sm-gray       { background: #232635 !important; color: #9aa3b8 !important; }

/* ============================================================
   BÖLÜM 17 — DASHBOARD & HERO PANELİ
   ============================================================ */
body.dark-theme .hero-panel {
    background: linear-gradient(135deg,#1a1d27 0%,#1d2035 60%,#201c2e 100%) !important;
    border-color: rgba(138,94,164,0.18) !important;
}
body.dark-theme .hp-name           { color: #f1f5f9 !important; }
body.dark-theme .hp-greeting       { color: #5c6480 !important; }
body.dark-theme .hp-chip           { background: #232635 !important; border-color: #2e3147 !important; color: #9aa3b8 !important; }
body.dark-theme .hp-si             { background: rgba(30,33,48,0.80) !important; border-color: #2e3147 !important; }
body.dark-theme .hp-si:hover       { background: #232635 !important; }
body.dark-theme .hp-si-name        { color: #e2e8f0 !important; }
body.dark-theme .hp-si-badge       { background: #1e2130 !important; color: #9aa3b8 !important; }
body.dark-theme .hp-right          { background: rgba(26,29,39,0.82) !important; border-color: rgba(138,94,164,0.18) !important; }
body.dark-theme .hp-divider        { border-color: #2e3147 !important; }
body.dark-theme .hp-quicklink      { background: #232635 !important; border-color: #2e3147 !important; color: #9aa3b8 !important; }
body.dark-theme .hp-quicklink:hover { background: rgba(138,94,164,0.15) !important; color: #c8a8e4 !important; }
body.dark-theme .stat-card         { background: #1e2130 !important; border-color: #2e3147 !important; }
body.dark-theme .quick-card        { background: #1e2130 !important; border-color: #2e3147 !important; }
body.dark-theme .quick-card:hover  { border-color: rgba(138,94,164,0.28) !important; }
body.dark-theme .quick-title       { color: #f1f5f9 !important; }
body.dark-theme .quick-text        { color: #9aa3b8 !important; }
body.dark-theme .template-card     { background: #1e2130 !important; border-color: #2e3147 !important; }
body.dark-theme .template-name     { color: #f1f5f9 !important; }
body.dark-theme .survey-card-course { color: #f1f5f9 !important; }
body.dark-theme .survey-card-title  { color: #9aa3b8 !important; }
body.dark-theme .date-stack         { background: #232635 !important; border-color: #2e3147 !important; }
body.dark-theme .date-item          { color: #e2e8f0 !important; }
body.dark-theme .date-note          { color: #9aa3b8 !important; }
body.dark-theme .action-secondary   { background: #0f1e3a !important; color: #93c5fd !important; border-color: #1e3a5f !important; }
body.dark-theme .action-neutral     { background: #232635 !important; color: #9aa3b8 !important; border-color: #2e3147 !important; }
body.dark-theme .row-drop-content   { background: #1a1d27 !important; border-color: #2e3147 !important; }
body.dark-theme .row-drop-content a,
body.dark-theme .row-drop-content button { color: #9aa3b8 !important; border-color: #2e3147 !important; }
body.dark-theme .row-drop-content a:hover,
body.dark-theme .row-drop-content button:hover { background: var(--purple) !important; color: #fff !important; }
body.dark-theme .row-drop-content .danger { color: #fca5a5 !important; }
body.dark-theme .section-head       { border-color: #2e3147 !important; }
body.dark-theme .section-title      { color: #f1f5f9 !important; }
body.dark-theme .section-subtitle   { color: #9aa3b8 !important; }
body.dark-theme .section-pill       { background: #1e2130 !important; border-color: #2e3147 !important; color: #9aa3b8 !important; }

/* UI alert bantları */
body.dark-theme .ui-alert.success   { background: #052e16 !important; border-color: #166534 !important; }
body.dark-theme .ui-alert.warning   { background: #2d1f00 !important; border-color: #78350f !important; }
body.dark-theme .ui-alert.danger    { background: #2d1515 !important; border-color: #7f1d1d !important; }
body.dark-theme .ui-alert .content strong { color: #f1f5f9 !important; }
body.dark-theme .ui-alert .content span   { color: #9aa3b8 !important; }
body.dark-theme .ui-alert .icon           { background: rgba(255,255,255,0.06) !important; }

/* Status badge'ler */
body.dark-theme .status-active   { background: #052e16 !important; color: #6ee7b7 !important; border-color: #166534 !important; }
body.dark-theme .status-passive  { background: #1e2130 !important; color: #9aa3b8 !important; border-color: #2e3147 !important; }
body.dark-theme .status-wait     { background: #2d1f00 !important; color: #fde68a !important; border-color: #78350f !important; }
body.dark-theme .status-expired  { background: #2d1515 !important; color: #fca5a5 !important; border-color: #7f1d1d !important; }
body.dark-theme .mini-badge.test { background: #2d1f00 !important; color: #fcd34d !important; border-color: #4a3000 !important; }
body.dark-theme .mini-badge.template { background: #052e16 !important; color: #6ee7b7 !important; border-color: #166534 !important; }
body.dark-theme .empty-state     { background: #1e2130 !important; border-color: #2e3147 !important; }

/* ============================================================
   BÖLÜM 18 — HEADER NAVBAR
   ============================================================ */
body.dark-theme #hdr-bar          { background: rgba(26,29,39,0.88) !important; border-color: rgba(138,94,164,0.20) !important; box-shadow: 0 4px 20px rgba(0,0,0,0.35) !important; }
body.dark-theme .hdr-sep          { background: rgba(138,94,164,0.22) !important; }
body.dark-theme .ni, body.dark-theme .nb { color: #9aa3b8 !important; }
body.dark-theme .ni:hover, body.dark-theme .nb:hover, body.dark-theme .nb.open { background: rgba(138,94,164,0.16) !important; color: #c8a8e4 !important; }
body.dark-theme .ni.act, body.dark-theme .nb.act { background: rgba(138,94,164,0.22) !important; color: #c8a8e4 !important; }
body.dark-theme #hdr-profile      { background: rgba(26,29,39,0.90) !important; border-color: rgba(138,94,164,0.22) !important; }
body.dark-theme #hdr-profile .pi-name  { color: #e2e8f0 !important; }
body.dark-theme #hdr-profile .pi-badge { background: rgba(138,94,164,0.22) !important; color: #c8a8e4 !important; border-color: rgba(138,94,164,0.28) !important; }
body.dark-theme .hdr-dd           { background: #1a1d27 !important; border-color: #2e3147 !important; box-shadow: 0 16px 48px rgba(0,0,0,0.5) !important; }
body.dark-theme .dd-section       { color: #5c6480 !important; }
body.dark-theme .dd-sep           { border-color: #2e3147 !important; }
body.dark-theme .dd-link          { color: #c8cde0 !important; }
body.dark-theme .dd-link:hover    { background: #232635 !important; color: #c8a8e4 !important; }
body.dark-theme .dd-icon          { background: #232635 !important; border-color: #2e3147 !important; }
body.dark-theme .dd-desc          { color: #5c6480 !important; }
body.dark-theme .dd-link.danger   { color: #f87171 !important; }
body.dark-theme .dd-link.danger:hover { background: #2d1b1b !important; }
body.dark-theme #hdr-mob-btn      { border-color: #2e3147 !important; background: rgba(26,29,39,.8) !important; color: #9aa3b8 !important; }
body.dark-theme #hdr-mob-panel    { background: #1a1d27 !important; }
body.dark-theme #hdr-mob-close    { border-color: #2e3147 !important; }
body.dark-theme #hdr-mob-close span { color: #5c6480 !important; }
body.dark-theme #hdr-mob-close button { border-color: #2e3147 !important; background: #232635 !important; color: #9aa3b8 !important; }
body.dark-theme .mob-ni           { background: #232635 !important; border-color: #2e3147 !important; color: #c8cde0 !important; }
body.dark-theme .mob-ni:hover, body.dark-theme .mob-ni.act { background: rgba(138,94,164,0.18) !important; color: #c8a8e4 !important; border-color: rgba(138,94,164,0.28) !important; }
body.dark-theme .mob-group-label  { color: #5c6480 !important; }
body.dark-theme .mob-sub          { color: #9aa3b8 !important; }
body.dark-theme .mob-sub:hover    { background: #232635 !important; color: #c8a8e4 !important; }
body.dark-theme .mob-profile      { background: linear-gradient(135deg,rgba(138,94,164,.12),rgba(138,94,164,.06)) !important; border-color: rgba(138,94,164,.20) !important; }
body.dark-theme .mob-profile .mpn { color: #e2e8f0 !important; }

/* ============================================================
   BÖLÜM 19 — GENEL FORM ELEMENTLERİ
   ============================================================ */
body.dark-theme input[type="text"],
body.dark-theme input[type="password"],
body.dark-theme input[type="date"],
body.dark-theme input[type="datetime-local"],
body.dark-theme input[type="number"],
body.dark-theme input[type="email"],
body.dark-theme select,
body.dark-theme textarea {
    background: #232635 !important;
    border-color: #2e3147 !important;
    color: #e2e8f0 !important;
}
body.dark-theme input:focus,
body.dark-theme select:focus,
body.dark-theme textarea:focus {
    border-color: var(--purple) !important;
    box-shadow: 0 0 0 3px rgba(138,94,164,0.20) !important;
}
body.dark-theme input::placeholder,
body.dark-theme textarea::placeholder { color: #5c6480 !important; }

/* ============================================================
   BÖLÜM 20 — GENEL METİN / BAĞLANTI
   ============================================================ */
body.dark-theme h1, body.dark-theme h2,
body.dark-theme h3, body.dark-theme h4 { color: #f1f5f9; }
body.dark-theme p  { color: #9aa3b8; }

/* Alert genel */
body.dark-theme .alert-success { background: #052e16 !important; color: #6ee7b7 !important; border-color: #166534 !important; }
body.dark-theme .alert-error   { background: #2d1515 !important; color: #fca5a5 !important; border-color: #7f1d1d !important; }
body.dark-theme .alert-warning { background: #2d1f00 !important; color: #fde68a !important; border-color: #78350f !important; }
body.dark-theme .muted         { color: #5c6480 !important; }

/* Card-box genel */
body.dark-theme .card-box { background: #1e2130 !important; border-color: #2e3147 !important; }

/* Modal genel */
body.dark-theme .modal-overlay  { background: rgba(0,0,0,0.75) !important; }
body.dark-theme .modal-content,
body.dark-theme .modal-card     { background: #1e2130 !important; border-color: #2e3147 !important; }
body.dark-theme .modal-title    { color: #f1f5f9 !important; }
body.dark-theme .modal-subtitle { color: #9aa3b8 !important; }
body.dark-theme .modal-input    { background: #232635 !important; border-color: #2e3147 !important; color: #e2e8f0 !important; }

/* Dark mode toggle butonu */
#dark-mode-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px;
    border: 1px solid rgba(138,94,164,0.20); background: transparent;
    cursor: pointer; font-size: .78rem; font-weight: 600; color: #4a5568;
    transition: background .14s, color .14s, border-color .14s;
    white-space: nowrap; flex-shrink: 0; font-family: inherit;
}
#dark-mode-toggle:hover { background: rgba(138,94,164,.09); color: #8a5ea4; border-color: rgba(138,94,164,.30); }
body.dark-theme #dark-mode-toggle { color: #c8cde0; border-color: #2e3147; }
body.dark-theme #dark-mode-toggle:hover { background: rgba(138,94,164,.18); color: #c8a8e4; }
.dmt-icon { font-size: .9rem; line-height: 1; }
@media (max-width: 900px) { .dmt-label { display: none; } }

/* Flash önleyici */
html.dark-theme-early body { background-color: #0f1117 !important; }

/* ============================================================
   EK BÖLÜM — v3.1 PATCH: Tespit edilen eksik sayfalar
   ============================================================ */

/* ── DASHBOARD: hp-cta-secondary, template-card, hp-stat-mini ── */
body.dark-theme .hp-cta-secondary {
    background: #232635 !important;
    color: var(--gsf-purple, #8a5ea4) !important;
    border-color: rgba(138,94,164,.28) !important;
}
body.dark-theme .hp-cta-secondary:hover { background: #2e3147 !important; }
body.dark-theme .hp-stat-mini.green  { background: #052e16 !important; color: #6ee7b7 !important; border-color: #166534 !important; }
body.dark-theme .hp-stat-mini.yellow { background: #2d1f00 !important; color: #fde68a !important; border-color: #78350f !important; }
body.dark-theme .hp-stat-mini.red    { background: #2d1515 !important; color: #fca5a5 !important; border-color: #7f1d1d !important; }
body.dark-theme .hp-stat-mini.purple { background: #1a0d3a !important; color: #c4b5fd !important; border-color: #3b1f6e !important; }
body.dark-theme .template-card {
    background: #1e2130 !important;
    border-color: #2e3147 !important;
    box-shadow: 0 16px 28px rgba(0,0,0,0.30) !important;
}

/* ── REPORTS.PHP: topbar, archive-card, archive-table-wrap ── */
body.dark-theme .topbar,
body.dark-theme .archive-card,
body.dark-theme .archive-table-wrap {
    background: #1e2130 !important;
    border-color: #2e3147 !important;
}
body.dark-theme .archive-table th { background: #232635 !important; color: #9aa3b8 !important; border-color: #2e3147 !important; }
body.dark-theme .archive-table td { color: #e2e8f0 !important; border-color: #252838 !important; }
body.dark-theme .archive-table tr:hover td { background: #232635 !important; }
body.dark-theme .status-badge { background: #232635 !important; color: #9aa3b8 !important; border-color: #2e3147 !important; }

/* ── MANAGE USERS: mu-card, mu-card-top, mu-filters, mu-group-title, settings-section ── */
body.dark-theme .mu-card {
    background: #1e2130 !important;
    border-color: #2e3147 !important;
}
body.dark-theme .mu-card:hover { background: #232635 !important; }
body.dark-theme .mu-card-top {
    background: linear-gradient(135deg, #1e1628, #1a1030) !important;
    border-color: #2e3147 !important;
}
body.dark-theme .mu-card-body { background: #1e2130 !important; }
body.dark-theme .mu-group-title { background: #1e2130 !important; border-color: #2e3147 !important; }
body.dark-theme .mu-group-title h3 { color: #e2e8f0 !important; }
body.dark-theme .mu-group-title span { color: #9aa3b8 !important; }
body.dark-theme .mu-grid { }
body.dark-theme .mu-profile { background: #232635 !important; }
body.dark-theme .mu-avatar { border-color: #2e3147 !important; }
body.dark-theme .mu-name  { color: #f1f5f9 !important; }
body.dark-theme .mu-handle { color: #5c6480 !important; }
body.dark-theme .mu-badges { }
body.dark-theme .mu-badge  { background: #232635 !important; color: #9aa3b8 !important; border-color: #2e3147 !important; }
body.dark-theme .mu-badge-green   { background: #052e16 !important; color: #6ee7b7 !important; }
body.dark-theme .mu-badge-neutral { background: #232635 !important; color: #9aa3b8 !important; }
body.dark-theme .mu-info-list { border-color: #2e3147 !important; }
body.dark-theme .mu-filters,
body.dark-theme .mu-filters input,
body.dark-theme .mu-filters select {
    background: #1e2130 !important;
    border-color: #2e3147 !important;
    color: #e2e8f0 !important;
}
body.dark-theme .mu-page-header   { background: #1e2130 !important; border-color: #2e3147 !important; }
body.dark-theme .mu-page-header p { color: #9aa3b8 !important; }
body.dark-theme .mu-alert { background: #2d1f00 !important; border-color: #78350f !important; color: #fde68a !important; }
body.dark-theme .mu-btn-primary   { background: #8a5ea4 !important; color: #fff !important; }
body.dark-theme .mu-btn-secondary { background: #1a0d3a !important; color: #c8a8e4 !important; border-color: #3b1f6e !important; }
body.dark-theme .mu-btn-danger    { background: #2d1515 !important; color: #fca5a5 !important; border-color: #7f1d1d !important; }
body.dark-theme .role-anketor     { background: #2d1a00 !important; color: #fde68a !important; }
body.dark-theme .role-default     { background: #232635 !important; color: #9aa3b8 !important; }
body.dark-theme .settings-section { background: #1e2130 !important; border-color: #2e3147 !important; }
body.dark-theme .course-item      { background: #232635 !important; border-color: #2e3147 !important; color: #e2e8f0 !important; }
body.dark-theme .course-item:hover { background: #252838 !important; }
/* Manage users modal */
body.dark-theme .custom-modal-overlay { background: rgba(0,0,0,0.75) !important; }
body.dark-theme .custom-modal-box     { background: #1e2130 !important; border-color: #2e3147 !important; }

/* ── PROFILE QUESTIONS: pq-card, pq-toolbar, pq-item, pq-badge ── */
body.dark-theme .pq-wrap   { background: transparent !important; }
body.dark-theme .pq-card   { background: #1e2130 !important; border-color: #2e3147 !important; }
body.dark-theme .pq-card-head { background: #232635 !important; border-color: #2e3147 !important; }
body.dark-theme .pq-card-head h2,
body.dark-theme .pq-card-head h3 { color: #f1f5f9 !important; }
body.dark-theme .pq-card-body { background: #1e2130 !important; }
body.dark-theme .pq-toolbar  { background: #1e2130 !important; border-color: #2e3147 !important; }
body.dark-theme .pq-item     { background: #232635 !important; border-color: #2e3147 !important; }
body.dark-theme .pq-item:hover  { background: #252838 !important; }
body.dark-theme .pq-item.active { background: #1a0d3a !important; border-color: rgba(138,94,164,0.4) !important; }
body.dark-theme .pq-item-title  { color: #e2e8f0 !important; }
body.dark-theme .pq-meta        { color: #9aa3b8 !important; }
body.dark-theme .pq-alert       { background: #0f1e3a !important; border-color: #1e3a5f !important; color: #93c5fd !important; }
body.dark-theme .pq-btn-primary   { background: #8a5ea4 !important; color: #fff !important; }
body.dark-theme .pq-btn-secondary { background: #1a0d3a !important; color: #c8a8e4 !important; }
body.dark-theme .pq-btn-danger    { background: #2d1515 !important; color: #fca5a5 !important; }
body.dark-theme .pq-btn-success   { background: #052e16 !important; color: #6ee7b7 !important; }
body.dark-theme .pq-badge         { background: #232635 !important; color: #9aa3b8 !important; }
body.dark-theme .pq-badge.select    { background: #0f1e3a !important; color: #93c5fd !important; }
body.dark-theme .pq-badge.text      { background: #232635 !important; color: #9aa3b8 !important; }
body.dark-theme .pq-badge.number    { background: #052e16 !important; color: #6ee7b7 !important; }
body.dark-theme .pq-badge.textarea  { background: #2d1a00 !important; color: #fde68a !important; }
body.dark-theme .pq-badge.protected { background: #2d1f00 !important; color: #fde68a !important; }
body.dark-theme .pq-badge.active    { background: #052e16 !important; color: #6ee7b7 !important; }
body.dark-theme .pq-badge.passive   { background: #232635 !important; color: #9aa3b8 !important; }
body.dark-theme .pq-badge.required  { background: #2d1515 !important; color: #fca5a5 !important; }
body.dark-theme .pq-list            { border-color: #2e3147 !important; }

/* ── FEEDBACK LIST: fb-topbar, fb-stats, fb-entry, fb-device-chip ── */
body.dark-theme .fb-topbar,
body.dark-theme .fb-stats,
body.dark-theme .fb-entry     { background: #1e2130 !important; border-color: #2e3147 !important; }
body.dark-theme .fb-entry-head { background: #232635 !important; border-color: #2e3147 !important; }
body.dark-theme .fb-entry-body { background: #1e2130 !important; }
body.dark-theme .fb-stat       { background: #232635 !important; border-color: #2e3147 !important; }
body.dark-theme .fb-stat-num   { color: #f1f5f9 !important; }
body.dark-theme .fb-stat-lbl   { color: #5c6480 !important; }
body.dark-theme .fb-message    { background: #232635 !important; border-color: #2e3147 !important; color: #e2e8f0 !important; }
body.dark-theme .fb-pill       { background: #232635 !important; color: #9aa3b8 !important; border-color: #2e3147 !important; }
body.dark-theme .fb-device-panel { background: #232635 !important; border-color: #2e3147 !important; }
body.dark-theme .fb-device-chip  { background: #1e2130 !important; border-color: #2e3147 !important; }
body.dark-theme .fb-device-chip .chip-label { color: #5c6480 !important; }
body.dark-theme .fb-device-chip .chip-val   { color: #e2e8f0 !important; }
body.dark-theme .fb-tech-grid { }
body.dark-theme .fb-tech-box  { background: #232635 !important; border-color: #2e3147 !important; }
body.dark-theme .fb-tech-box strong { color: #9aa3b8 !important; }
body.dark-theme .fb-tech-box span   { color: #c8cde0 !important; }
body.dark-theme .fb-admin-row  { background: #232635 !important; border-color: #2e3147 !important; }
body.dark-theme .fb-filter-input,
body.dark-theme .fb-filter-select,
body.dark-theme .fb-admin-textarea { background: #232635 !important; border-color: #2e3147 !important; color: #e2e8f0 !important; }
body.dark-theme .fb-btn-secondary { background: #232635 !important; color: #c8cde0 !important; border-color: #2e3147 !important; }
body.dark-theme .fb-btn-danger    { background: #2d1515 !important; color: #fca5a5 !important; border-color: #7f1d1d !important; }
body.dark-theme .fb-alert-success { background: #052e16 !important; color: #6ee7b7 !important; border-color: #166534 !important; }
body.dark-theme .fb-alert-error   { background: #2d1515 !important; color: #fca5a5 !important; border-color: #7f1d1d !important; }
body.dark-theme .fb-empty         { background: #1e2130 !important; color: #9aa3b8 !important; }

/* ── PENDING SURVEYS: ps-topbar, ps-stat, ps-card, ps-message, tab-bar ── */
body.dark-theme .ps-shell  { background: transparent !important; }
body.dark-theme .ps-topbar { background: #1e2130 !important; border-color: #2e3147 !important; }
body.dark-theme .ps-stats  { background: #1e2130 !important; border-color: #2e3147 !important; }
body.dark-theme .ps-stat   { background: #232635 !important; border-color: #2e3147 !important; }
body.dark-theme .ps-stat-num { color: #f1f5f9 !important; }
body.dark-theme .ps-stat-lbl { color: #5c6480 !important; }
body.dark-theme .ps-card     { background: #1e2130 !important; border-color: #2e3147 !important; }
body.dark-theme .ps-card-head { background: #232635 !important; border-color: #2e3147 !important; }
body.dark-theme .ps-message  { background: #232635 !important; border-color: #2e3147 !important; color: #c8cde0 !important; }
body.dark-theme .ps-meta     { color: #9aa3b8 !important; }
body.dark-theme .ps-action-row { background: #1e2130 !important; border-color: #2e3147 !important; }
body.dark-theme .ps-note-input { background: #232635 !important; border-color: #2e3147 !important; color: #e2e8f0 !important; }
body.dark-theme .tab-bar     { background: #1e2130 !important; border-color: #2e3147 !important; }
body.dark-theme .tab-btn     { background: #232635 !important; color: #9aa3b8 !important; border-color: #2e3147 !important; }
body.dark-theme .tab-btn.active { background: #8a5ea4 !important; color: #fff !important; border-color: #8a5ea4 !important; }
body.dark-theme .badge-pending   { background: #0f1e3a !important; color: #93c5fd !important; }
body.dark-theme .badge-approved  { background: #052e16 !important; color: #6ee7b7 !important; }
body.dark-theme .badge-rejected  { background: #2d1515 !important; color: #fca5a5 !important; }
body.dark-theme .badge-reviewing { background: #2d1f00 !important; color: #fde68a !important; }
body.dark-theme .empty-box       { background: #1e2130 !important; border-color: #2e3147 !important; color: #9aa3b8 !important; }

/* ── PROFILE.PHP: account-sidebar, account-header, account-meta, form-section ── */
body.dark-theme .account-wrapper  { background: transparent !important; }
body.dark-theme .account-sidebar  { background: #1e2130 !important; border-color: #2e3147 !important; }
body.dark-theme .account-banner   { background: linear-gradient(135deg, #1a1628, #1e1030) !important; border-color: #2e3147 !important; }
body.dark-theme .account-avatar   { background: #232635 !important; border-color: #2e3147 !important; }
body.dark-theme .account-name     { color: #f1f5f9 !important; }
body.dark-theme .account-role     { background: rgba(138,94,164,0.18) !important; color: #c8a8e4 !important; }
body.dark-theme .account-meta-list { border-color: #2e3147 !important; }
body.dark-theme .account-meta-item { background: #232635 !important; border-color: #2e3147 !important; }
body.dark-theme .account-meta-item strong { color: #9aa3b8 !important; }
body.dark-theme .account-meta-item span   { color: #e2e8f0 !important; }
body.dark-theme .account-course-empty     { color: #5c6480 !important; }
body.dark-theme .account-course-chip {
    background: #232635 !important;
    border-color: #2e3147 !important;
    color: #c8cde0 !important;
}
body.dark-theme .account-content  { background: transparent !important; }
body.dark-theme .account-header   { background: #1e2130 !important; border-color: #2e3147 !important; }
body.dark-theme .account-header h1 { color: #f1f5f9 !important; }
body.dark-theme .account-header p  { color: #9aa3b8 !important; }
body.dark-theme .account-alert.success { background: #052e16 !important; color: #6ee7b7 !important; border-color: #166534 !important; }
body.dark-theme .account-alert.error   { background: #2d1515 !important; color: #fca5a5 !important; border-color: #7f1d1d !important; }
body.dark-theme .form-section      { background: #1e2130 !important; border-color: #2e3147 !important; }
body.dark-theme .form-section h3   { color: #e2e8f0 !important; }
body.dark-theme .custom-label      { color: #9aa3b8 !important; }
body.dark-theme .help-text         { color: #5c6480 !important; }
body.dark-theme .photo-upload-container { background: #232635 !important; border-color: #2e3147 !important; }
body.dark-theme .upload-btn-styled { background: #232635 !important; border-color: #2e3147 !important; color: #c8cde0 !important; }
body.dark-theme .upload-btn-styled:hover { background: #2e3147 !important; border-color: #3d4460 !important; }
body.dark-theme .course-list-box   { background: #1e2130 !important; border-color: #2e3147 !important; }
body.dark-theme .course-card       { background: #232635 !important; border-color: #2e3147 !important; }
body.dark-theme .course-card:hover { border-color: rgba(138,94,164,0.4) !important; }
body.dark-theme .course-card.is-assigned { background: linear-gradient(180deg,#1a1030,#1e1628) !important; border-color: rgba(138,94,164,0.38) !important; }
body.dark-theme .course-card-text strong { color: #e2e8f0 !important; }
body.dark-theme .course-card-text span   { color: #9aa3b8 !important; }
body.dark-theme .assigned-chip     { background: #1a0d3a !important; color: #c4b5fd !important; }
body.dark-theme .btn-muted         { background: #232635 !important; color: #9aa3b8 !important; border-color: #2e3147 !important; }
body.dark-theme .btn-muted:hover   { background: #2e3147 !important; }

/* ── CREATE SURVEY: filter-bar, filter-bar içi ── */
body.dark-theme .filter-bar { background: #1e2130 !important; border-color: #2e3147 !important; box-shadow: none !important; }

/* ── GENEL: inline style attribute override — en sık karşılaşılan beyaz bg'ler ── */
/* background:#fff ile tanımlanmış inline style'lar */
body.dark-theme [style*="background:#fff"],
body.dark-theme [style*="background: #fff"],
body.dark-theme [style*="background:white"],
body.dark-theme [style*="background: white"],
body.dark-theme [style*="background-color:#fff"],
body.dark-theme [style*="background-color: #fff"],
body.dark-theme [style*="background-color:white"],
body.dark-theme [style*="background-color: white"],
body.dark-theme [style*="background:#ffffff"],
body.dark-theme [style*="background: #ffffff"] {
    background: #1e2130 !important;
}
body.dark-theme [style*="background:#f8fafc"],
body.dark-theme [style*="background: #f8fafc"],
body.dark-theme [style*="background:#f8f9fa"],
body.dark-theme [style*="background: #f8f9fa"],
body.dark-theme [style*="background:#fafafa"],
body.dark-theme [style*="background: #fafafa"],
body.dark-theme [style*="background:#fcfcfd"],
body.dark-theme [style*="background: #fcfcfd"],
body.dark-theme [style*="background:#fafbff"],
body.dark-theme [style*="background: #fafbff"],
body.dark-theme [style*="background:#fbfcfe"],
body.dark-theme [style*="background: #fbfcfe"] {
    background: #232635 !important;
}
body.dark-theme [style*="background:#f1f5f9"],
body.dark-theme [style*="background: #f1f5f9"],
body.dark-theme [style*="background:#f4f6fa"],
body.dark-theme [style*="background: #f4f6fa"],
body.dark-theme [style*="background:#eef2f7"],
body.dark-theme [style*="background: #eef2f7"] {
    background: #252838 !important;
}
/* border renkleri */
body.dark-theme [style*="border-color:#e2e8f0"],
body.dark-theme [style*="border-color: #e2e8f0"],
body.dark-theme [style*="border:1px solid #e2e8f0"],
body.dark-theme [style*="border: 1px solid #e2e8f0"],
body.dark-theme [style*="border:1px solid #edf1f7"],
body.dark-theme [style*="border: 1px solid #edf1f7"],
body.dark-theme [style*="border:1px solid #ececec"],
body.dark-theme [style*="border: 1px solid #ececec"],
body.dark-theme [style*="border:1px solid #eee"],
body.dark-theme [style*="border: 1px solid #eee"],
body.dark-theme [style*="border-bottom:1px solid #eef1f6"],
body.dark-theme [style*="border-bottom: 1px solid #eef1f6"] {
    border-color: #2e3147 !important;
}
/* text renkleri */
body.dark-theme [style*="color:#1f2937"],
body.dark-theme [style*="color: #1f2937"],
body.dark-theme [style*="color:#2d2d2d"],
body.dark-theme [style*="color:#333"],
body.dark-theme [style*="color: #333"],
body.dark-theme [style*="color:#444"],
body.dark-theme [style*="color: #444"] { color: #e2e8f0 !important; }
body.dark-theme [style*="color:#667085"],
body.dark-theme [style*="color: #667085"],
body.dark-theme [style*="color:#64748b"],
body.dark-theme [style*="color: #64748b"],
body.dark-theme [style*="color:#6b7280"],
body.dark-theme [style*="color: #6b7280"],
body.dark-theme [style*="color:#666"],
body.dark-theme [style*="color: #666"],
body.dark-theme [style*="color:#777"],
body.dark-theme [style*="color: #777"],
body.dark-theme [style*="color:#555"],
body.dark-theme [style*="color: #555"] { color: #9aa3b8 !important; }
body.dark-theme [style*="color:#94a3b8"],
body.dark-theme [style*="color: #94a3b8"] { color: #5c6480 !important; }