/*
* =========================================================
* style.css
* Progressive Web App (PWA) Uyumlu Ana Stil Dosyası
* Tüm dahili CSS'ler buraya taşınarak kod tekrarı giderilmiştir.
* =========================================================
*/

/* === MODERN CSS RESET & VARIABLES === */
:root {
    /* Ana Tema Renkleri */
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --primary-light: #eef2ff;
    --secondary: #7209b7;
    --accent: #f72585;
    --success: #06d6a0;
    /* PWA/AI Success Color */
    --warning: #ffd166;
    --danger: #ef476f;
    --dark: #1a1a2e;
    --dark-light: #2d3047;
    --gray: #8d99ae;
    --light: #f8f9fa;
    --white: #ffffff;
    --gray-light: #e5e7eb;
    --border: #e2e8f0;
    /* Added for Admin Panel compatibility */
    --radius: 12px;
    /* Added for Admin Panel compatibility */

    /* YENİ AI / PWA ODAKLI RENK DEĞİŞKENLERİ */
    --ai-color: #06d6a0;
    /* Zümrüt Yeşili */
    --ai-dark: #1b9aaa;
    --ai-gradient: linear-gradient(135deg, #06d6a0 0%, #1b9aaa 100%);
    --ai-gradient-light: linear-gradient(135deg, rgba(6, 214, 160, 0.1) 0%, rgba(27, 154, 170, 0.1) 100%);

    /* Gradientler */
    --gradient-primary: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    --gradient-secondary: linear-gradient(135deg, #7209b7 0%, #560bad 100%);
    --gradient-accent: linear-gradient(135deg, #f72585 0%, #b5179e 100%);
    --gradient-ozet: linear-gradient(135deg, #06d6a0 0%, #1b9aaa 100%);

    /* Gölgeler ve Köşeler */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;

    /* Animasyonlar ve Yükseklikler */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s ease;
    --header-height: 70px;
    --mobile-header-height: 60px;

    /* Dashboard Özel Renkleri */
    --danger-light: #ffebeb;
    --success-light: #e6fcf5;
    --custom-add-bg: linear-gradient(45deg, #8b5cf6 0%, #6366f1 100%);
    /* Mor-Mavi gradyan */
    --custom-add-hover: linear-gradient(45deg, #6366f1 0%, #8b5cf6 100%);
    --custom-test-bg: linear-gradient(45deg, #f59e0b 0%, #fbbf24 100%);
    /* Yeni eklenen test butonu için */
    --custom-test-hover: linear-gradient(45deg, #fbbf24 0%, #f59e0b 100%);

    /* KARANLIK MOD DEĞİŞKENLERİ - Varsayılan (Light) */
    --bg-color: #f8f9fa;
    --text-color: #1a1a2e;
    --header-bg: rgba(255, 255, 255, 0.95);
    --header-border: #e2e8f0;
    --link-hover-bg: #f1f5f9;
    --loading-bg: rgba(15, 23, 42, 0.98);
}

/* KARANLIK MOD STİLLERİ (Premium Slate - Gece Mavisi Teması) */
html.dark-mode,
body.dark-mode {
    /* Ana Zemin ve Kart Zeminleri (Mükemmel Uyumlu Gece Mavisi Tonları) */
    --bg-color: #0f172a;        /* Slate 900 - Sayfa Arka Planı */
    --white: #1e293b;           /* Slate 800 - Kartlar, Boxlar ve Yüzeyler */
    --header-bg: rgba(15, 23, 42, 0.95);
    
    /* Metin Renkleri */
    --text-color: #f8fafc;      /* Slate 50 - Ana Metin */
    --dark: #ffffff;            /* Saf Beyaz - Vurgulu Yazılar İçin */
    --dark-light: #f1f5f9;      /* Slate 100 - Alt Başlıklar */
    --gray: #94a3b8;            /* Slate 400 - Sönük Metinler ve İkonlar */
    
    /* Vurgu ve Kenarlık Renkleri */
    --gray-light: #334155;      /* Slate 700 - Hover ve Aktif Durumlar */
    --border: #334155;          /* Slate 700 - Çizgiler ve Çerçeveler */
    --header-border: #334155;
    --link-hover-bg: #1e293b;
    --loading-bg: rgba(15, 23, 42, 0.98);

    /* Karanlık Modda Gözü Yormayan Gölgeler */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.6);

    /* Opsiyonel AI ve Secondary Renklerde daha soft tonlar */
    --primary-light: rgba(99, 102, 241, 0.15);
    --danger-light: rgba(239, 68, 68, 0.15);
    --success-light: rgba(16, 185, 129, 0.15);

    background: var(--bg-color);
    color: var(--text-color);
}

/* ═══════════════════════════════════════════════════════════════════════
   KAPSAMLI DARK MODE OVERRIDE'LARI - TÜM SAYFALAR
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 1. GENEL BİLEŞENLER ── */
html.dark-mode body { background: var(--bg-color) !important; color: var(--text-color) !important; }

html.dark-mode .card,
html.dark-mode .content-box,
html.dark-mode .dashboard-box,
html.dark-mode .modal-content,
html.dark-mode .stat-card,
html.dark-mode .white-box {
    background: var(--white) !important;
    border-color: var(--border) !important;
    box-shadow: var(--shadow-sm) !important;
    color: var(--text-color) !important;
}

/* Form Elemanları */
html.dark-mode input,
html.dark-mode select,
html.dark-mode textarea {
    background: var(--bg-color) !important;
    color: var(--text-color) !important;
    border-color: var(--border) !important;
}
html.dark-mode input:focus,
html.dark-mode select:focus,
html.dark-mode textarea:focus {
    border-color: var(--primary) !important;
    background: var(--white) !important;
}

/* Tablolar  */
html.dark-mode .table, html.dark-mode th, html.dark-mode td {
    border-color: var(--border) !important; color: var(--text-color) !important;
}
html.dark-mode th { background: var(--gray-light) !important; color: var(--dark-light) !important; }

/* Listeler */
html.dark-mode .list-group-item, html.dark-mode .item-row {
    background: var(--white) !important; border-color: var(--border) !important;
}
html.dark-mode ::placeholder { color: var(--gray) !important; }

/* Başlıklar */
html.dark-mode h1, html.dark-mode h2, html.dark-mode h3,
html.dark-mode h4, html.dark-mode h5, html.dark-mode h6,
html.dark-mode strong, html.dark-mode b { color: var(--dark) !important; }

/* Paragraf ve span metin renkleri */
html.dark-mode p, html.dark-mode span, html.dark-mode label, html.dark-mode div {
    color: inherit;
}

/* Auth Sayfaları – artık native dark, override gerekmiyor */
html.dark-mode .login-container { background: rgba(20,20,30,0.7) !important; border-color: rgba(255,255,255,0.08) !important; }
html.dark-mode .auth-page-body { background: #0a0a12 !important; }

/* ── 2. HEADER ── */
html.dark-mode .header,
html.dark-mode header.header {
    background: rgba(15, 23, 42, 0.95) !important;
    border-bottom-color: var(--border) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}
html.dark-mode .logo-text { color: #f8fafc !important; }
html.dark-mode .nav-link { color: var(--gray) !important; }
html.dark-mode .nav-link:hover { color: var(--primary) !important; background: rgba(99,102,241,0.1) !important; }
html.dark-mode .nav-link.active { background: var(--primary) !important; color: #fff !important; }
html.dark-mode .nav-link.active i { color: #fff !important; }

/* Sidebar / Menü (mobil) */
html.dark-mode .nav-link-container {
    background: var(--bg-color) !important;
}
html.dark-mode .nav-group-title { color: var(--gray) !important; }
html.dark-mode .dropdown-menu { background: var(--white) !important; border-color: var(--border) !important; }

html.dark-mode .user-avatar { background: var(--primary) !important; color: #fff !important; }
html.dark-mode .credit-badge { background: var(--white) !important; border-color: var(--border) !important; color: var(--text-color) !important; }

/* ── 3. PROFİL SAYFASI ── */
/* Hero ve strip (hardcoded #fff) */
html.dark-mode .pf-hero { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .pf-info h1 { color: #f8fafc !important; }
html.dark-mode .pf-info p { color: var(--gray) !important; }
html.dark-mode .pf-meta-item { background: var(--bg-color) !important; border-color: var(--border) !important; }
html.dark-mode .pf-meta-item .val { color: #f8fafc !important; }
html.dark-mode .pf-meta-item .lbl { color: var(--gray) !important; }

html.dark-mode .pf-strip-item { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .pf-strip-item .num { color: #f8fafc !important; }
html.dark-mode .pf-strip-item .sub { color: var(--gray) !important; }

html.dark-mode .pf-section-title { color: #f8fafc !important; }

/* Profil - inline background: #fff olan tüm div'ler */
html.dark-mode .pf-wrap div[style*="background:#fff"],
html.dark-mode .pf-wrap div[style*="background: #fff"] {
    background: var(--white) !important;
    border-color: var(--border) !important;
}

/* Profil - inline color: #0f172a olan tüm elemanlar */
html.dark-mode .pf-wrap div[style*="color:#0f172a"],
html.dark-mode .pf-wrap div[style*="color: #0f172a"],
html.dark-mode .pf-wrap span[style*="color:#0f172a"],
html.dark-mode .pf-wrap span[style*="color: #0f172a"],
html.dark-mode .pf-wrap strong[style*="color:#0f172a"],
html.dark-mode .pf-wrap strong[style*="color: #0f172a"] {
    color: #f8fafc !important;
}

/* Profil - inline color: #1e293b olan tüm elemanlar */
html.dark-mode .pf-wrap div[style*="color:#1e293b"],
html.dark-mode .pf-wrap div[style*="color: #1e293b"],
html.dark-mode .pf-wrap span[style*="color:#1e293b"] {
    color: #e2e8f0 !important;
}

/* Profil inline color: #334155 */
html.dark-mode .pf-wrap div[style*="color:#334155"],
html.dark-mode .pf-wrap span[style*="color:#334155"] {
    color: #cbd5e1 !important;
}

/* Profil inline color: #64748b (muted text) */
html.dark-mode .pf-wrap div[style*="color:#64748b"],
html.dark-mode .pf-wrap span[style*="color:#64748b"],
html.dark-mode .pf-wrap div[style*="color: #64748b"] {
    color: #94a3b8 !important;
}

/* Profil - background: #f8fafc, #f1f5f9 olan alanlar */
html.dark-mode .pf-wrap div[style*="background:#f8fafc"],
html.dark-mode .pf-wrap div[style*="background: #f8fafc"],
html.dark-mode .pf-wrap span[style*="background:#f8fafc"] {
    background: var(--bg-color) !important;
    border-color: var(--border) !important;
}
html.dark-mode .pf-wrap div[style*="background:#f1f5f9"],
html.dark-mode .pf-wrap div[style*="background: #f1f5f9"] {
    background: var(--gray-light) !important;
}

/* Profil - progress bar arka planları */
html.dark-mode .pf-wrap div[style*="background:#e2e8f0"],
html.dark-mode .pf-wrap div[style*="background: #e2e8f0"] {
    background: var(--gray-light) !important;
}

/* Profil - ID kutusu */
html.dark-mode .pf-wrap span[style*="border:1px dashed"] {
    background: var(--bg-color) !important;
    border-color: var(--gray) !important;
    color: var(--gray) !important;
}
html.dark-mode .pf-wrap span[style*="border:1px dashed"] strong {
    color: #f8fafc !important;
}

/* Modal (Hediye) */
html.dark-mode .login-modal div[style*="background:#fff"],
html.dark-mode .login-modal .modal-content,
html.dark-mode div[id="giftModal"] div[style*="background:#fff"] {
    background: var(--white) !important;
    color: var(--text-color) !important;
}
html.dark-mode div[id="giftModal"] h3 { color: #f8fafc !important; }
html.dark-mode div[id="giftModal"] p { color: var(--gray) !important; }
html.dark-mode div[id="giftModal"] label { color: #cbd5e1 !important; }

/* ── 4. SINAV LİSTESİ SAYFASI ── */
html.dark-mode body { background: var(--bg-color) !important; }

/* Stat kartları */
html.dark-mode .x-stat-card {
    background: var(--white) !important;
    border-color: var(--border) !important;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.3) !important;
}
html.dark-mode .x-stat-info h4 { color: #f8fafc !important; }
html.dark-mode .x-stat-info p { color: var(--gray) !important; }

/* Glass toolbar */
html.dark-mode .x-glass-tools {
    background: rgba(30,41,59,0.6) !important;
    border-color: var(--border) !important;
}
html.dark-mode .x-search input {
    background: var(--bg-color) !important;
    color: #f8fafc !important;
    border: 1px solid var(--border) !important;
}
html.dark-mode .x-search input:focus {
    background: var(--white) !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.25) !important;
}
html.dark-mode .x-filter-btn { color: var(--gray) !important; }
html.dark-mode .x-filter-btn:hover { background: var(--gray-light) !important; color: #f8fafc !important; }
html.dark-mode .x-filter-btn.active { background: var(--primary) !important; color: #fff !important; }

/* Kategori kartları */
html.dark-mode .x-cat-card {
    background: var(--white) !important;
    border-color: var(--border) !important;
    box-shadow: 0 15px 40px -15px rgba(0,0,0,0.3) !important;
}
html.dark-mode .x-cat-card:hover { border-color: rgba(99,102,241,0.4) !important; }
html.dark-mode .x-cat-title { color: #f8fafc !important; }
html.dark-mode .x-cat-icon { background: rgba(99,102,241,0.15) !important; color: #818cf8 !important; }
html.dark-mode .x-cat-arrow { background: var(--bg-color) !important; border-color: var(--border) !important; color: var(--gray) !important; }
html.dark-mode .x-cat-card:hover .x-cat-arrow { background: var(--primary) !important; color: #fff !important; border-color: var(--primary) !important; }
html.dark-mode .x-cat-count { background: rgba(99,102,241,0.15) !important; color: #a5b4fc !important; }

/* Drill-down sayfası */
html.dark-mode .x-drill-back { background: var(--white) !important; color: #f8fafc !important; }
html.dark-mode .x-drill-back:hover { background: var(--primary) !important; color: #fff !important; }
html.dark-mode .x-drill-title { color: #f8fafc !important; }

/* Bölüm grupları */
html.dark-mode .x-bolum-group { background: rgba(30,41,59,0.4) !important; border-color: var(--border) !important; }
html.dark-mode .x-bolum-title { background: var(--white) !important; color: #f8fafc !important; border-color: var(--border) !important; }

/* Ders grupları */
html.dark-mode .x-ders-group { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .x-ders-title { background: var(--bg-color) !important; color: #e2e8f0 !important; }
html.dark-mode .x-ders-title:hover { background: var(--gray-light) !important; }
html.dark-mode .acc-content { background: var(--white) !important; border-top-color: var(--border) !important; }
html.dark-mode .acc-icon { color: var(--gray) !important; }

/* Sınav kartları */
html.dark-mode .x-exam-card {
    background: var(--white) !important;
    border-color: var(--border) !important;
    box-shadow: 0 8px 25px -8px rgba(0,0,0,0.3) !important;
}
html.dark-mode .x-exam-card:hover { border-color: rgba(99,102,241,0.3) !important; }
html.dark-mode .x-exam-title { color: #f8fafc !important; }
html.dark-mode .x-exam-dept { color: var(--gray) !important; }
html.dark-mode .x-meta-tag { background: var(--bg-color) !important; color: var(--gray) !important; border-color: var(--border) !important; }
html.dark-mode .x-checkmark { background: var(--bg-color) !important; border-color: var(--gray) !important; }
html.dark-mode .x-exam-card:has(input:checked) { border-color: rgba(239,68,68,0.4) !important; background: rgba(239,68,68,0.1) !important; }

/* Boş kütüphane ekranı */
html.dark-mode .x-wrap div[style*="background: #fff"] {
    background: var(--white) !important;
}
html.dark-mode .x-wrap h3[style*="color: #0f172a"] { color: #f8fafc !important; }
html.dark-mode .x-wrap p[style*="color:#64748b"] { color: var(--gray) !important; }

/* Modal (silme onay) */
html.dark-mode #xModalBg div[style*="background: #fff"] {
    background: var(--white) !important;
}
html.dark-mode #xModalBg h3[style*="color: #0f172a"] { color: #f8fafc !important; }
html.dark-mode #xModalBg p[style*="color: #64748b"] { color: var(--gray) !important; }
html.dark-mode #xModalBg button[style*="background: #f1f5f9"] { background: var(--gray-light) !important; color: var(--gray) !important; }

/* ── 5. SINAV SAYFASI (Soru çözme) ── */
html.dark-mode .question-card,
html.dark-mode .option-card,
html.dark-mode .option-item,
html.dark-mode [class*="option"],
html.dark-mode [class*="question"] {
    background: var(--white) !important;
    border-color: var(--border) !important;
    color: var(--text-color) !important;
}

/* Inline style ile yapılmış beyaz arkaplan seçenek kutuları */
html.dark-mode div[style*="background:#fff"],
html.dark-mode div[style*="background: #fff"],
html.dark-mode div[style*="background:#ffffff"],
html.dark-mode div[style*="background: #ffffff"],
html.dark-mode div[style*="background: white"] {
    background: var(--white) !important;
    border-color: var(--border) !important;
}

/* Inline style ile beyaz / açık renkli label ve radio butonları */
html.dark-mode label[style*="background:#fff"],
html.dark-mode label[style*="background: #fff"],
html.dark-mode label[style*="background:white"],
html.dark-mode label[style*="background: white"],
html.dark-mode label[style*="background:#ffffff"] {
    background: var(--white) !important;
    border-color: var(--border) !important;
    color: var(--text-color) !important;
}

/* Hardcoded color: #0f172a -> beyaz */
html.dark-mode div[style*="color:#0f172a"],
html.dark-mode div[style*="color: #0f172a"],
html.dark-mode span[style*="color:#0f172a"],
html.dark-mode span[style*="color: #0f172a"],
html.dark-mode h3[style*="color:#0f172a"],
html.dark-mode h3[style*="color: #0f172a"],
html.dark-mode strong[style*="color:#0f172a"] {
    color: #f8fafc !important;
}

/* Hardcoded color: #1e293b */
html.dark-mode div[style*="color:#1e293b"],
html.dark-mode div[style*="color: #1e293b"],
html.dark-mode span[style*="color:#1e293b"],
html.dark-mode h3[style*="color:#1e293b"],
html.dark-mode h3[style*="color: #1e293b"] {
    color: #e2e8f0 !important;
}

/* Hardcoded #334155 text */
html.dark-mode div[style*="color:#334155"],
html.dark-mode span[style*="color:#334155"],
html.dark-mode div[style*="color: #334155"] {
    color: #cbd5e1 !important;
}

/* Hardcoded #64748b text */
html.dark-mode div[style*="color:#64748b"],
html.dark-mode span[style*="color:#64748b"],
html.dark-mode div[style*="color: #64748b"],
html.dark-mode p[style*="color:#64748b"],
html.dark-mode p[style*="color: #64748b"] {
    color: #94a3b8 !important;
}

/* Hardcoded #475569 text */
html.dark-mode div[style*="color:#475569"],
html.dark-mode span[style*="color:#475569"] {
    color: #94a3b8 !important;
}

/* Inline background #f8fafc alanları */
html.dark-mode div[style*="background:#f8fafc"],
html.dark-mode div[style*="background: #f8fafc"],
html.dark-mode span[style*="background:#f8fafc"],
html.dark-mode label[style*="background:#f8fafc"] {
    background: var(--bg-color) !important;
    border-color: var(--border) !important;
}

/* Inline background #f1f5f9 (progress bar track v.b.) */
html.dark-mode div[style*="background:#f1f5f9"],
html.dark-mode div[style*="background: #f1f5f9"] {
    background: var(--gray-light) !important;
}

/* Inline background #f4f7fe (body) */
html.dark-mode div[style*="background:#f4f7fe"],
html.dark-mode div[style*="background: #f4f7fe"] {
    background: var(--bg-color) !important;
}

/* Inline background #e2e8f0 */
html.dark-mode div[style*="background:#e2e8f0"],
html.dark-mode div[style*="background: #e2e8f0"] {
    background: var(--gray-light) !important;
}

/* Inline border: 1px solid #e2e8f0 */
html.dark-mode div[style*="border:1px solid #e2e8f0"],
html.dark-mode div[style*="border: 1px solid #e2e8f0"] {
    border-color: var(--border) !important;
}

/* ── 6. DİĞER SAYFALARA GENEL OVERRIDE ── */
/* SweetAlert2 Uyumu */
html.dark-mode .swal2-popup {
    background: var(--white) !important;
    color: var(--text-color) !important;
}
html.dark-mode .swal2-title { color: #f8fafc !important; }
html.dark-mode .swal2-html-container { color: var(--gray) !important; }

/* Footer */
html.dark-mode footer, html.dark-mode .footer {
    background: var(--bg-color) !important;
    border-top-color: var(--border) !important;
    color: var(--gray) !important;
}

/* Mobil drawer ve bottom sheet */
html.dark-mode .mobile-more-content { background: var(--white) !important; }

/* ── 7. MOBİL BROWSER ÖZEL ── */
@media (max-width: 768px) {
    html.dark-mode .nav-link-container {
        background: var(--bg-color) !important;
        border-color: var(--border) !important;
    }
}

/* ── 8. SINAV SAYFASI (DESKTOP + MOBİL) ── */
html.dark-mode .start-screen { background: var(--white) !important; border-color: var(--border) !important; box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important; }
html.dark-mode .exam-title { color: #f8fafc !important; }
html.dark-mode .exam-subtitle { color: var(--gray) !important; }
html.dark-mode .info-box { background: var(--bg-color) !important; border-color: var(--border) !important; }
html.dark-mode .info-label { color: var(--gray) !important; }
html.dark-mode .info-val { color: #f8fafc !important; }
html.dark-mode .ust-bilgi { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .sure-kutu { background: #7f1d1d !important; color: #fca5a5 !important; }
html.dark-mode .soru-karti { background: var(--white) !important; border-color: var(--border) !important; color: var(--text-color) !important; }
html.dark-mode .soru-metni-duz, html.dark-mode .m-q-text { color: #f1f5f9 !important; }
html.dark-mode .soru-kok { color: #f1f5f9 !important; }
html.dark-mode .soru-giris { color: #cbd5e1 !important; }
html.dark-mode .sik-kutusu { background: var(--bg-color) !important; border-color: var(--border) !important; color: #cbd5e1 !important; }
html.dark-mode .sik-kutusu:hover { border-color: rgba(99,102,241,0.4) !important; }
html.dark-mode .sik-kutusu.secili { background: rgba(79,70,229,0.2) !important; border-color: #818cf8 !important; color: #c7d2fe !important; }
html.dark-mode .sik-kutusu.bos-sik { background: transparent !important; border-color: #475569 !important; color: #94a3b8 !important; }
html.dark-mode .aciklama-panel { background: rgba(245,158,11,0.1) !important; border-color: #b45309 !important; color: #fcd34d !important; }
html.dark-mode .alt-nav { background: var(--white) !important; border-top-color: var(--border) !important; }
html.dark-mode .sonuc-panel { background: var(--white) !important; color: var(--text-color) !important; }
html.dark-mode .grid-item { border-color: var(--border) !important; }
html.dark-mode .g-bos { background: #334155 !important; color: #94a3b8 !important; }
html.dark-mode .modal-icerik { background: var(--white) !important; color: var(--text-color) !important; }
html.dark-mode .ai-response-content { color: #e2e8f0 !important; }
html.dark-mode .ai-response-content h3 { color: #818cf8 !important; border-bottom-color: var(--border) !important; }
html.dark-mode .ai-response-content code { background: var(--gray-light) !important; color: #f472b6 !important; }
html.dark-mode .soru-tablo { background: var(--bg-color) !important; }
html.dark-mode .soru-tablo th { background: var(--gray-light) !important; color: #f1f5f9 !important; border-color: #475569 !important; }
html.dark-mode .soru-tablo td { border-color: #475569 !important; color: #e2e8f0 !important; }
html.dark-mode .soru-tablo tr:nth-child(even) td { background: rgba(51,65,85,0.3) !important; }
html.dark-mode .k-btn { background: var(--bg-color) !important; border-color: var(--border) !important; color: #cbd5e1 !important; }
html.dark-mode .k-btn.on { background: var(--primary) !important; color: white !important; }
html.dark-mode #kalamaPanel { background: var(--bg-color) !important; border-left-color: var(--border) !important; }
html.dark-mode .kp-btn { background: var(--white) !important; border-color: var(--border) !important; color: #cbd5e1 !important; }
html.dark-mode .m-start { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .m-title { color: #f8fafc !important; }
html.dark-mode .m-subtitle { color: #94a3b8 !important; }
html.dark-mode .m-info-box { background: var(--bg-color) !important; border-color: var(--border) !important; }
html.dark-mode .m-val { color: #818cf8 !important; }
html.dark-mode .m-lbl { color: #94a3b8 !important; }
html.dark-mode .m-top-bar { background: rgba(30,41,59,0.95) !important; border-color: var(--border) !important; }
html.dark-mode .m-title-text { color: #f8fafc !important; }
html.dark-mode .m-timer { background: #7f1d1d !important; color: #fca5a5 !important; }
html.dark-mode .m-q-no { background: #334155 !important; color: #cbd5e1 !important; }
html.dark-mode .m-q-ai { background: rgba(79,70,229,0.2) !important; border-color: rgba(99,102,241,0.4) !important; color: #818cf8 !important; }
html.dark-mode .m-nav-bar { background: rgba(30,41,59,0.95) !important; border-color: var(--border) !important; }
html.dark-mode select#sureSecimi { background: var(--bg-color) !important; border-color: var(--border) !important; color: #f8fafc !important; }

/* ── 9. OYUN SAYFALARI (Game Pages) ── */
/* CSS Custom Property override (bento theme) */
html.dark-mode { --bento-bg: #0f172a; --bento-surface: #1e293b; --bento-border: #334155; --bento-text: #e2e8f0; --bento-muted: #94a3b8; }
html.dark-mode .filter-card { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .filter-card h3 { color: #f8fafc !important; border-bottom-color: var(--border) !important; }
html.dark-mode .unit-card { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .unit-card h4 { color: #f8fafc !important; }
html.dark-mode .unit-card p { color: #94a3b8 !important; }
html.dark-mode .form-select { background: var(--bg-color) !important; border-color: var(--border) !important; color: #f8fafc !important; }
html.dark-mode .scroll-box { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .question-txt { color: #f8fafc !important; }
html.dark-mode .battle-btn { background: var(--bg-color) !important; border-color: var(--border) !important; color: #e2e8f0 !important; }
html.dark-mode .battle-btn:hover { border-color: rgba(99,102,241,0.5) !important; color: #818cf8 !important; }
html.dark-mode .modal-scroll { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .timer-frame { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .hp-bar-outer { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .hp-label { color: #94a3b8 !important; }
html.dark-mode .game-modal { background: rgba(15,23,42,0.8) !important; }
html.dark-mode .hero-section { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3) !important; }
html.dark-mode .game-tabs { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .game-tab-btn { color: #94a3b8 !important; }
html.dark-mode .game-tab-btn.active { color: #818cf8 !important; border-bottom-color: #6366f1 !important; background: rgba(99,102,241,0.1) !important; }
html.dark-mode .how-to-play { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .how-to-play-header h4 { color: #e2e8f0 !important; }
html.dark-mode .htp-step { background: var(--bg-color) !important; border-color: var(--border) !important; }
html.dark-mode .htp-step-text { color: #cbd5e1 !important; }
html.dark-mode .htp-scoring { background: rgba(245,158,11,0.1) !important; border-color: rgba(245,158,11,0.3) !important; }
html.dark-mode .htp-scoring span { color: #fcd34d !important; }
/* Ses butonu */
html.dark-mode #soundToggleBtn { background: var(--white) !important; color: #94a3b8 !important; box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important; }
/* Multi-play bar */
html.dark-mode .multi-play-bar { background: rgba(16,185,129,0.05) !important; border-color: rgba(16,185,129,0.2) !important; }
html.dark-mode #selectedCount, html.dark-mode #sistemSelectedCount { color: #94a3b8 !important; }
html.dark-mode .select-all-btn { border-color: rgba(16,185,129,0.3) !important; }
/* Duello */
html.dark-mode { --duel-bg: #0f172a; --duel-surface: #1e293b; --duel-border: #334155; --duel-text: #e2e8f0; --duel-muted: #94a3b8; }
html.dark-mode .avatar-circle { background: var(--white) !important; border-color: var(--border) !important; }

/* ── 10. AI CHAT SAYFASI (ac-* class'ları) ── */
/* Eski genel kurallar */
html.dark-mode .chat-container, html.dark-mode .chat-box { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .chat-message.user { background: var(--primary) !important; }
html.dark-mode .chat-message.ai { background: var(--bg-color) !important; border-color: var(--border) !important; color: #e2e8f0 !important; }
html.dark-mode .chat-input-area { background: var(--white) !important; border-top-color: var(--border) !important; }
html.dark-mode .chat-input { background: var(--bg-color) !important; border-color: var(--border) !important; color: #f8fafc !important; }

/* AI Chat sayfasına özgü class'lar */
html.dark-mode .ac-chat {
  background: #1e293b !important;
  border-color: #334155 !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35) !important;
}
html.dark-mode .ac-body {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
}
html.dark-mode .ac-body::-webkit-scrollbar-thumb { background: #334155 !important; }
html.dark-mode .ac-foot {
  background: #1e293b !important;
  border-top-color: #334155 !important;
}
html.dark-mode .ac-input {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}
html.dark-mode .ac-input:focus {
  background: #1e293b !important;
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15) !important;
}
html.dark-mode .ac-input:disabled { background: #0f172a !important; }
html.dark-mode .ac-input::placeholder { color: #64748b !important; }

/* AI mesaj baloncukları */
html.dark-mode .msg-ai {
  background: #334155 !important;
  color: #e2e8f0 !important;
  border-left-color: #6366f1 !important;
}
html.dark-mode .msg-ai code { background: rgba(99,102,241,0.2) !important; color: #a5b4fc !important; }
html.dark-mode .msg-ai h3,
html.dark-mode .msg-ai h4 { color: #a5b4fc !important; }
html.dark-mode .msg-ai .tts-btn { color: #818cf8 !important; }
html.dark-mode .msg-ai .tts-btn:hover { background: rgba(99,102,241,0.2) !important; color: #a5b4fc !important; }
html.dark-mode .msg-error {
  background: rgba(239,68,68,0.12) !important;
  color: #fca5a5 !important;
  border-left-color: #ef4444 !important;
}

/* Seçenek butonları */
html.dark-mode .opt-btn {
  background: rgba(99,102,241,0.1) !important;
  color: #a5b4fc !important;
  border-color: rgba(99,102,241,0.3) !important;
}
html.dark-mode .opt-btn:hover {
  background: #6366f1 !important;
  color: #fff !important;
  border-color: #6366f1 !important;
}

/* Mikrofon butonu */
html.dark-mode .btn-mic {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #818cf8 !important;
}
html.dark-mode .btn-mic:hover { background: rgba(99,102,241,0.15) !important; border-color: #6366f1 !important; }

/* Tarih ayırıcı (Yeni Sohbet separator) */
html.dark-mode #ac-body div[style*="border-top:1px dashed"],
html.dark-mode #ac-body div[style*="border-top: 1px dashed"] {
  color: #475569 !important;
  border-top-color: #334155 !important;
}


/* ── 11. AYARLAR SAYFASI ── */
html.dark-mode .settings-card, html.dark-mode .settings-section { background: var(--white) !important; border-color: var(--border) !important; color: var(--text-color) !important; }

/* ── 12. ÖDEME SAYFASI ── */
html.dark-mode .pricing-card, html.dark-mode .payment-box { background: var(--white) !important; border-color: var(--border) !important; }

/* ── 13. CANLI DERSLER SAYFASI ── */
html.dark-mode .ders-card { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .ders-card h3 { color: #f8fafc !important; }

/* ── 14. TAHMİN SINAV / KUTUPHANE ── */
html.dark-mode .tahmin-wrap, html.dark-mode .tahmin-card { background: var(--white) !important; border-color: var(--border) !important; }

/* ── 15. YANLIŞLARIM SAYFASI ── */
html.dark-mode .yanlis-card { background: var(--white) !important; border-color: var(--border) !important; }

/* ── 16. LİDERLİK TABLOSU ── */
html.dark-mode .leaderboard-card { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .lb-row { border-bottom-color: var(--border) !important; }
html.dark-mode .lb-row:hover { background: var(--bg-color) !important; }

/* ── 17. GENEL CATCHALL — tüm beyaz kartları yakala ── */
html.dark-mode div[style*="background:white"],
html.dark-mode div[style*="background: white"] { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode div[style*="background:#fff"],
html.dark-mode div[style*="background: #fff"],
html.dark-mode div[style*="background:#ffffff"] { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode div[style*="background:#f8fafc"],
html.dark-mode div[style*="background: #f8fafc"] { background: var(--bg-color) !important; }
html.dark-mode div[style*="background:#f1f5f9"],
html.dark-mode div[style*="background: #f1f5f9"] { background: var(--gray-light) !important; }
html.dark-mode div[style*="background:#f4f7fe"],
html.dark-mode div[style*="background: #f4f7fe"] { background: var(--bg-color) !important; }
html.dark-mode div[style*="color:#0f172a"],
html.dark-mode span[style*="color:#0f172a"],
html.dark-mode h3[style*="color:#0f172a"],
html.dark-mode strong[style*="color:#0f172a"] { color: #f8fafc !important; }
html.dark-mode div[style*="color:#1e293b"],
html.dark-mode span[style*="color:#1e293b"],
html.dark-mode h3[style*="color:#1e293b"],
html.dark-mode h2[style*="color:#1e293b"] { color: #e2e8f0 !important; }
html.dark-mode div[style*="color:#334155"],
html.dark-mode span[style*="color:#334155"] { color: #cbd5e1 !important; }
html.dark-mode div[style*="color:#64748b"],
html.dark-mode span[style*="color:#64748b"],
html.dark-mode p[style*="color:#64748b"],
html.dark-mode small[style*="color:#64748b"] { color: #94a3b8 !important; }
html.dark-mode div[style*="color:#475569"],
html.dark-mode span[style*="color:#475569"] { color: #94a3b8 !important; }
html.dark-mode div[style*="border:1px solid #e2e8f0"],
html.dark-mode div[style*="border:1px solid #f1f5f9"],
html.dark-mode div[style*="border: 1px solid #e2e8f0"] { border-color: var(--border) !important; }
html.dark-mode div[style*="border-bottom:1px solid #eee"],
html.dark-mode h3[style*="border-bottom:1px solid #eee"] { border-bottom-color: var(--border) !important; }
html.dark-mode label[style*="background:#fff"],
html.dark-mode label[style*="background:white"] { background: var(--white) !important; border-color: var(--border) !important; color: var(--text-color) !important; }

/* ── 18. ÇALIŞMA PROGRAMI ── */
html.dark-mode .cp-page { background: var(--bg-color) !important; }
html.dark-mode .cp-controls { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .cp-month { color: #f8fafc !important; }
html.dark-mode .cp-cal { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .cp-day { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .cp-day.today { background: linear-gradient(145deg, #1e1b4b, #312e81) !important; border-color: #6366f1 !important; }
html.dark-mode .cp-day.weekend { background: #1e1b4b !important; border-color: #4338ca !important; }
html.dark-mode .cp-daynum { color: #cbd5e1 !important; background: var(--gray-light) !important; }
html.dark-mode .today .cp-daynum { background: #6366f1 !important; color: #fff !important; }
html.dark-mode .cp-modal { background: var(--white) !important; }
html.dark-mode .cp-modal-head { background: var(--bg-color) !important; border-bottom-color: var(--border) !important; }
html.dark-mode .cp-modal-head h3 { color: #f8fafc !important; }
html.dark-mode .cp-modal-body { background: var(--white) !important; }
html.dark-mode .cp-input { background: var(--bg-color) !important; border-color: var(--border) !important; color: #f8fafc !important; }
html.dark-mode .cp-input:focus { background: var(--white) !important; border-color: #6366f1 !important; }
html.dark-mode .cp-cat-label { background: var(--bg-color) !important; border-color: var(--border) !important; color: #94a3b8 !important; }
html.dark-mode .cp-reminder-row { background: var(--bg-color) !important; border-color: var(--border) !important; }
html.dark-mode .cp-reminder-label { color: #f8fafc !important; }
html.dark-mode .cp-reminder-hint { color: #94a3b8 !important; }
html.dark-mode .plan-card { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .plan-card h4 { color: #f8fafc !important; }
html.dark-mode .plan-card .plan-meta { color: #94a3b8 !important; }
html.dark-mode .plan-card .plan-progress { background: #334155 !important; }
html.dark-mode .bot-bubble { background: var(--white) !important; border-color: var(--border) !important; color: #e2e8f0 !important; }
html.dark-mode .cp-legend-item { color: #94a3b8 !important; }
html.dark-mode .cp-nav-btn { background: var(--white) !important; border-color: var(--border) !important; color: #cbd5e1 !important; }
html.dark-mode .subj-item { border-color: var(--border) !important; color: #e2e8f0 !important; }
html.dark-mode .subj-item:hover { background: rgba(99,102,241,0.1) !important; }
html.dark-mode .subj-name { color: #f8fafc !important; }
html.dark-mode .subj-topics { color: #94a3b8 !important; }
html.dark-mode .content-area { background: var(--bg-color) !important; border-color: var(--border) !important; color: #e2e8f0 !important; }
html.dark-mode .quiz-q { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .quiz-q p { color: #f8fafc !important; }
html.dark-mode .quiz-opt { border-color: var(--border) !important; color: #cbd5e1 !important; }
html.dark-mode .quiz-opt:hover { background: rgba(99,102,241,0.08) !important; border-color: #6366f1 !important; }
html.dark-mode .day-item { border-color: var(--border) !important; }
html.dark-mode .day-item:hover { background: var(--bg-color) !important; }
html.dark-mode .day-info strong { color: #f8fafc !important; }
html.dark-mode .day-info small { color: #94a3b8 !important; }
html.dark-mode .agenda-empty { background: var(--white) !important; border-color: #475569 !important; }
html.dark-mode .agenda-empty h3 { color: #f8fafc !important; }
html.dark-mode .agenda-empty p { color: #94a3b8 !important; }

/* ── 19. KLASİK SINAV SAYFASI ── */
html.dark-mode .exam-header { background: var(--white) !important; border-bottom-color: var(--border) !important; }
html.dark-mode .timer-badge { background: var(--bg-color) !important; color: #f8fafc !important; }
html.dark-mode .panel { border-right-color: var(--border) !important; background: var(--bg-color) !important; }
html.dark-mode .panel-header { border-bottom-color: var(--border) !important; }
html.dark-mode .content-box { color: #e2e8f0 !important; }
html.dark-mode .content-box strong { color: #f8fafc !important; }
html.dark-mode .content-box td { color: #e2e8f0 !important; border-color: #475569 !important; }
html.dark-mode .content-box tr:nth-child(even) { background: var(--bg-color) !important; }
html.dark-mode .content-box tr:hover { background: rgba(99,102,241,0.1) !important; }
html.dark-mode .answer-wrapper { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .toolbar { background: var(--bg-color) !important; border-bottom-color: var(--border) !important; }
html.dark-mode .tool-btn:hover { background: #334155 !important; color: #f8fafc !important; }
html.dark-mode .textarea-editor { color: #f8fafc !important; background: var(--white) !important; }
html.dark-mode .ai-evaluation-content { background: var(--white) !important; }
html.dark-mode .ai-evaluation-content h3, html.dark-mode .ai-evaluation-content h4 { color: #f8fafc !important; }
html.dark-mode .ai-score-card { background: rgba(99,102,241,0.1) !important; border-color: rgba(99,102,241,0.3) !important; }
html.dark-mode #aiFeedback { background: var(--bg-color) !important; border-color: var(--border) !important; color: #e2e8f0 !important; }
html.dark-mode #aiHintPanel { background: var(--white) !important; border-color: rgba(99,102,241,0.2) !important; }
html.dark-mode .hint-header { border-bottom-color: var(--border) !important; }
html.dark-mode .hint-text { color: #e2e8f0 !important; }
html.dark-mode .close-modal { background: var(--bg-color) !important; color: #94a3b8 !important; }

/* ── 20. SİNAV LİSTESİ CATCHALL ── */
html.dark-mode .x-cat-card { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .x-cat-card h3 { color: #f8fafc !important; }
html.dark-mode .x-exam-card { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .x-exam-card h4 { color: #f8fafc !important; }
html.dark-mode .filter-bar { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .search-input { background: var(--bg-color) !important; border-color: var(--border) !important; color: #f8fafc !important; }

/* ── 21. AI KÜTÜPHANE ÇÖZ & TAHMİN SINAV ÇÖZ ── */
html.dark-mode .aciklama-panel { background: rgba(245,158,11,0.1) !important; border-color: #b45309 !important; color: #fcd34d !important; }
html.dark-mode .m-start { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .m-info-box { background: var(--bg-color) !important; border-color: var(--border) !important; }
html.dark-mode .m-result-wrap { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .m-lb-card { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .m-btni-plan { background: var(--bg-color) !important; border-color: var(--border) !important; color: #e2e8f0 !important; }

/* ── 22. YARISMA LİSTESİ / LOBİ / SONUÇ ── */
html.dark-mode .yarisma-card, html.dark-mode .y-card { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .yarisma-card h3, html.dark-mode .y-card h3 { color: #f8fafc !important; }
html.dark-mode .lobi-card { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .lobi-card h3 { color: #f8fafc !important; }
html.dark-mode .users-list-card { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .sonuc-card { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .icon-yellow { background: rgba(245,158,11,0.15) !important; color: #fbbf24 !important; }
html.dark-mode .empty-card { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .countdown-container { background: var(--white) !important; border-color: var(--border) !important; }

/* ── 23. İLETİŞİM SAYFASI ── */
html.dark-mode .ct-card { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .ct-card h3 { color: #f8fafc !important; }
html.dark-mode .ct-form-card { background: var(--white) !important; border-color: var(--border) !important; }

/* ── 24. SSS SAYFASI ── */
html.dark-mode .sss-cat { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .sss-cat h3 { color: #f8fafc !important; }
html.dark-mode .faq-card { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .faq-card h4, html.dark-mode .faq-card p { color: #e2e8f0 !important; }

/* ── 25. SORU ÜRET / SORU ÜRETİCİ ARAYÜZ ── */
html.dark-mode .v02-container { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .model-selector-group { background: var(--bg-color) !important; border-color: var(--border) !important; }

/* ── 26. ÖĞRETMEN PROFİL ── */
html.dark-mode .profil-card { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .profil-card h3 { color: #f8fafc !important; }
html.dark-mode .ders-kart { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .ders-kart h4 { color: #f8fafc !important; }

/* ── 27. YARDIM MERKEZİ ── */
html.dark-mode .ym-card { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .ym-card h3 { color: #f8fafc !important; }
html.dark-mode .ym-topic { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .ym-topic h4 { color: #f8fafc !important; }

/* ── 28. GİZLİLİK / KVKK / KULLANIM ŞARTLARI ── */
html.dark-mode .legal-card { background: var(--white) !important; border-color: var(--border) !important; color: #e2e8f0 !important; }
html.dark-mode .legal-card h2, html.dark-mode .legal-card h3 { color: #f8fafc !important; }
html.dark-mode .kvkk-right { background: var(--white) !important; border-color: var(--border) !important; }

/* ── 29. AI TAHMİN SONUÇ & TEST ── */
html.dark-mode .ai-kl-card { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .ai-kl-card h3 { color: #f8fafc !important; }

/* ── 30. GEÇMİŞ ANALİZLER ── */
html.dark-mode .analiz-card { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .analiz-card h4 { color: #f8fafc !important; }

/* ── 31. ÇIKMIŞ SORU YÜKLE ── */
html.dark-mode .upload-card { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .upload-card h3 { color: #f8fafc !important; }

/* ── 32. LİDERLİK (DETAY) ── */
html.dark-mode .leaderboard-card { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .leaderboard-header { background: var(--bg-color) !important; border-color: var(--border) !important; }
html.dark-mode .btn-back { background: var(--bg-color) !important; border-color: var(--border) !important; color: #e2e8f0 !important; }

/* ─── YW (Yanlışlarım) SAYFASI — Kapsamlı Dark Mode ── */
html.dark-mode .yw-bar {
  background: #1e293b !important;
  border-color: #334155 !important;
}
html.dark-mode .yw-search input {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}
html.dark-mode .yw-search input:focus { border-color: #ef4444 !important; }
html.dark-mode .btn-outline {
  background: #1e293b !important;
  color: #cbd5e1 !important;
  border-color: #334155 !important;
}
html.dark-mode .btn-outline:hover { border-color: #ef4444 !important; color: #ef4444 !important; }
html.dark-mode .yw-card {
  background: #1e293b !important;
  border-color: #334155 !important;
}
html.dark-mode .yw-card-head:hover { background: rgba(239,71,111,0.1) !important; }
html.dark-mode .yw-card-title h3 { color: #f1f5f9 !important; }
html.dark-mode .yw-card-title small { color: #94a3b8 !important; }
html.dark-mode .yw-qlist {
  background: #0f172a !important;
  border-top-color: #334155 !important;
}
html.dark-mode .yw-q {
  background: #1e293b !important;
  border-color: #334155 !important;
}
html.dark-mode .yw-qtext { color: #e2e8f0 !important; }
html.dark-mode .yw-ans-wrong { background: rgba(239,68,68,0.1) !important; color: #fca5a5 !important; }
html.dark-mode .yw-ans-right { background: rgba(34,197,94,0.1) !important; color: #86efac !important; }
html.dark-mode .yw-explanation {
  background: rgba(59,130,246,0.1) !important;
  border-left-color: #3b82f6 !important;
  color: #93c5fd !important;
}
html.dark-mode .yw-explanation strong { color: #60a5fa !important; }
html.dark-mode .yw-empty {
  background: #1e293b !important;
  border-color: #334155 !important;
}
html.dark-mode .yw-empty h3 { color: #f1f5f9 !important; }
html.dark-mode .yw-empty p { color: #94a3b8 !important; }
html.dark-mode .yw-dist {
  background: #1e293b !important;
  border-color: #334155 !important;
}
html.dark-mode .yw-dist h4 { color: #f1f5f9 !important; }
html.dark-mode .yw-dist-label { color: #cbd5e1 !important; }
html.dark-mode .yw-dist-bar-wrap { background: #334155 !important; }
/* AI Panel */
html.dark-mode .ai-genel {
  background: #1e293b !important;
  border-left-color: #8b5cf6 !important;
}
html.dark-mode .ai-genel p { color: #e2e8f0 !important; }
html.dark-mode .ai-panel-header h3 { color: #f1f5f9 !important; }
html.dark-mode .ai-konu-card {
  background: #1e293b !important;
  border-color: #334155 !important;
}
html.dark-mode .ai-konu-card:hover { border-color: #7c3aed !important; }
html.dark-mode .ai-konu-name { color: #f1f5f9 !important; }
html.dark-mode .ai-konu-ders { color: #94a3b8 !important; }
html.dark-mode .ai-konu-aciklama { color: #cbd5e1 !important; }
html.dark-mode .ai-konu-tavsiye { background: rgba(139,92,246,0.15) !important; color: #c4b5fd !important; }
html.dark-mode .ai-plan {
  background: #1e293b !important;
  border-color: #334155 !important;
}
html.dark-mode .ai-plan-item { border-bottom-color: #334155 !important; }
html.dark-mode .ai-plan-text { color: #e2e8f0 !important; }
html.dark-mode .ai-kl-ders {
  background: #1e293b !important;
  border-color: #334155 !important;
}
html.dark-mode .ai-kl-konular li { color: #e2e8f0 !important; }
/* Yanlis kartı (genel) */
html.dark-mode .yanlis-card { background: var(--white) !important; border-color: var(--border) !important; }
html.dark-mode .yanlis-card h4 { color: #f8fafc !important; }

/* ── 34. TANIMLAMALARI YÖNET ── */
html.dark-mode .tanim-card { background: var(--white) !important; border-color: var(--border) !important; }

/* ── 35. AI MÜLAKAT ── */
html.dark-mode .mulakat-card { background: var(--white) !important; border-color: var(--border) !important; }

/* ── 36. GENEL BODY OVERRIDE (tüm sayfalar) ── */
html.dark-mode body { background: var(--bg-color) !important; color: var(--text-color) !important; }

/* ── 37. GENEL INPUT/SELECT/TEXTAREA ── */
html.dark-mode input[type="text"], html.dark-mode input[type="email"],
html.dark-mode input[type="password"], html.dark-mode input[type="number"],
html.dark-mode input[type="date"], html.dark-mode input[type="time"],
html.dark-mode input[type="search"], html.dark-mode textarea,
html.dark-mode select {
  background: var(--bg-color) !important;
  border-color: var(--border) !important;
  color: #f8fafc !important;
}
html.dark-mode input::placeholder, html.dark-mode textarea::placeholder {
  color: #64748b !important;
}

/* ══════════════════════════════════════════════════════════════════
   ── 38. KAPSAMLI SAYFA WRAPPER OVERRIDE —
   Sayfaların kendi <style> bloğundaki hardcoded beyaz arka planlar
   ══════════════════════════════════════════════════════════════════ */

/* Ana sayfa kapsayıcıları — tüm sayfalarda ortak wrapper'lar */
html.dark-mode section,
html.dark-mode article,
html.dark-mode main,
html.dark-mode [class*="page-wrap"],
html.dark-mode [class*="page-body"],
html.dark-mode [class*="page-bg"],
html.dark-mode [class*="-page"],
html.dark-mode [class*="wrap-bg"],
html.dark-mode [class*="container-bg"],
html.dark-mode [class*="bg-white"],
html.dark-mode [class*="bg-light"] {
  background-color: var(--bg-color) !important;
  color: var(--text-color) !important;
}

/* Sayfanın kendi <style> bloğunda tanımlanmış beyaz body ve section arka planları için
   CSS custom property override — sayfadaki yerel --bg ve --surface değişkenlerini ezip geçer */
html.dark-mode {
  /* Genel açık ton renklerin tümü dark renge dönüşür */
  --bg: #0f172a !important;
  --surface: #1e293b !important;
  --surface2: #0f172a !important;
  --page-bg: #0f172a !important;
  --body-bg: #0f172a !important;
  --light-bg: #0f172a !important;
  --card-surface: #1e293b !important;
  --section-bg: #0f172a !important;
}

/* Inline style ile background-color: white verilenler (section/article/div fark etmeksizin) */
html.dark-mode *[style*="background-color: white"],
html.dark-mode *[style*="background-color:white"],
html.dark-mode *[style*="background-color: #fff"],
html.dark-mode *[style*="background-color:#fff"],
html.dark-mode *[style*="background-color: #ffffff"],
html.dark-mode *[style*="background-color:#ffffff"],
html.dark-mode *[style*="background-color: #f8fafc"],
html.dark-mode *[style*="background-color:#f8fafc"],
html.dark-mode *[style*="background-color: #f1f5f9"],
html.dark-mode *[style*="background-color:#f1f5f9"],
html.dark-mode *[style*="background-color: #f4f7fe"],
html.dark-mode *[style*="background-color:#f4f7fe"],
html.dark-mode *[style*="background-color: #f9fafb"],
html.dark-mode *[style*="background-color:#f9fafb"],
html.dark-mode *[style*="background-color: #fafafa"],
html.dark-mode *[style*="background-color:#fafafa"] {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

/* background shorthand ile tüm tag'ler (div yanı sıra span, p dahil) */
html.dark-mode *[style*="background: white"],
html.dark-mode *[style*="background:white"],
html.dark-mode *[style*="background: #fff"],
html.dark-mode *[style*="background:#fff"],
html.dark-mode *[style*="background: #ffffff"],
html.dark-mode *[style*="background:#ffffff"],
html.dark-mode *[style*="background: #f8fafc"],
html.dark-mode *[style*="background:#f8fafc"],
html.dark-mode *[style*="background: #f9fafb"],
html.dark-mode *[style*="background:#f9fafb"],
html.dark-mode *[style*="background: #fafafa"],
html.dark-mode *[style*="background:#fafafa"],
html.dark-mode *[style*="background: #f4f7fe"],
html.dark-mode *[style*="background:#f4f7fe"] {
  background: #1e293b !important;
  border-color: #334155 !important;
}

/* f1f5f9 için daha koyu bir ton (input track, zebra vb.) */
html.dark-mode *[style*="background: #f1f5f9"],
html.dark-mode *[style*="background:#f1f5f9"],
html.dark-mode *[style*="background-color: #f1f5f9"],
html.dark-mode *[style*="background-color:#f1f5f9"] {
  background: #334155 !important;
}

/* Inline color: dark → light dönüşümü (tüm tag tipleri) */
html.dark-mode *[style*="color: #0f172a"],
html.dark-mode *[style*="color:#0f172a"],
html.dark-mode *[style*="color: #1e293b"],
html.dark-mode *[style*="color:#1e293b"],
html.dark-mode *[style*="color: #111827"],
html.dark-mode *[style*="color:#111827"],
html.dark-mode *[style*="color: #1f2937"],
html.dark-mode *[style*="color:#1f2937"] {
  color: #f1f5f9 !important;
}

html.dark-mode *[style*="color: #334155"],
html.dark-mode *[style*="color:#334155"],
html.dark-mode *[style*="color: #374151"],
html.dark-mode *[style*="color:#374151"] {
  color: #cbd5e1 !important;
}

html.dark-mode *[style*="color: #64748b"],
html.dark-mode *[style*="color:#64748b"],
html.dark-mode *[style*="color: #475569"],
html.dark-mode *[style*="color:#475569"],
html.dark-mode *[style*="color: #6b7280"],
html.dark-mode *[style*="color:#6b7280"],
html.dark-mode *[style*="color: #4b5563"],
html.dark-mode *[style*="color:#4b5563"] {
  color: #94a3b8 !important;
}

/* Border renkleri */
html.dark-mode *[style*="border-color: #e2e8f0"],
html.dark-mode *[style*="border-color:#e2e8f0"],
html.dark-mode *[style*="border-color: #e5e7eb"],
html.dark-mode *[style*="border-color:#e5e7eb"],
html.dark-mode *[style*="border-color: #d1d5db"],
html.dark-mode *[style*="border-color:#d1d5db"],
html.dark-mode *[style*="border: 1px solid #e2e8f0"],
html.dark-mode *[style*="border:1px solid #e2e8f0"],
html.dark-mode *[style*="border: 1px solid #e5e7eb"],
html.dark-mode *[style*="border:1px solid #e5e7eb"],
html.dark-mode *[style*="border-bottom: 1px solid #eee"],
html.dark-mode *[style*="border-bottom:1px solid #eee"],
html.dark-mode *[style*="border-bottom: 1px solid #e2e8f0"],
html.dark-mode *[style*="border-top: 1px solid #e2e8f0"],
html.dark-mode *[style*="border-top:1px solid #e2e8f0"] {
  border-color: #334155 !important;
}


*  {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overscroll-behavior-y: none;
    /* Pull-to-refresh'i engelle (Native hissi için) */
    -webkit-tap-highlight-color: transparent;
    /* Tıklama vurgusunu kaldır */
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    /* Native App gibi hissetmesi için seçimleri kapat */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Çentikli telefonlar için güvenli alan */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* Form elemanlarında seçimi ve kopyalamayı tekrar aç */
input,
textarea,
[contenteditable] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-normal);
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
}

/* === HEADER (Üst Çubuk) === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    /* Increased z-index */
    display: flex;
    justify-content: space-between;
    /* Ensure logo and user info are pushed to edges */
    align-items: center;
    padding: 0 40px;
    /* More breathing room */
    transition: all var(--transition-normal);
    backdrop-filter: blur(16px);
    /* Stronger blur */
    -webkit-backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.85);
    /* Slightly more transparent */
}

/* LOGO */
.logo-panel {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--ai-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

/* NAV LİNKLERİ (Masaüstü) */
.nav-link-container {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center navigation */
    flex-grow: 1;
    gap: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    color: var(--gray);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    /* Pill shape */
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.nav-link i {
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(67, 97, 238, 0.05);
    /* Very subtle hover bg */
}

.nav-link:hover i {
    transform: translateY(-2px);
}

.nav-link.active {
    background: var(--primary);
    /* Solid primary color */
    color: var(--white);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
    /* Glow effect */
}

.nav-link.active i {
    color: var(--white);
    transform: none;
}

/* --- DROPDOWN MENU STYLES (Desktop) --- */
.nav-group {
    position: relative;
    padding: 10px 0;
    /* Create hover bridge */
}

.nav-group-title {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    /* Reduced specific padding */
    color: var(--gray);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 50px;
}

.nav-group:hover .nav-group-title {
    color: var(--primary);
    background: rgba(67, 97, 238, 0.05);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
}

.nav-group:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu .nav-link {
    border-radius: 8px;
    /* Square edges inside dropdown */
    margin-bottom: 2px;
    padding: 10px 15px;
    width: 100%;
    justify-content: flex-start;
    /* Left align items */
}

/* Özel Buton Boyutlandırmaları (Küçültme) */
.nav-link.active {
    padding: 8px 16px !important;
    /* Smaller active button */
}

.btn-sidebar-cikis {
    padding: 8px 16px !important;
    font-size: 0.9rem !important;
    margin-top: 0 !important;
    /* Reset margin */
}

/* Kullanıcı Bilgileri - Sağ Üst */
.user-info-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    flex-shrink: 0;
}

.credit-badge {
    background: linear-gradient(135deg, var(--warning) 0%, #fbbf24 100%);
    color: var(--dark);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
    transition: all var(--transition-normal);
}

.credit-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

.credit-badge.zero-credit {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: var(--white);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.user-avatar {
    width: 42px;
    height: 42px;
    background: var(--ai-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    border: 3px solid var(--white);
    cursor: pointer;
    transition: all var(--transition-normal);
}

body.dark-mode .user-avatar {
    border: 3px solid var(--dark-light);
}

.user-welcome {
    display: flex;
    flex-direction: column;
}

.user-welcome span:first-child {
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-welcome strong {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

/* Hamburger Butonu */
.hamburger-btn {
    display: none;
    width: 44px;
    height: 44px;
    background: var(--ai-gradient);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 15px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1001;
}

.hamburger-btn.open i.fa-bars {
    display: none;
}

.hamburger-btn.open i.fa-times {
    display: inline-block;
}

.hamburger-btn i.fa-times {
    display: none;
}

/* Ana İçerik Alanı */
.content-container {
    margin-top: var(--header-height);
    padding: 15px 35px 40px 35px;
    min-height: calc(100vh - var(--header-height));
    width: 100%;
}

/* Yükleniyor Ekranı */
#loadingScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--loading-bg);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 99999;
    backdrop-filter: blur(10px);
}

#loadingScreen .loader {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--ai-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

#loadingScreen .loading-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #8b5cf6 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === BUTONLAR === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-ai {
    background: var(--ai-gradient);
    color: var(--white);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(247, 37, 133, 0.3);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(247, 37, 133, 0.4);
}

.btn-lg {
    padding: 15px 32px;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 10px 22px;
    font-size: 0.9rem;
}

/* Danger Button */
.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #d90429 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 71, 111, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 71, 111, 0.4);
}

/* === FORM ELEMANLARI === */
.form-control {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--dark);
    transition: var(--transition-normal);
    background-color: var(--white);
    margin-bottom: 15px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.2);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-light);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* === EKSTRA BİLEŞENLER (Dashboard) === */
.dashboard-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 40px;
    border-radius: 16px;
    color: white;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(67, 97, 238, 0.2);
}

.dashboard-header h2 {
    margin: 0 0 10px 0;
    font-size: 2rem;
}

.dashboard-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #f0f0f0;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.bg-blue {
    background: #eef2ff;
    color: var(--primary);
}

.bg-green {
    background: #e6fcf5;
    color: var(--ai-color);
}

.bg-orange {
    background: #fff4e6;
    color: #ff922b;
}

.bg-purple {
    background: #f3f0ff;
    color: #845ef7;
}

.quick-btn {
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    background: white;
    color: var(--dark);
    margin-bottom: 10px;
}

.btn-create {
    background: linear-gradient(45deg, var(--ai-color) 0%, #059669 100%);
    color: white;
}


/* Content Box (Kart Yapısı) */
.content-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--gray-light);
    transition: var(--transition-normal);
}

.content-box:hover {
    box-shadow: var(--shadow-md);
}

.content-box h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--dark);
    border-bottom: 2px solid var(--gray-light);
    padding-bottom: 15px;
}

/* Tablolar */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.results-table th,
.results-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
}

.results-table th {
    font-weight: 700;
    color: var(--dark);
    background: var(--light);
}

.results-table tr:hover {
    background: var(--link-hover-bg);
}

/* Success Alert */
.alert {
    padding: 15px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: var(--success-light);
    color: #059669;
    border: 1px solid #d1fae5;
}

.alert-danger {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid #fecaca;
}


/* === LANDING PAGE STYLES (Ana Sayfa) === */
.page-header {
    background: var(--white);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--dark);
}

.logo-icon {
    font-size: 1.8rem;
}

.main-menu {
    display: flex;
    gap: 30px;
}

.main-menu .nav-link {
    color: var(--dark-light);
    font-weight: 500;
    font-size: 1rem;
    background: none;
    box-shadow: none;
    padding: 0;
}

.main-menu .nav-link:hover {
    color: var(--primary);
    background: none;
}

.auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.hamburger-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.mobile-menu a {
    padding: 15px;
    border-bottom: 1px solid var(--gray-light);
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    padding-top: 150px;
    padding-bottom: 100px;
    background: radial-gradient(circle at top right, rgba(67, 97, 238, 0.1), transparent 40%),
        radial-gradient(circle at bottom left, rgba(6, 214, 160, 0.1), transparent 40%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--dark);
}

.hero-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    height: 500px;
    background-image: url('https://img.freepik.com/free-vector/online-test-concept-illustration_114360-5474.jpg?w=826&t=st=1709669678~exp=1709670278~hmac=621720875c786522778732560389363717522076063468875638202273685028');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: float 6s ease-in-out infinite;
    z-index: 2;
    min-width: 200px;
}

.card-icon {
    width: 45px;
    height: 45px;
    background: var(--ai-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Features */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card,
.step-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--gray-light);
    position: relative;
    overflow: hidden;
}

.feature-card:hover,
.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-icon-lg {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 25px;
}

.feature-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.feature-description {
    color: var(--gray);
    line-height: 1.7;
}

.step-number {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 20px;
    font-size: 3rem;
    font-weight: 800;
    opacity: 0.3;
}

/* CTA Section */
.cta-section {
    background: var(--dark);
    padding: 100px 0;
    text-align: center;
    color: white;
    margin-top: 50px;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.cta-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-footer {
    background: #111;
    color: #888;
    padding: 40px 0;
    text-align: center;
}

/* (Auth styles moved to unified section below) */


/* === RESPONSIVE DÜZENLEMELER === */

/* Tablet ve Altı (GÜNCELLENDİ: Laptoplarda da hamburger görünsün diye 1366px yapıldı) */
@media (max-width: 1366px) {
    .header {
        height: var(--mobile-header-height);
        padding: 0 20px;
        /* Adjusted mobile padding */
        background: rgba(255, 255, 255, 0.95);
        /* Less transparent on mobile for readibility */
    }

    .content-container {
        margin-top: var(--mobile-header-height);
        padding: 10px 15px 40px 15px;
    }

    /* Mobil Menü */
    .nav-link-container {
        display: none;
        position: fixed;
        top: var(--mobile-header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--mobile-header-height));
        background: rgba(255, 255, 255, 0.98);
        /* Less transparent mobile menu */
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        transform: translateY(-100%);
        transition: transform var(--transition-normal);
        z-index: 998;
        overflow-y: auto;
        margin-left: 0;
    }

    .nav-link-container.open {
        display: flex;
        transform: translateY(0);
    }

    /* Mobil Menüdeki Dropdown Davranışı (Flat List) */
    .nav-group {
        display: block;
        width: 100%;
        padding: 0;
    }

    .nav-group-title {
        display: none;
        /* Mobilde grup başlığını gizle, direkt linkleri göster veya başlık yap */
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
        border: none;
        backdrop-filter: none;
        min-width: auto;
    }

    .dropdown-menu .nav-link {
        border-radius: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        margin: 0;
        padding: 15px;
        /* Mobilde geniş tıklama alanı */
    }

    .nav-link {
        width: 100%;
        margin: 0;
        padding: 15px;
        font-size: 1.1rem;
        /* Mobilde daha büyük yazı */
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 0;
        /* Mobilde kare olsun */
        justify-content: flex-start;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .hamburger-btn {
        display: flex;
        order: -1;
    }

    .logo-panel {
        margin-left: 10px;
        flex-grow: 1;
    }

    .user-welcome {
        display: none;
    }

    .credit-badge span {
        display: none;
    }

    .credit-badge {
        padding: 8px 10px;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
    }

    /* Grid Sistemleri Mobilde Tek Kolon */
    .dashboard-main {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .row {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    /* Mobilde tek kolon */

    /* Formlar Mobilde Tam Genişlik */
    .form-group {
        width: 100%;
        margin-bottom: 20px;
    }

    select.form-control {
        width: 100%;
    }

    /* Landing Page Responsive */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        margin: 0 auto 30px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    /* Mobilde görseli gizle */
    .main-menu {
        display: none;
    }

    /* Masaüstü menüyü gizle */
    .hamburger-menu {
        display: block;
    }

    /* Mobil menü ikonunu aç */
}

/* Telefon */
@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Kartlar Mobilde Daha Kompakt */
    .content-box {
        padding: 20px;
    }

    .dashboard-header {
        padding: 25px;
    }

    .dashboard-header h2 {
        font-size: 1.5rem;
    }

    /* Butonlar Mobilde Tam Genişlik */
    .btn,
    .quick-btn {
        width: 100%;
        justify-content: center;
    }

    /* Login/Register */
    .login-container,
    .register-container {
        padding: 20px;
    }

    /* Alert İkonu Küçültme */
    .definition-alert div:first-child {
        font-size: 2rem !important;
    }
}

/* Masaüstünde Menüyü Göster */
@media (min-width: 1367px) {
    .nav-link-container {
        display: flex !important;
        transform: translateY(0) !important;
    }
}

/* Mobil Kapat Butonu */
.mobil-kapat-btn {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--danger);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1002;
    transition: transform 0.3s ease;
}

.mobil-kapat-btn:hover {
    transform: rotate(90deg);
}

@media (max-width: 1366px) {
    .mobil-kapat-btn {
        display: block;
    }
}

/* ==========================================================================
   CSS REFACTORING - UNIFIED STYLES (Added via Refactoring)
   ========================================================================== */

/* --- AUTH PAGES – PREMIUM DARK SPLIT-PANEL (V2) --- */

/* ── Background ── */
.auth-page-body {
    background: #0a0a12;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}
.auth-page-body::before,
.auth-page-body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
}
.auth-page-body::before {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(67,97,238,0.25) 0%, transparent 70%);
    top: -180px; left: -120px;
    animation: authBlobA 18s ease-in-out infinite alternate;
}
.auth-page-body::after {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(114,9,183,0.2) 0%, transparent 70%);
    bottom: -200px; right: -150px;
    animation: authBlobB 20s ease-in-out infinite alternate;
}
@keyframes authBlobA { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(60px,40px) scale(1.15)} }
@keyframes authBlobB { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(-50px,-30px) scale(1.1)} }

/* ── Split-Panel Card ── */
.login-container {
    display: flex;
    width: 100%;
    max-width: 920px;
    min-height: 520px;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    background: rgba(20,20,30,0.7);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.06);
    animation: authCardIn 0.6s cubic-bezier(0.25,1,0.5,1);
}
@keyframes authCardIn { from{opacity:0;transform:translateY(30px) scale(0.97)} to{opacity:1;transform:translateY(0) scale(1)} }

/* ── Left Decorative Panel ── */
.auth-brand-panel {
    width: 340px;
    min-width: 340px;
    background: linear-gradient(160deg, #4361ee 0%, #7209b7 50%, #f72585 100%);
    background-size: 200% 200%;
    animation: authGradFlow 12s ease infinite;
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
@keyframes authGradFlow { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
.auth-brand-panel::before {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    top: -80px; right: -80px;
    animation: authDecorPulse 8s ease-in-out infinite alternate;
}
.auth-brand-panel::after {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    bottom: -60px; left: -40px;
    animation: authDecorPulse 10s ease-in-out infinite alternate-reverse;
}
@keyframes authDecorPulse { 0%{transform:scale(1)} 100%{transform:scale(1.2)} }

.auth-brand-logo {
    width: 60px; height: 60px;
    border-radius: 18px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 28px;
    border: 1px solid rgba(255,255,255,0.25);
    position: relative;
    z-index: 1;
}
.auth-brand-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}
.auth-brand-subtitle {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin: 0 0 32px;
    position: relative;
    z-index: 1;
}
.auth-brand-features {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}
.auth-brand-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 14px;
}
.auth-brand-features li i {
    width: 32px; height: 32px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ── Right Form Panel ── */
.auth-form-panel {
    flex: 1;
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

/* ── Header ── */
.card-header-auth {
    text-align: left;
    margin-bottom: 28px;
}
.auth-logo-wrap { display: none; }
.auth-logo-icon { display: none; }
.card-title-auth {
    font-size: 1.65rem;
    font-weight: 800;
    color: #fff !important;
    margin: 0 0 6px;
    text-align: left;
    letter-spacing: -0.02em;
}
.card-subtitle-auth {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.45) !important;
    text-align: left;
    margin: 0;
}

/* ── Alerts ── */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    animation: authAlertIn 0.35s ease;
}
@keyframes authAlertIn { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }
.auth-alert-danger {
    background: rgba(239,71,111,0.12);
    color: #fca5a5;
    border: 1px solid rgba(239,71,111,0.2);
}
.auth-alert-success {
    background: rgba(6,214,160,0.12);
    color: #6ee7b7;
    border: 1px solid rgba(6,214,160,0.2);
}

/* ── HORIZONTAL Form Grid ── */
.auth-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group-full {
    grid-column: 1 / -1;
}

/* ── Form Elements ── */
.form-group {
    position: relative;
    margin-bottom: 0;
}
.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: rgba(255,255,255,0.55) !important;
    font-size: 0.76rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.input-wrapper {
    position: relative;
    width: 100%;
}
.form-control {
    width: 100%;
    padding: 12px 14px 12px 42px;
    height: 48px;
    font-size: 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.25);
    transition: all 0.25s ease;
    box-sizing: border-box;
    color: #fff;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}
.form-control::placeholder {
    color: rgba(255,255,255,0.3);
}
.form-control:focus {
    background: rgba(0,0,0,0.4);
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67,97,238,0.2);
    outline: none;
}
.form-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #71717a;
    font-size: 1rem;
    pointer-events: none;
    z-index: 5;
    transition: color 0.3s;
}
.form-control:focus ~ .form-icon,
.form-control:focus + .form-icon {
    color: #4361ee;
}
.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #71717a;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 5;
}
.toggle-password:hover {
    color: #fff;
}

/* ── Submit Button ── */
.btn-primary-auth {
    background: linear-gradient(135deg, #4361ee 0%, #7209b7 100%);
    color: #fff !important;
    font-size: 0.95rem;
    font-weight: 800;
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.25,1,0.5,1);
    box-shadow: 0 4px 16px rgba(67,97,238,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-primary-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(67,97,238,0.5);
}
.btn-primary-auth:active {
    transform: translateY(1px);
}

/* ── Google OAuth Button ── */
.google-oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff !important;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.22s ease;
    font-family: 'Inter', sans-serif;
    margin-top: 0;
}
.google-oauth-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: #fff !important;
}

/* ── Separator ── */
.separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: #52525b;
    font-size: 0.82rem;
    font-weight: 600;
    margin: 18px 0;
}
.separator::before, .separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin: 0 14px;
}

/* ── Links ── */
.alt-link {
    display: block;
    text-align: center;
    color: rgba(255,255,255,0.45) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 14px;
    transition: color 0.2s;
}
.alt-link:hover {
    color: #fff !important;
}
.auth-page-body a {
    color: #818cf8 !important;
    text-decoration: none;
    transition: color 0.2s;
}
.auth-page-body a:hover {
    color: #a5b4fc !important;
}

/* ── Bottom Links ── */
.auth-bottom-links {
    text-align: center;
    margin-top: 20px;
}
.auth-bottom-links p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.4);
    margin: 0;
}
.auth-bottom-links a {
    color: #818cf8 !important;
    font-weight: 700;
    text-decoration: none;
}
.auth-bottom-links a:hover {
    color: #a5b4fc !important;
}

/* ── Teacher Portal Button ── */
.auth-teacher-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding: 12px 18px;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.6) !important;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.25s ease;
    border: 1px solid rgba(255,255,255,0.08);
}
.auth-teacher-btn i {
    color: #a78bfa;
    font-size: 1rem;
}
.auth-teacher-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff !important;
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-1px);
}

/* ── Honeypot ── */
.bostuzak {
    display: none;
    visibility: hidden;
    position: absolute;
    left: -9999px;
}
.bostuzak-wrapper {
    display: none !important;
}

/* ── Auth Card Logo (hidden in split mode) ── */
.logo-area, .card-icon-auth {
    display: none;
}

/* ── Responsive: Tablet & Below ── */
@media (max-width: 900px) {
    .auth-brand-panel {
        display: none;
    }
    .login-container {
        max-width: 480px;
        border-radius: 24px;
    }
    .auth-form-panel {
        padding: 36px 28px;
    }
    .card-header-auth {
        text-align: center;
    }
    .card-title-auth {
        text-align: center;
    }
    .card-subtitle-auth {
        text-align: center;
    }
    .auth-logo-wrap {
        display: flex;
        justify-content: center;
        margin-bottom: 16px;
    }
    .auth-logo-icon {
        display: flex;
        width: 58px; height: 58px;
        border-radius: 18px;
        background: linear-gradient(135deg, #4361ee, #7209b7);
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        color: #fff;
        box-shadow: 0 8px 24px rgba(67,97,238,0.4);
    }
}

/* ── Responsive: Small Mobile ── */
@media (max-width: 480px) {
    .auth-page-body {
        padding: 12px;
    }
    .login-container {
        border-radius: 20px;
        max-width: 100%;
    }
    .auth-form-panel {
        padding: 28px 20px;
    }
    .auth-form-grid {
        grid-template-columns: 1fr;
    }
    .card-title-auth { font-size: 1.3rem !important; }
    .card-subtitle-auth { font-size: 0.82rem !important; }
    .btn-primary-auth { height: 48px; font-size: 0.9rem; }
    .form-control { height: 46px; font-size: 0.85rem; }
    .auth-teacher-btn { padding: 11px 14px; font-size: 0.82rem; }
}

/* --- PROFILE / DASHBOARD (profil.php) --- */
:root {
    /* Additional vars from profil.php if not already present */
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --secondary-gradient: linear-gradient(135deg, #3b82f6 0%, #2dd4bf 100%);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 20px 40px -5px rgba(99, 102, 241, 0.15);
}

.dashboard-container {
    padding: 40px 20px;
    max-width: 1280px;
    margin: 0 auto;
}

/* 🚀 1. CANLI, HAREKETLİ VE NEFES ALAN HERO ALANI (V8 PREMIUM) */
.hero-profile {
    border-radius: 28px;
    padding: 50px;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
    background-size: 250% 250%;
    animation: gradientFlow 15s ease infinite;
    box-shadow: 0 25px 60px -15px rgba(124, 58, 237, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-profile::before,
.hero-profile::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    animation: blobMorph 10s infinite alternate;
}

.hero-profile::before {
    top: -150px;
    right: -100px;
    width: 450px;
    height: 450px;
    background: rgba(255, 255, 255, 0.25);
}

.hero-profile::after {
    bottom: -150px;
    left: -100px;
    width: 350px;
    height: 350px;
    background: rgba(99, 102, 241, 0.3);
    animation-delay: 2s;
}

@keyframes blobMorph {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-20px, 20px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.user-welcome h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.user-welcome p {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 400;
}

.date-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

/* 💎 2. HOLOGRAFİK İSTATİSTİK KARTLARI (İÇTEN IŞIKLI) */
.stat-glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: white;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.stat-glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.stat-glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15), inset 0 0 20px rgba(255,255,255,0.2);
    border-color: rgba(255, 255, 255, 0.8);
}

.stat-glass-card:hover::before {
    left: 200%;
}

.stat-icon-box {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.stat-info span {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}

.stat-info strong {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section-title {
    color: var(--gray-800);
    font-weight: 800;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    position: relative;
    padding-left: 20px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    height: 80%;
    width: 6px;
    background: linear-gradient(to bottom, #7c3aed, #ec4899);
    border-radius: 6px;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* 🕹️ 3. BENTO UI MODÜL KARTLARI (3D HOVER EFEKTİ) */
.module-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    z-index: 1;
}

.module-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.module-card:hover {
    transform: translateY(-10px) scale(1.02) perspective(1000px) rotateX(2deg);
    box-shadow: 0 30px 60px -10px rgba(99, 102, 241, 0.2), 0 0 20px rgba(99, 102, 241, 0.1);
    background: rgba(255, 255, 255, 1);
}

.module-icon {
    width: 65px;
    height: 65px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 25px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
    position: relative;
}

.module-icon::before {
    content: '';
    position: absolute;
    inset: -5px;
    background: inherit;
    filter: blur(15px);
    opacity: 0.6;
    z-index: -1;
    border-radius: 25px;
    transition: opacity 0.3s ease;
}

.module-card:hover .module-icon {
    transform: translateY(-8px) scale(1.15) rotate(8deg);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.15);
}

.module-card:hover .module-icon::before {
    opacity: 1;
    filter: blur(20px);
}

.module-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    transition: color 0.3s;
}

.module-card:hover .module-title {
    color: #4f46e5;
}

.module-desc {
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

.locked-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
}

.lock-badge {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- ADMIN PANEL (Sidebar Layout) --- */
:root {
    --sidebar-width: 260px;
    --topbar-height: 70px;
    --sidebar-bg: #1e293b;
    --sidebar-color: #94a3b8;
    --sidebar-active-bg: #4361ee;
    --sidebar-active-color: #ffffff;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background: #f1f5f9;
}

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-color);
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    padding: 0 25px;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-header i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 1.4rem;
}

.sidebar-menu {
    padding: 20px 0;
    overflow-y: auto;
    flex: 1;
}

.sidebar-menu-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 25px;
    margin-top: 10px;
    opacity: 0.6;
    font-weight: 600;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: var(--sidebar-color);
    text-decoration: none;
    transition: 0.2s;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-link.active {
    color: var(--sidebar-active-color);
    background: rgba(67, 97, 238, 0.1);
    border-left-color: var(--sidebar-active-bg);
}

.sidebar-link i {
    width: 25px;
    font-size: 1.1rem;
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* Prevent overflow */
}

/* TOPBAR */
.admin-topbar {
    height: var(--topbar-height);
    background: white;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 4px 15px -5px rgba(0, 0, 0, 0.03);
}

.topbar-title h2 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--dark);
    font-weight: 600;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-content-area {
    padding: 30px;
}

/* Responsive Sidebar */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .admin-mobile-toggle {
        display: block;
    }
}

/* --- Old Admin Styles Reset/Preserve --- */
.main-container-admin {
    /* Deprecated, mapped to .admin-content-area */
    padding: 0;
    margin: 0;
    max-width: 100%;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.action-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    text-decoration: none;
    color: var(--dark);
    border: 1px solid var(--border-color, #e2e8f0);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.badge-counter {
    background: var(--danger);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    position: absolute;
    top: 10px;
    right: 10px;
}

.section-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    overflow: hidden;
}

.section-header-admin {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fcfcfc;
}

/* Modal Styles */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--radius-md);
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: slideUp 0.3s ease;
    margin: auto;
    /* Center horizontally if flex fails */
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary);
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--danger);
}

.action-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    text-decoration: none;
    color: var(--dark);
    border: 1px solid var(--border-color, #e2e8f0);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.badge-counter {
    background: var(--danger);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    position: absolute;
    top: 10px;
    right: 10px;
}

.section-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    overflow: hidden;
}

.section-header-admin {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fcfcfc;
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th {
    background: #f8fafc;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--secondary);
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    color: var(--dark);
}

.admin-table tr:hover td {
    background: #f8fafc;
}

/* Badges (General usage) */
.badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #e0f2fe;
    color: #075985;
}

.badge-primary {
    background: #e0e7ff;
    color: #3730a3;
}

/* Buttons (General usage) */
.btn {
    border: none;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: opacity 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn:hover {
    opacity: 0.9;
}

.btn-sm {
    font-size: 0.8rem;
    padding: 4px 10px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-site {
    background: var(--light);
    color: var(--dark);
}

.btn-logout {
    background: #fee2e2;
    color: var(--danger);
}

/* --- EXAM LIST (sinav_listesi.php) --- */
.faculty-section {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 40px;
    border: 1px solid var(--gray-light);
    overflow: hidden;
}

.faculty-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.faculty-icon {
    font-size: 1.8rem;
    opacity: 0.9;
}

.faculty-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
}

.dept-section {
    padding: 20px 25px;
    border-bottom: 1px solid var(--gray-light);
}

.dept-section:last-child {
    border-bottom: none;
}

.dept-title {
    font-size: 1.2rem;
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dept-title i {
    color: var(--secondary);
}

.lesson-group {
    margin-left: 15px;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 3px solid var(--gray-light);
}

.lesson-title {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.exam-card {
    background: var(--light);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 20px;
    transition: var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
}

.exam-card:hover {
    background: var(--white);
    border-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.70rem;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-admin-card {
    background: #ffedd5;
    color: #c2410c;
    border: 1px solid #fdba74;
}

.badge-ai-card {
    background: #d1fae5;
    color: #065f46;
}

.badge-user-card {
    background: #e0e7ff;
    color: #3730a3;
}

.exam-name {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.4;
    padding-right: 70px;
}

.exam-info {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-start {
    margin-top: auto;
    width: 100%;
    text-align: center;
    padding: 10px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-start:hover {
    background: var(--primary-dark);
}

.btn-start.btn-ai {
    background: var(--ai-color);
}

.btn-start.btn-ai:hover {
    background: var(--ai-dark);
}

.btn-start.btn-admin {
    background: #ea580c;
}

.btn-start.btn-admin:hover {
    background: #c2410c;
}

/* =========================================================
   PWA & NATIVE MOBILE APP UX OPTIMIZASYONLARI
========================================================= */

/* 1. Global Dokunmatik Optimizasyonlar */
* {
    -webkit-tap-highlight-color: transparent !important; /* Mavi tıklama gölgelerini kapatır */
}

/* Mobil cihazlarda uzun basılı tutunca metin seçimini kapatır (sadece okuma/butonlar) */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    overscroll-behavior-y: none; /* Sayfanın refresh için esnemesini engeller (bounce effect) */
}

/* Metinlerin kopyalanmasına izin verilen yerler */
p, h1, h2, h3, h4, span, div, input, textarea, .selectable-text {
    -webkit-user-select: auto;
    user-select: auto;
}

/* Tıklanabilen nesnelerde seçilebilirlik kapalı kalsın */
button, .btn, a, .card, .mobile-bottom-nav {
    -webkit-user-select: none !important;
    user-select: none !important;
}

/* Buton ve Linklere Native Basma Hissi (Active State) */
button:active, .btn:active, a:active, .card:active {
    transform: scale(0.98);
    opacity: 0.9;
    transition: transform 0.05s ease, opacity 0.05s ease;
}

/* 2. Bottom Navigation Bar (Mobil Alt Menü) */
.mobile-bottom-nav {
    display: none; /* Masaüstünde gizli */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    z-index: 9999;
    padding-bottom: env(safe-area-inset-bottom); /* iPhone çentik boşluğu */
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

body.dark-mode .mobile-bottom-nav {
    background: rgba(26, 26, 46, 0.95);
    border-top: 1px solid #333;
}

.mobile-bottom-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 10px;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--gray);
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    transition: color 0.2s;
    height: 100%;
}

.nav-item i {
    font-size: 1.25rem;
    margin-bottom: 3px;
    transition: transform 0.2s, color 0.2s;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active i {
    transform: translateY(-2px);
}

body.dark-mode .nav-item.active {
    color: var(--ai-color);
}

/* 3. Bottom Sheet (Alttan Kayarak Açılan Modallar) */
@media (max-width: 768px) {
    /* Alt menü olduğu için sayfanın altına boşluk bırakıyoruz */
    body {
        padding-bottom: calc(60px + env(safe-area-inset-bottom)) !important;
    }

    /* Mobilde Bottom Nav Göster */
    .mobile-bottom-nav {
        display: block;
    }

    /* Üst Hamburger Menü İkonunu Gizle (Çünkü menü butonunu alta taşıdık) */
    .hamburger-btn {
        display: none !important;
    }

    /* Modalları Native Bottom Sheet Görüntüsüne Çevir */
    .modal {
        align-items: flex-end; /* En alta hizala */
        padding: 0;
    }

    .modal-icerik {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 20px 20px 0 0; /* Sadece üst köşeler yuvarlak */
        max-height: 90vh; /* Ekranın %90'ını kaplasın */
        height: 90vh;
        animation: slideUp 0.3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
        overflow-y: auto;
        padding-top: 25px; /* Handle çizgisi için yer */
        position: relative;
    }

    /* Modal Üstünde Swipe Tutamaçı (Handle) Temsili */
    .modal-icerik::before {
        content: '';
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 5px;
        background: var(--gray-light);
        border-radius: 10px;
    }

    body.dark-mode .modal-icerik::before {
        background: #555;
    }

    @keyframes slideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
}
