/* ═══════════════════════════════════════════════════════════════
   Sentro Destek Portalı — Sentro ERP Tasarım Dili (Açık Tema)
   Renkler lib/app_colors.dart ile birebir aynıdır.
   ═══════════════════════════════════════════════════════════════ */

:root {
    --primary-dark: #1E293B;
    --primary-blue: #3B82F6;
    --primary-blue-hover: #2563EB;
    --primary-rgb: 59, 130, 246;
    --header-bg: rgba(255, 255, 255, 0.92);
    --hero-top: #FFFFFF;
    --bg-dark: #0F172A;
    --bg-card: #FFFFFF;
    --bg-hover: #F1F5F9;
    --bg-muted: #F8FAFC;
    --bg-selected: #EFF6FF;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --border-dark: #CBD5E1;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --success: #10B981;
    --success-light: #ECFDF5;
    --warning: #F59E0B;
    --warning-light: #FFFBEB;
    --error: #EF4444;
    --error-light: #FEE2E2;
    --info-light: #EFF6FF;
    --purple: #8B5CF6;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
    --radius: 12px;
    --radius-lg: 16px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    background: var(--bg-muted);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--primary-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 1px 6px;
    font-size: 12px;
}

/* ── Logo ─────────────────────────────────────────────────────── */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.3px;
    white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo .logo-mark {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-hover));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.35);
}
.logo span { color: var(--primary-blue); }

/* ── Üst menü (müşteri/herkese açık) ──────────────────────────── */
.navbar {
    background: var(--header-bg);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    height: 62px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar-ic {
    max-width: 1120px;
    margin: 0 auto;
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
}
.nav-links a:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-links a.active { background: var(--bg-selected); color: var(--primary-blue); font-weight: 600; }
.nav-user { display: flex; align-items: center; gap: 10px; }
.nav-user .kullanici-adi { font-size: 13px; color: var(--text-secondary); }
.nav-user .kullanici-adi b { color: var(--text-primary); font-weight: 600; }

/* Mobil menü düğmesi */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 38px; height: 38px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    flex-shrink: 0;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* Mobil açılır menü */
.nav-mobil {
    display: none;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 10px 16px 16px;
    box-shadow: var(--shadow);
}
.nav-mobil.acik { display: block; }
.nav-mobil a {
    display: block;
    padding: 11px 12px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}
.nav-mobil a:hover, .nav-mobil a.active { background: var(--bg-selected); color: var(--primary-blue); }
.nav-mobil .ayrac { border-top: 1px solid var(--border-light); margin: 8px 0; }

/* ── Genel yerleşim ───────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 32px 20px; }
.container-dar { max-width: 1040px; margin: 0 auto; padding: 32px 20px; }

.page-title { font-size: 21px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.3px; }
.page-sub { font-size: 13.5px; color: var(--text-secondary); margin-top: 3px; }
.page-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; gap: 16px; flex-wrap: wrap;
}

.bolum-baslik {
    display: flex; align-items: center; gap: 10px;
    font-size: 16px; font-weight: 700;
    margin: 32px 0 16px;
    letter-spacing: -0.2px;
}
.bolum-baslik::before {
    content: '';
    width: 4px; height: 18px;
    border-radius: 4px;
    background: var(--primary-blue);
}

/* ── Kartlar ──────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 16px; }
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; }

/* ── Hero — canlı marka rengi zemin (Docy tarzı) ──────────────── */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(120% 140% at 15% -10%, rgba(0, 0, 0, 0.16), transparent 55%),
        linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue-hover) 55%, var(--primary-blue) 100%);
    padding: 64px 20px 96px;
    text-align: center;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    filter: blur(2px);
    pointer-events: none;
}
.hero-orb.o1 { width: 220px; height: 220px; top: -70px; right: 8%; background: rgba(255, 255, 255, 0.10); }
.hero-orb.o2 { width: 70px; height: 70px; bottom: 18%; left: 6%; background: rgba(255, 255, 255, 0.16); }
.hero-orb.o3 { width: 18px; height: 18px; top: 38%; right: 22%; background: rgba(255, 255, 255, 0.55); }
.hero > * { position: relative; z-index: 1; }
.hero h1 {
    font-size: clamp(26px, 4.5vw, 34px);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.6px;
    text-wrap: balance;
}
.hero p { color: rgba(255, 255, 255, 0.86); margin-top: 9px; font-size: 15.5px; }
.hero-search {
    max-width: 600px;
    margin: 28px auto 0;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 7px 7px 7px 18px;
    box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.45);
    transition: box-shadow .15s ease, transform .15s ease;
}
.hero-search:focus-within { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35), 0 24px 48px -16px rgba(0, 0, 0, 0.45); }
.hero-search svg { width: 19px; height: 19px; color: var(--text-muted); flex-shrink: 0; }
.hero-search input {
    flex: 1;
    min-width: 0;
    padding: 11px 12px;
    font-size: 14.5px;
    border: none;
    background: transparent;
    outline: none;
    color: var(--text-primary);
    font-family: inherit;
}
.hero-search .btn-primary { border-radius: 10px; }
.hero-ipucu { margin-top: 16px; font-size: 12.5px; color: rgba(255, 255, 255, 0.75); }
.hero-ipucu a {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(6px);
    border-radius: 20px;
    padding: 4px 13px;
    margin: 0 3px;
    display: inline-block;
    font-weight: 500;
}
.hero-ipucu a:hover { background: rgba(255, 255, 255, 0.26); text-decoration: none; }

/* Kategori bölümünün hero'nun alt kenarına taşarak oturması */
.kat-tasma { margin-top: -56px; }
@media (max-width: 620px) { .kat-tasma { margin-top: -36px; } .hero { padding-bottom: 72px; } }

/* ── Kategori kartları ────────────────────────────────────────── */
.kat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}
.kat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    text-decoration: none;
    color: var(--text-primary);
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
    display: block;
    position: relative;
}
.kat-card:hover {
    box-shadow: var(--shadow);
    border-color: rgba(var(--primary-rgb), 0.45);
    transform: translateY(-2px);
    text-decoration: none;
}
.kat-ikon {
    width: 42px; height: 42px;
    border-radius: 11px;
    background: var(--bg-selected);
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.kat-ikon svg { width: 21px; height: 21px; }
.kat-card h3 { font-size: 15.5px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.2px; }
.kat-card p { font-size: 13px; color: var(--text-secondary); margin-top: 5px; min-height: 20px; }
.kat-card .adet {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.kat-card .adet::after { content: '→'; color: var(--border-dark); font-size: 15px; transition: transform .18s ease, color .18s ease; }
.kat-card:hover .adet::after { transform: translateX(3px); color: var(--primary-blue); }

/* ── Makale listesi ───────────────────────────────────────────── */
.makale-list { list-style: none; }
.makale-list li { border-bottom: 1px solid var(--border-light); }
.makale-list li:last-child { border-bottom: none; }
.makale-list a {
    display: flex; align-items: center; gap: 13px;
    padding: 13px 10px; color: var(--text-primary); text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: background .14s ease, transform .14s ease;
}
.makale-list a:hover { background: var(--bg-selected); }
.makale-list a:hover .m-baslik { color: var(--primary-blue); }
.makale-list a:hover .m-ok { transform: translateX(3px); color: var(--primary-blue); }
.makale-list .m-ikon {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    background: var(--bg-selected); color: var(--primary-blue);
    display: flex; align-items: center; justify-content: center;
}
.makale-list .m-ikon svg { width: 17px; height: 17px; }
.makale-list .m-baslik { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; transition: color .14s ease; }
.makale-list .m-baslik .text-muted { font-weight: 400; }
.makale-list .goruntulenme {
    font-size: 11.5px; font-weight: 600; color: var(--text-muted); white-space: nowrap;
    background: var(--bg-muted); padding: 4px 9px; border-radius: 20px; flex-shrink: 0;
}
.makale-list .m-ok { color: var(--text-muted); flex-shrink: 0; display: inline-flex; transition: transform .14s ease, color .14s ease; }
.makale-list .m-ok svg { width: 16px; height: 16px; }

/* ── Makale içeriği ───────────────────────────────────────────── */
.kb-icerik { font-size: 15px; color: var(--text-primary); overflow-wrap: break-word; }
.kb-icerik h3 { font-size: 19px; font-weight: 700; margin: 28px 0 10px; letter-spacing: -0.2px; }
.kb-icerik h4 { font-size: 16px; font-weight: 600; margin: 22px 0 8px; }
.kb-icerik h3:first-child, .kb-icerik h4:first-child { margin-top: 0; }
.kb-icerik p { margin: 11px 0; max-width: 100ch; line-height: 1.7; }
.kb-icerik ul { margin: 10px 0 10px 22px; max-width: 100ch; }
.kb-icerik li { margin: 6px 0; line-height: 1.7; }
.kb-img {
    display: block;
    max-width: 100%;
    max-height: 440px;
    width: auto;
    height: auto;
    margin: 14px auto;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    cursor: zoom-in;
}
.kb-img-sm { max-width: min(320px, 100%); }
.kb-img-md { max-width: min(560px, 100%); }
.kb-img-lg { max-width: min(820px, 100%); }
.kb-img-full { max-width: 100%; }

/* ── İki kolonlu içerik yerleşimi (makale/kategori) ───────────── */
.icerik-yerlesim {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: start;
}
.yan-panel {
    position: sticky;
    top: 82px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.yan-panel .card + .card { margin-top: 0; }
.yan-liste { list-style: none; }
.yan-liste li { margin: 2px 0; }
.yan-liste a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}
.yan-liste a:hover { background: var(--bg-hover); color: var(--text-primary); text-decoration: none; }
.yan-liste a.aktif { background: var(--bg-selected); color: var(--primary-blue); font-weight: 600; }
.yan-liste .adet-kucuk { font-size: 11.5px; color: var(--text-muted); flex-shrink: 0; }
@media (max-width: 980px) {
    .icerik-yerlesim { grid-template-columns: 1fr; }
    .yan-panel { position: static; }
}

/* ── Görsel büyütme (lightbox) ────────────────────────────────── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: zoom-out;
}
.lightbox.acik { display: flex; }
.lightbox img {
    max-width: min(1200px, 94vw);
    max-height: 92vh;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    background: #fff;
}

/* ── Formlar ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 13px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--bg-card);
    color: var(--text-primary);
    outline: none;
    transition: border-color .12s ease, box-shadow .12s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.13);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group small { display: block; color: var(--text-muted); font-size: 12.5px; margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-section {
    font-size: 12.5px; font-weight: 700; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 6px;
    margin: 22px 0 14px;
}

/* ── Butonlar ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 18px;
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    border-radius: 9px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background .12s ease, box-shadow .12s ease;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--primary-blue); color: #fff; box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.3); }
.btn-primary:hover { background: var(--primary-blue-hover); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }
.btn-cerceve { background: var(--bg-card); color: var(--text-secondary); border: 1px solid var(--border); }
.btn-cerceve:hover { border-color: var(--border-dark); color: var(--text-primary); }
.btn-danger-ghost { background: transparent; color: var(--error); }
.btn-danger-ghost:hover { background: var(--error-light); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }

/* ── Rozetler ─────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    white-space: nowrap;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge-blue   { background: var(--info-light);    color: #2563EB; }
.badge-green  { background: var(--success-light); color: #059669; }
.badge-orange { background: var(--warning-light); color: #D97706; }
.badge-red    { background: var(--error-light);   color: #DC2626; }
.badge-gray   { background: var(--bg-hover);      color: var(--text-secondary); }

/* ── Uyarılar ─────────────────────────────────────────────────── */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}
.alert-success { background: var(--success-light); color: #065F46; border-color: #A7F3D0; }
.alert-error   { background: var(--error-light);   color: #991B1B; border-color: #FECACA; }
.alert-info    { background: var(--info-light);    color: #1E40AF; border-color: #BFDBFE; }

/* ── Tablolar ─────────────────────────────────────────────────── */
.table-wrap {
    overflow-x: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
table.tablo { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tablo th {
    background: var(--bg-muted);
    color: var(--text-secondary);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-align: left;
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.tablo td { padding: 12px 14px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.tablo tr:last-child td { border-bottom: none; }
.tablo tbody tr { transition: background .1s ease; }
.tablo tbody tr:hover { background: var(--bg-hover); }
.tablo .hucre-soluk { color: var(--text-muted); font-size: 12.5px; white-space: nowrap; }

/* Mobilde kart görünümüne dönüşen tablo (data-label ile) */
@media (max-width: 680px) {
    .tablo-kart { border: none; background: transparent; box-shadow: none; overflow: visible; }
    .tablo-kart table, .tablo-kart tbody, .tablo-kart tr, .tablo-kart td { display: block; width: 100%; }
    .tablo-kart thead { display: none; }
    .tablo-kart tr {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        margin-bottom: 12px;
        padding: 6px 0;
        box-shadow: var(--shadow-sm);
    }
    .tablo-kart td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        border-bottom: 1px dashed var(--border-light);
        padding: 9px 14px;
        text-align: right;
    }
    .tablo-kart td:last-child { border-bottom: none; }
    .tablo-kart td::before {
        content: attr(data-label);
        font-size: 11.5px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        color: var(--text-muted);
        text-align: left;
        flex-shrink: 0;
    }
}

/* ── Giriş / kayıt ekranları — hero ile aynı canlı zemin ──────── */
.auth-body {
    position: relative;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; padding: 20px;
    background:
        radial-gradient(120% 140% at 15% -10%, rgba(0, 0, 0, 0.16), transparent 55%),
        linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue-hover) 55%, var(--primary-blue) 100%);
}
.auth-card {
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 32px 64px -20px rgba(0, 0, 0, 0.45);
    padding: 36px;
    width: 100%;
    max-width: 420px;
}
.auth-logo { display: flex; justify-content: center; margin-bottom: 4px; }
.auth-sub { text-align: center; color: var(--text-secondary); font-size: 13.5px; margin: 8px 0 24px; }
.auth-alt { text-align: center; font-size: 13px; color: var(--text-secondary); margin-top: 18px; line-height: 2; }

/* Kart dışına, canlı zemine taşan dekoratif daireler */
.auth-orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
}
.auth-orb.o1 { width: 260px; height: 260px; top: -100px; left: -80px; }
.auth-orb.o2 { width: 140px; height: 140px; bottom: -60px; right: -40px; background: rgba(255, 255, 255, 0.1); }
.auth-orb.o3 { width: 16px; height: 16px; top: 20%; right: 12%; background: rgba(255, 255, 255, 0.5); }

/* ── Talep yazışma baloncukları ───────────────────────────────── */
.mesaj {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 14px;
    background: var(--bg-card);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.mesaj-head {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px;
    background: var(--bg-muted);
    border-bottom: 1px solid var(--border-light);
    font-size: 12.5px;
    color: var(--text-secondary);
}
.mesaj-head .msj-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--bg-selected);
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.mesaj-head b { color: var(--text-primary); font-weight: 600; font-size: 13px; flex: 1; min-width: 0; }
.mesaj-head .msj-zaman { white-space: nowrap; color: var(--text-muted); }
.mesaj-govde { padding: 14px 16px; white-space: pre-wrap; word-wrap: break-word; }
.mesaj-destek { border-color: #BFDBFE; }
.mesaj-destek .mesaj-head { background: var(--bg-selected); }
.mesaj-destek .msj-avatar { background: var(--primary-blue); color: #fff; }
.mesaj-ek { padding: 9px 16px; border-top: 1px dashed var(--border); font-size: 12.5px; background: var(--bg-muted); }

/* ══ ADMİN PANELİ ═════════════════════════════════════════════ */
.admin-layout { display: flex; min-height: 100vh; }

.sidebar {
    width: 240px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 18px 12px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 210;
}
.sidebar .logo { padding: 4px 10px 18px; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sidebar .nav-grup {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-muted);
    padding: 14px 12px 6px;
}
.sidebar nav a {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 12px;
    border-radius: 9px;
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    position: relative;
}
.sidebar nav a:hover { background: var(--bg-hover); color: var(--text-primary); }
.sidebar nav a.active { background: var(--bg-selected); color: var(--primary-blue); font-weight: 600; }
.sidebar nav a.active::before {
    content: '';
    position: absolute;
    left: -12px; top: 8px; bottom: 8px;
    width: 3.5px;
    border-radius: 0 4px 4px 0;
    background: var(--primary-blue);
}
.sidebar nav a svg { width: 17px; height: 17px; flex-shrink: 0; }
.sidebar nav a .rozet-sayi {
    margin-left: auto;
    background: var(--primary-blue);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 12px;
    padding: 1px 8px;
}
.sidebar .cikis { margin-top: auto; }

/* Admin üst çubuk */
.admin-ana { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
    background: var(--header-bg);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    height: 58px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 90;
}
.topbar .baslik { font-size: 15px; font-weight: 700; letter-spacing: -0.2px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .admin-chip {
    display: flex; align-items: center; gap: 9px;
    font-size: 13px; color: var(--text-secondary);
    white-space: nowrap;
}
.topbar .admin-chip .avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-hover));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}
.admin-content { flex: 1; padding: 26px 24px; max-width: 1240px; width: 100%; }

/* Mobil: çekmece sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(2px);
    z-index: 200;
}
@media (max-width: 900px) {
    .sidebar {
        position: fixed;
        left: 0; top: 0;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform .22s ease;
        box-shadow: var(--shadow-lg);
    }
    .sidebar.acik { transform: translateX(0); }
    .sidebar-overlay.acik { display: block; }
    .topbar { padding: 0 14px; }
    .topbar .nav-toggle { display: inline-flex; }
    .admin-content { padding: 18px 14px; }
}

/* ── Talep detayı: birleşik üst kart ──────────────────────────── */
.talep-ust {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 26px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.talep-ust .tu-basrow { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.talep-ust h1 { font-size: 19px; font-weight: 800; letter-spacing: -0.2px; }
.talep-ust .tu-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 9px; font-size: 12.5px; color: var(--text-muted); }
.talep-ust .durum-adim { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--border-light); }

/* ── Talep detayı: sohbet penceresi ───────────────────────────── */
.sohbet {
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.sohbet-govde { padding: 22px 22px 6px; display: flex; flex-direction: column; }
.sohbet-grup { max-width: 76%; display: flex; flex-direction: column; margin-bottom: 3px; }
.sohbet-grup:first-child { margin-top: 0; }
.sohbet-grup:not(.devam) { margin-top: 16px; }
.sohbet-grup.ben { align-self: flex-end; align-items: flex-end; }
.sohbet-grup.karsi { align-self: flex-start; align-items: flex-start; }

.sohbet-kimlik { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; font-size: 12px; color: var(--text-muted); font-weight: 600; padding: 0 3px; }
.sohbet-avatar {
    width: 21px; height: 21px; border-radius: 50%;
    background: var(--primary-blue); color: #fff;
    font-size: 10px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.balon { padding: 10px 14px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-wrap: break-word; }
.sohbet-grup.karsi .balon {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 4px 16px 16px 16px;
}
.sohbet-grup.ben .balon {
    background: var(--bg-selected);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    color: var(--text-primary);
    border-radius: 16px 4px 16px 16px;
}
.balon-zaman { font-size: 11px; color: var(--text-muted); margin-top: 4px; padding: 0 4px; }
.balon-ek {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 6px; padding: 6px 12px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px;
    font-size: 12px; align-self: inherit;
}
.sohbet-grup.ben .balon-ek { background: rgba(255, 255, 255, 0.5); }
[data-tema="koyu"] .sohbet-grup.ben .balon-ek { background: rgba(0, 0, 0, 0.18); }

.sohbet-yanit { border-top: 1px solid var(--border); padding: 16px 22px; background: var(--bg-card); }
.sohbet-yanit textarea { border-radius: 16px; resize: none; min-height: 84px; }
.sohbet-yanit .sy-alt { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.sohbet-yanit input[type="file"] { font-size: 12px; max-width: 220px; }
.sohbet-kapali-not {
    padding: 18px 22px; text-align: center; font-size: 13px; color: var(--text-secondary);
    background: var(--bg-card); border-top: 1px solid var(--border);
}
.sohbet-kapali-not a { font-weight: 600; }

@media (max-width: 560px) { .sohbet-grup { max-width: 90%; } }

/* ── Dahili notlar (admin, müşteri görmez) ────────────────────── */
.ic-not-kart {
    background: var(--warning-light);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    margin: 16px 0;
}
.ic-not-baslik {
    display: flex; align-items: center; gap: 8px;
    font-size: 12.5px; font-weight: 800; color: var(--warning);
    text-transform: uppercase; letter-spacing: .4px; margin-bottom: 12px;
}
.ic-not-baslik svg { width: 15px; height: 15px; }
.ic-not-ogesi {
    background: var(--bg-card);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius);
    padding: 10px 14px;
    margin-bottom: 8px;
    font-size: 13.5px;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.ic-not-ogesi .ino-meta { font-size: 11.5px; color: var(--text-muted); margin-bottom: 4px; }

/* ── Yıldız değerlendirme: saf CSS ile (radio + ters sıra) ────── */
.yildiz-secici { display: flex; flex-direction: row-reverse; justify-content: center; gap: 3px; }
.yildiz-secici input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.yildiz-secici label { cursor: pointer; color: var(--border-dark); transition: color .1s ease; }
.yildiz-secici label svg { width: 34px; height: 34px; display: block; }
.yildiz-secici input:checked ~ label,
.yildiz-secici label:hover,
.yildiz-secici label:hover ~ label { color: var(--warning); }

.yildiz-goster { display: inline-flex; gap: 1px; vertical-align: middle; }
.yildiz-goster svg { width: 15px; height: 15px; }
.yildiz-goster svg.dolu { color: var(--warning); }
.yildiz-goster svg.bos { color: var(--border-dark); }

/* ── Panel karşılama kartı (müşteri paneli üst banner) ────────── */
.panel-banner {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 26px 30px;
    margin-bottom: 22px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    background:
        radial-gradient(120% 160% at 85% -20%, rgba(255, 255, 255, 0.14), transparent 55%),
        linear-gradient(120deg, var(--primary-dark) 0%, var(--primary-blue-hover) 60%, var(--primary-blue) 100%);
    box-shadow: 0 16px 32px -14px rgba(var(--primary-rgb), 0.45);
}
.panel-banner .pb-sol { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
.panel-banner .pb-avatar {
    width: 52px; height: 52px; border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff; font-size: 19px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.panel-banner h1 { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -0.3px; }
.panel-banner p { font-size: 13.5px; color: rgba(255, 255, 255, 0.82); margin-top: 3px; }
.panel-banner .btn-primary {
    position: relative; z-index: 1;
    background: #fff; color: var(--primary-blue-hover);
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.35);
}
.panel-banner .btn-primary:hover { background: #fff; opacity: .92; }
@media (max-width: 620px) { .panel-banner { padding: 22px; } }

/* ── İstatistik kutuları ──────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
}
.stat .stat-ikon {
    width: 42px; height: 42px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--bg-hover);
    color: var(--text-secondary);
}
.stat .stat-ikon svg { width: 20px; height: 20px; }
.stat.stat-mavi .stat-ikon { background: var(--info-light); color: var(--primary-blue); }
.stat.stat-yesil .stat-ikon { background: var(--success-light); color: var(--success); }
.stat.stat-turuncu .stat-ikon { background: var(--warning-light); color: var(--warning); }
.stat.stat-mor .stat-ikon { background: #F5F3FF; color: var(--purple); }
.stat .deger { font-size: 22px; font-weight: 800; color: var(--text-primary); line-height: 1.2; letter-spacing: -0.4px; }
.stat .etiket { font-size: 12px; color: var(--text-secondary); margin-top: 1px; }

/* ── Makale editörü ───────────────────────────────────────────── */
.editor-kap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg-card); }
.editor-kap:focus-within { border-color: var(--primary-blue); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.13); }
.editor-arac {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
    padding: 7px 9px;
    background: var(--bg-muted);
    border-bottom: 1px solid var(--border);
}
.editor-arac button {
    background: none;
    border: none;
    border-radius: 7px;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
}
.editor-arac button:hover { background: var(--bg-hover); color: var(--text-primary); }
.editor-arac button svg { width: 16px; height: 16px; }
.editor-arac .arac-ayrac { width: 1px; height: 20px; background: var(--border); margin: 0 6px; }
.editor-arac .arac-sag { margin-left: auto; display: flex; gap: 2px; }
.editor-arac .arac-sekme { font-size: 12.5px; font-weight: 600; padding: 0 12px; color: var(--text-muted); }
.editor-arac .arac-sekme.aktif { background: var(--bg-card); color: var(--primary-blue); box-shadow: var(--shadow-sm); }

#icerikAlani {
    width: 100%;
    border: none;
    outline: none;
    resize: vertical;
    min-height: 420px;
    padding: 16px;
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-card);
}
#icerikAlani.surukleniyor { background: var(--bg-selected); }
.editor-onizleme { padding: 18px; min-height: 420px; overflow-y: auto; }

/* ── Yaz / Yan Yana / Önizle modları ─────────────────────────────── */
.editor-govde.mod-yaz .editor-onizleme,
.editor-govde.mod-onizle #icerikAlani { display: none; }
.editor-govde.mod-yaz #icerikAlani,
.editor-govde.mod-onizle .editor-onizleme,
.editor-govde.mod-yanyana #icerikAlani,
.editor-govde.mod-yanyana .editor-onizleme { display: block; }
.editor-govde.mod-yanyana {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.editor-govde.mod-yanyana #icerikAlani {
    border-right: 1px solid var(--border);
    resize: none;
}
@media (max-width: 900px) {
    .editor-govde.mod-yanyana { display: block; }
    .editor-govde.mod-yanyana .editor-onizleme { display: none; }
}

/* ── Resim boyut menüsü ──────────────────────────────────────────── */
.resim-menu-kap { position: relative; }
.resim-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 9px;
    box-shadow: var(--shadow-md, var(--shadow-sm));
    padding: 4px;
    z-index: 30;
    min-width: 140px;
}
.resim-menu.acik { display: block; }
.resim-menu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
}
.resim-menu button:hover { background: var(--bg-hover); color: var(--text-primary); }

/* ── Önizlemede sürükle-bırak resim boyutlandırma (WordPress benzeri) ─ */
.kb-resize-sarici {
    /* Genişlik JS ile ölçülüp satır içi stil olarak set edilir (bkz. resimSaricilariKur) —
       "width: fit-content" burada işe yaramıyor çünkü tarayıcı resmin gerçek
       görüntülenen genişliği yerine orijinal (intrinsic) boyutunu esas alıyor. */
    position: relative;
    display: block;
    max-width: 100%;
    margin: 14px auto;
}
.kb-resize-sarici img.kb-img { display: block; margin: 0; }
.kb-resize-sarici:hover .kb-resize-tutamac,
.kb-resize-sarici.boyutlandiriliyor .kb-resize-tutamac { opacity: 1; }
.kb-resize-tutamac {
    position: absolute;
    right: -7px;
    bottom: -7px;
    width: 15px;
    height: 15px;
    background: var(--primary-blue);
    border: 2px solid var(--bg-card);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    cursor: nwse-resize;
    opacity: 0;
    transition: opacity .15s;
}
.kb-resize-sarici.boyutlandiriliyor img.kb-img { outline: 2px solid var(--primary-blue); outline-offset: 2px; }
.editor-durum {
    padding: 7px 12px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-muted);
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.editor-durum .yukleniyor { color: var(--primary-blue); font-weight: 600; }

/* ── Filtre hapları ───────────────────────────────────────────── */
.filtre-grup { display: inline-flex; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 3px; gap: 2px; }
.filtre-grup a {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
}
.filtre-grup a:hover { color: var(--text-primary); }
.filtre-grup a.aktif { background: var(--primary-blue); color: #fff; box-shadow: 0 1px 4px rgba(var(--primary-rgb), 0.4); }

/* ── Küçük yardımcılar ────────────────────────────────────────── */
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.flex-arasi { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bos-durum { text-align: center; padding: 52px 20px; color: var(--text-muted); }
.bos-durum b { display: block; color: var(--text-secondary); font-size: 15px; margin-bottom: 4px; }
.bos-durum svg { width: 40px; height: 40px; color: var(--border-dark); margin-bottom: 12px; }

.footer {
    border-top: 1px solid var(--border);
    margin-top: 56px;
    background: var(--bg-card);
}
.footer-ic {
    max-width: 1120px;
    margin: 0 auto;
    padding: 26px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 12.5px;
}
.footer-ic .footer-links { display: flex; gap: 18px; }
.footer-ic .footer-links a { color: var(--text-secondary); }

/* ── Mobil genel ──────────────────────────────────────────────── */
@media (max-width: 780px) {
    .form-row { grid-template-columns: 1fr; }
    .nav-links, .nav-user .kullanici-adi { display: none; }
    .nav-toggle { display: inline-flex; }
    .nav-user .btn { display: none; }
    .container, .container-dar { padding: 20px 14px; }
    .hero { padding: 40px 16px 36px; }
    .page-head { flex-direction: column; align-items: stretch; }
    .page-head > form { align-self: flex-end; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .mesaj-head { flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════════════════════════
   TEMALAR — html etiketindeki data-tema özniteliğiyle seçilir.
   Varsayılan (Mavi) :root içinde tanımlıdır.
   ═══════════════════════════════════════════════════════════════ */

/* ── Yeşil (Zümrüt) ───────────────────────────────────────────── */
[data-tema="yesil"] {
    --primary-blue: #10B981;
    --primary-blue-hover: #059669;
    --primary-rgb: 16, 185, 129;
    --bg-selected: #ECFDF5;
}

/* ── Mor (Menekşe) ────────────────────────────────────────────── */
[data-tema="mor"] {
    --primary-blue: #8B5CF6;
    --primary-blue-hover: #7C3AED;
    --primary-rgb: 139, 92, 246;
    --bg-selected: #F5F3FF;
}

/* ── Turuncu (Kehribar) ───────────────────────────────────────── */
[data-tema="turuncu"] {
    --primary-blue: #EA8A00;
    --primary-blue-hover: #D97706;
    --primary-rgb: 234, 138, 0;
    --bg-selected: #FFFBEB;
}

/* ── Koyu ─────────────────────────────────────────────────────── */
[data-tema="koyu"] {
    --primary-blue: #60A5FA;
    --primary-blue-hover: #3B82F6;
    --primary-rgb: 96, 165, 250;
    --bg-card: #1E293B;
    --bg-hover: #293850;
    --bg-muted: #0F172A;
    --bg-selected: rgba(96, 165, 250, 0.16);
    --border: #334155;
    --border-light: #2A3850;
    --border-dark: #475569;
    --text-primary: #F1F5F9;
    --text-secondary: #B6C4D8;
    --text-muted: #7C8DA6;
    --success-light: rgba(16, 185, 129, 0.15);
    --warning-light: rgba(245, 158, 11, 0.15);
    --error-light: rgba(239, 68, 68, 0.16);
    --info-light: rgba(96, 165, 250, 0.16);
    --header-bg: rgba(15, 23, 42, 0.92);
    --hero-top: #16213A;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
}
[data-tema="koyu"] .btn-primary,
[data-tema="koyu"] .filtre-grup a.aktif { color: #0B1526; }
[data-tema="koyu"] .logo .logo-mark,
[data-tema="koyu"] .topbar .admin-chip .avatar { color: #0B1526; }
[data-tema="koyu"] .badge-blue   { color: #93C5FD; }
[data-tema="koyu"] .badge-green  { color: #6EE7B7; }
[data-tema="koyu"] .badge-orange { color: #FCD34D; }
[data-tema="koyu"] .badge-red    { color: #FCA5A5; }
[data-tema="koyu"] .alert-success { color: #6EE7B7; border-color: rgba(16, 185, 129, 0.35); }
[data-tema="koyu"] .alert-error   { color: #FCA5A5; border-color: rgba(239, 68, 68, 0.35); }
[data-tema="koyu"] .alert-info    { color: #93C5FD; border-color: rgba(96, 165, 250, 0.35); }
[data-tema="koyu"] .stat.stat-mor .stat-ikon { background: rgba(139, 92, 246, 0.16); color: #C4B5FD; }
[data-tema="koyu"] .stat.stat-mavi .stat-ikon { color: #93C5FD; }
[data-tema="koyu"] .stat.stat-yesil .stat-ikon { color: #6EE7B7; }
[data-tema="koyu"] .stat.stat-turuncu .stat-ikon { color: #FCD34D; }
[data-tema="koyu"] .mesaj-destek { border-color: rgba(96, 165, 250, 0.4); }
[data-tema="koyu"] .hero-ipucu a { background: var(--bg-card); }

/* ═══════════════════════════════════════════════════════════════
   DOCS DUZENI - kategori.php ve makale.php icin sol agac menu +
   (makalede) sag icindekiler kolonu. Docy tarzi 3 kolonlu dokuman
   sitesi yerlesimi.
   ═══════════════════════════════════════════════════════════════ */

.docs-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.docs-sidebar-desktop {
    position: sticky;
    top: 82px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 14px 10px;
}

/* -- Breadcrumb ve makale/kategori bas kismi icin kart sarmalayicilar -- */
.breadcrumb-kart {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 12px 18px;
    margin-bottom: 18px;
}
.breadcrumb-kart .breadcrumb { margin-bottom: 0; }

.baslik-kart {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 22px 26px;
    margin-bottom: 18px;
}
.baslik-kart .page-title { margin-bottom: 4px; }
.baslik-kart .page-head { margin-bottom: 0; }
.ds-grup { margin-bottom: 2px; }
.ds-baslik {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 10px;
    border-radius: 9px;
    font-size: 13px; font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}
.ds-baslik:hover { background: var(--bg-hover); text-decoration: none; }
.ds-grup.aktif > .ds-baslik { color: var(--primary-blue); background: var(--bg-selected); }
.ds-baslik .ds-sayi { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--text-muted); }
.ds-grup.aktif .ds-sayi { color: var(--primary-blue); }
.ds-alt {
    list-style: none;
    margin: 3px 0 12px 20px;
    border-left: 1.5px solid var(--border);
    padding-left: 12px;
}
.ds-alt li { margin: 0; }
.ds-alt a {
    display: block; padding: 6px 10px;
    border-radius: 7px; font-size: 12.5px;
    color: var(--text-secondary); text-decoration: none;
    line-height: 1.4;
}
.ds-alt a:hover { background: var(--bg-hover); color: var(--text-primary); text-decoration: none; }
.ds-alt a.aktif { background: var(--bg-selected); color: var(--primary-blue); font-weight: 600; }

.docs-sidebar-mobil { display: none; }

@media (max-width: 980px) {
    .docs-layout { grid-template-columns: 1fr; }
    .docs-sidebar-desktop { display: none; }
    .docs-sidebar-mobil {
        display: block;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        margin-bottom: 18px;
        box-shadow: var(--shadow-sm);
    }
    .docs-sidebar-mobil summary {
        cursor: pointer; list-style: none;
        display: flex; align-items: center; justify-content: space-between;
        padding: 13px 16px; font-weight: 700; font-size: 13.5px;
    }
    .docs-sidebar-mobil summary::-webkit-details-marker { display: none; }
    .docs-sidebar-mobil summary svg { width: 16px; height: 16px; color: var(--text-muted); transition: transform .15s ease; flex-shrink: 0; }
    .docs-sidebar-mobil[open] summary svg { transform: rotate(180deg); }
    .docs-sidebar-mobil .ds-mobil-ic { padding: 0 10px 12px; max-height: 360px; overflow-y: auto; border-top: 1px solid var(--border-light); padding-top: 8px; }
}

/* -- Icindekiler (TOC) - makale ust kisminda katlanabilir, iki kolonlu -- */
.toc-inline {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-muted);
    margin-bottom: 24px;
    overflow: hidden;
}
.toc-inline summary {
    list-style: none;
    cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px;
    font-size: 13px; font-weight: 700; color: var(--text-primary);
    -webkit-user-select: none; user-select: none;
}
.toc-inline summary::-webkit-details-marker { display: none; }
.toc-inline summary .toc-ikon-liste { width: 15px; height: 15px; color: var(--primary-blue); flex-shrink: 0; }
.toc-inline summary .toc-sayi { color: var(--text-muted); font-weight: 500; }
.toc-inline summary .toc-ikon-ok { width: 15px; height: 15px; color: var(--text-muted); margin-left: auto; flex-shrink: 0; transition: transform .15s ease; }
.toc-inline[open] summary .toc-ikon-ok { transform: rotate(180deg); }
.toc-inline[open] summary { border-bottom: 1px solid var(--border); }
.toc-inline .toc-govde {
    padding: 6px 14px 14px;
    column-count: 2;
    column-gap: 28px;
}
.toc-inline .toc-govde a {
    display: block;
    padding: 6px 10px;
    border-radius: 7px;
    font-size: 13px; line-height: 1.4; color: var(--text-secondary); text-decoration: none;
    break-inside: avoid;
}
.toc-inline .toc-govde a:hover { background: var(--bg-hover); color: var(--primary-blue); text-decoration: none; }
.toc-inline .toc-govde a.alt { padding-left: 22px; font-size: 12.5px; color: var(--text-muted); }
.toc-inline .toc-govde a.alt::before { content: '–'; margin-right: 6px; }
.toc-inline .toc-govde a.aktif { background: var(--bg-selected); color: var(--primary-blue); font-weight: 600; }
@media (max-width: 640px) { .toc-inline .toc-govde { column-count: 1; } }

/* -- Breadcrumb -- */
.breadcrumb {
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
    font-size: 13px; color: var(--text-muted); margin-bottom: 14px;
}
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary-blue); text-decoration: none; }
.breadcrumb svg { width: 13px; height: 13px; opacity: .55; flex-shrink: 0; }
.breadcrumb .aktif { color: var(--text-primary); font-weight: 600; }

/* -- "Bu makale yardimci oldu mu?" oylama widget'i -- */
.helpful {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-muted);
    padding: 26px 28px;
    text-align: center;
    margin-top: 32px;
}
.helpful .h-baslik { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.helpful .h-butonlar { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.helpful button {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 20px; border-radius: 9px;
    border: 1.5px solid var(--border); background: var(--bg-card);
    font-weight: 600; font-size: 13.5px; font-family: inherit;
    color: var(--text-secondary); cursor: pointer;
    transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.helpful button:hover:not(:disabled) { border-color: var(--border-dark); color: var(--text-primary); }
.helpful button svg { width: 16px; height: 16px; }
.helpful button:disabled { cursor: default; opacity: .7; }
.helpful button.secili-evet { background: var(--success-light); border-color: var(--success); color: var(--success); }
.helpful button.secili-hayir { background: var(--error-light); border-color: var(--error); color: var(--error); }
.helpful .h-tesekkur { font-size: 13.5px; color: var(--text-secondary); font-weight: 600; }
[data-tema="koyu"] .helpful button.secili-evet { color: #6EE7B7; }
[data-tema="koyu"] .helpful button.secili-hayir { color: #FCA5A5; }

/* -- Konu kumeleri (ana sayfa "Recommended Topics") -- */
.konu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.konu-kart {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}
.konu-kart .kk-ust { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.konu-kart .kk-ikon {
    width: 34px; height: 34px; border-radius: 9px;
    background: var(--bg-selected); color: var(--primary-blue);
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.konu-kart .kk-ikon svg { width: 17px; height: 17px; }
.konu-kart h4 { font-size: 14.5px; font-weight: 700; letter-spacing: -.1px; }
.konu-kart ul { list-style: none; margin-top: 6px; }
.konu-kart li { margin: 0; }
.konu-kart li a {
    display: block; padding: 7px 2px;
    font-size: 13px; color: var(--text-secondary); text-decoration: none;
    border-bottom: 1px dashed var(--border-light);
}
.konu-kart li:last-child a { border-bottom: none; }
.konu-kart li a:hover { color: var(--primary-blue); text-decoration: none; }
.konu-kart .kk-tumu {
    display: inline-flex; align-items: center; gap: 5px;
    margin-top: 12px; font-size: 12.5px; font-weight: 700;
    color: var(--primary-blue); text-decoration: none;
}
.konu-kart .kk-tumu svg { width: 13px; height: 13px; transition: transform .15s ease; }
.konu-kart .kk-tumu:hover svg { transform: translateX(3px); }
.konu-kart .kk-bos { font-size: 12.5px; color: var(--text-muted); padding: 8px 2px; }

/* -- Talep durum cizelgesi (stepper) -- */
.durum-adim { display: flex; align-items: center; margin: 6px 0 4px; }
.durum-adim .da-adim { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.durum-adim .da-nokta {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--bg-hover); color: var(--text-muted);
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.durum-adim .da-nokta svg { width: 14px; height: 14px; }
.durum-adim .da-etiket { font-size: 12.5px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.durum-adim .da-cizgi { flex: 1; height: 2px; background: var(--border); margin: 0 8px; min-width: 16px; }
.durum-adim .da-cizgi.dolu { background: var(--primary-blue); }
.durum-adim .tamam .da-nokta { background: var(--primary-blue); color: #fff; }
.durum-adim .tamam .da-etiket { color: var(--text-primary); }
.durum-adim .iptal .da-nokta { background: var(--error); color: #fff; }
.durum-adim .iptal .da-etiket { color: var(--error); }
[data-tema="koyu"] .durum-adim .tamam .da-nokta,
[data-tema="koyu"] .durum-adim .iptal .da-nokta { color: #0B1526; }

/* -- Departman / Öncelik renkli açılır menüler (yeni talep formu) -- */
.secim-renkli select {
    font-weight: 600;
    cursor: pointer;
}

/* -- Yeni talep formu: daha belirgin (koyu) kenarlıklar --
   Sadece bu forma özel: kart çerçevesi, bölüm ayraç çizgileri,
   input/select/textarea ve dosya kutusu kenarlıkları koyulaştırılır. */
.card-talep-form {
    --border-koyu-form: #94A3B8;
    border-color: var(--border-koyu-form);
}
[data-tema="koyu"] .card-talep-form { --border-koyu-form: #64748B; }
.card-talep-form .form-bolum { border-top-color: var(--border-koyu-form); }
.card-talep-form input, .card-talep-form select, .card-talep-form textarea {
    border-color: var(--border-koyu-form);
}
.card-talep-form input:focus, .card-talep-form select:focus, .card-talep-form textarea:focus {
    border-color: var(--primary-blue);
}

/* -- Yeni talep formu: numaralı bölümler (kompakt) -- */
.form-bolum { padding: 14px 0; border-top: 1px solid var(--border-light); }
.form-bolum:first-child { padding-top: 0; border-top: none; }
.form-bolum-baslik { display: flex; align-items: baseline; gap: 8px; margin-bottom: 9px; flex-wrap: wrap; }
.form-bolum-no {
    width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
    background: var(--bg-selected); color: var(--primary-blue);
    font-size: 11px; font-weight: 800; font-family: var(--mono, monospace);
    display: inline-flex; align-items: center; justify-content: center;
    align-self: center;
}
.form-bolum-baslik label { font-size: 13.5px; font-weight: 700; color: var(--text-primary); margin: 0; }
.form-bolum-ipucu { font-size: 12px; color: var(--text-muted); }
.form-bolum .form-group { margin-bottom: 0; }

/* -- Departman + Öncelik yan yana (geniş ekran) -- */
.form-bolum-iki { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 640px) {
    .form-bolum-iki { grid-template-columns: 1fr; gap: 14px; }
}

/* -- Dosya yükleme kutusu -- */
.dosya-kutu { position: relative; }
.dosya-kutu input[type="file"] { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.dosya-alani {
    display: flex; align-items: center; gap: 11px;
    border: 1.5px dashed var(--border-koyu-form); border-radius: var(--radius);
    padding: 10px 14px; transition: border-color .14s ease, background .14s ease;
}
.dosya-alani .da-ikon {
    width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
    background: var(--bg-selected); color: var(--primary-blue);
    display: flex; align-items: center; justify-content: center;
}
.dosya-alani .da-ikon svg { width: 15px; height: 15px; }
.dosya-alani .da-metin { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.dosya-alani .da-alt { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.dosya-kutu:hover .dosya-alani, .dosya-kutu.dolu .dosya-alani { border-color: var(--primary-blue); background: var(--bg-selected); }
.dosya-kutu.dolu .da-ikon { background: var(--success); color: #fff; }
