/* =========================================================
   GÜVENCEM KVKK YÖNETİM PANELİ — Kurumsal Tema v3
   Koyu lacivert yan menü · açık içerik alanı · turuncu vurgu
   ========================================================= */
:root {
    --brand: #ee7d00;
    --brand-600: #d26e00;
    --brand-50: #fff6eb;
    --brand-100: #ffe7c7;

    --navy: #0c1424;
    --navy-2: #131d31;
    --navy-3: #1c2840;
    --navy-line: rgba(255, 255, 255, .07);
    --navy-text: #93a0b8;

    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --soft: #94a3b8;
    --line: #e4e7ec;
    --line-2: #f1f3f6;
    --bg: #f4f6f9;
    --card: #ffffff;

    --ok: #047857;   --ok-bg: #ecfdf5;   --ok-line: #bbf0d6;
    --warn: #b45309; --warn-bg: #fffaeb; --warn-line: #fde3a7;
    --err: #c2410c;  --err-bg: #fff4ed; --err-line: #fed2b5;
    --red: #dc2626;  --red-bg: #fef2f2;  --red-line: #fecaca;
    --info: #1d4ed8; --info-bg: #eff5ff; --info-line: #c7d7fe;

    --radius: 14px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .12);
    --side-w: 268px;

    --bs-body-font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --bs-body-color: var(--ink-2);
    --bs-body-bg: var(--bg);
    --bs-link-color: var(--brand-600);
    --bs-link-color-rgb: 210, 110, 0;
    --bs-link-hover-color: #a85800;
    --bs-border-color: var(--line);
}

html, body { background: var(--bg); }
body { font-size: 14px; -webkit-font-smoothing: antialiased; color: var(--ink-2); }
a { text-decoration: none; }
::selection { background: var(--brand-100); }

/* =========================== YAN MENÜ =========================== */
.sidebar {
    position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 1040;
    background: linear-gradient(180deg, var(--navy) 0%, #0a1120 100%);
    display: flex; flex-direction: column; color: var(--navy-text);
    border-right: 1px solid #070c17;
}
.side-brand { padding: 26px 26px 22px; border-bottom: 1px solid var(--navy-line); }
.side-brand img { width: 100%; max-width: 212px; height: auto; display: block; }
.side-brand .sub { margin-top: 12px; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #5f6d87; display: flex; align-items: center; gap: 8px; }
.side-brand .sub::before { content: ""; width: 14px; height: 2px; background: var(--brand); border-radius: 2px; }

.side-nav { flex: 1; overflow-y: auto; padding: 18px 14px; }
.side-group { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #4f5c75; padding: 14px 12px 8px; }
.side-group:first-child { padding-top: 2px; }
.side-nav a {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 2px; border-radius: 10px;
    color: #b4bfd3; font-weight: 600; font-size: 13.5px; position: relative; transition: background .15s, color .15s;
}
.side-nav a i { width: 18px; text-align: center; font-size: 14px; color: #6b7a96; transition: color .15s; }
.side-nav a:hover { background: var(--navy-2); color: #fff; }
.side-nav a:hover i { color: #c9d3e5; }
.side-nav a.active { background: linear-gradient(90deg, rgba(238,125,0,.16), rgba(238,125,0,.03)); color: #fff; }
.side-nav a.active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.side-nav a.active i { color: var(--brand); }
.side-nav .badge-n { margin-left: auto; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; min-width: 24px; text-align: center; }

.side-user { margin: 14px; padding: 12px; border-radius: 12px; background: var(--navy-2); border: 1px solid var(--navy-line); display: flex; align-items: center; gap: 11px; }
.side-user .avatar { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), #c45f00); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.side-user .who { min-width: 0; flex: 1; }
.side-user .who b { display: block; color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .who span { font-size: 11.5px; color: #6f7d97; }
.side-user .out { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #8d9ab2; transition: background .15s, color .15s; }
.side-user .out:hover { background: rgba(220, 38, 38, .14); color: #fca5a5; }

/* =========================== ÜST BAR =========================== */
.main { margin-left: var(--side-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
    position: sticky; top: 0; z-index: 1020; height: 64px; display: flex; align-items: center; gap: 16px; padding: 0 36px;
    background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--soft); font-weight: 500; }
.crumbs b { color: var(--ink); font-weight: 700; }
.crumbs i { font-size: 9px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.today { font-size: 12.5px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.today i { color: var(--soft); }
.sys-ok { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--ok); background: var(--ok-bg); border: 1px solid var(--ok-line); padding: 4px 10px; border-radius: 999px; }
.sys-ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,.18); }
.nav-toggle { display: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; width: 40px; height: 40px; color: var(--ink); }
.side-backdrop { display: none; }

/* =========================== SAYFA =========================== */
.page { width: 100%; max-width: 1480px; padding: 30px 36px 44px; flex: 1; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 25px; font-weight: 800; color: var(--ink); margin: 0; letter-spacing: -.02em; }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; max-width: 720px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.page-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--soft); font-size: 12px; padding: 18px 36px; border-top: 1px solid var(--line); }

/* =========================== KART =========================== */
.panel-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel-card + .panel-card { margin-top: 22px; }
.panel-card-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.panel-card-head h2 { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0; display: flex; align-items: center; gap: 12px; }
.panel-card-head h2 .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--navy); color: var(--brand); display: grid; place-items: center; font-size: 14px; }
.panel-card-head .hint { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.panel-card-body { padding: 22px; }

/* =========================== BUTONLAR =========================== */
.btn { font-weight: 700; font-size: 13px; border-radius: 10px; padding: 9px 16px; letter-spacing: .005em; }
.btn-lg { font-size: 14px; padding: 12px 22px; border-radius: 11px; }
.btn-sm { font-size: 12px; padding: 6px 11px; border-radius: 8px; }
.btn-brand { background: var(--brand); border: 1px solid var(--brand); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 4px 12px -6px rgba(238,125,0,.7); }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.btn-brand:disabled, .btn-brand.disabled { background: #f6b366; border-color: #f6b366; color: #fff; box-shadow: none; }
.btn-dark { background: var(--navy); border: 1px solid var(--navy); color: #fff; }
.btn-dark:hover, .btn-dark:focus { background: var(--navy-3); border-color: var(--navy-3); color: #fff; }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--ink-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: #f8fafc; color: var(--ink); border-color: #cfd5de; }
.btn-ghost.disabled { opacity: .5; }
.btn i { font-size: .95em; }

/* =========================== FORM =========================== */
.form-label { font-weight: 700; font-size: 12.5px; color: var(--ink-2); margin-bottom: 7px; }
.form-control, .form-select { border-radius: 10px; border: 1px solid #d5dae2; font-size: 14px; padding: 10px 13px; background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.form-control::placeholder { color: #a3adbd; }
.form-control-lg { font-size: 16px; padding: 12px 15px; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(238,125,0,.14); background: #fff; }
.form-text { font-size: 12px; color: var(--muted); }
.form-check-input { width: 17px; height: 17px; border-color: #c4cbd6; cursor: pointer; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(238,125,0,.18); border-color: var(--brand); }

.seg { display: inline-flex; background: var(--line-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 2px; }
.seg input { display: none; }
.seg label { padding: 8px 18px; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--muted); cursor: pointer; transition: all .15s; display: flex; align-items: center; gap: 8px; }
.seg input:checked + label { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.seg input:checked + label i { color: var(--brand); }

.search-box { position: relative; }
.search-box i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--soft); font-size: 13px; pointer-events: none; }
.search-box .form-control { padding-left: 38px; }

/* =========================== BİLDİRİM =========================== */
.notice { display: flex; align-items: flex-start; gap: 12px; padding: 13px 46px 13px 16px; border-radius: 12px; border: 1px solid; margin-bottom: 18px; font-weight: 600; font-size: 13.5px; position: relative; box-shadow: var(--shadow-sm); }
.notice > i { margin-top: 2px; font-size: 15px; }
.notice .btn-close { position: absolute; right: 14px; top: 15px; font-size: 10px; padding: 0; }
.notice form { display: inline; }
.notice .btn { margin-left: 6px; }
.notice-success { background: var(--ok-bg); border-color: var(--ok-line); color: #065f46; }
.notice-danger  { background: var(--red-bg); border-color: var(--red-line); color: #991b1b; }
.notice-warning { background: var(--warn-bg); border-color: var(--warn-line); color: #92400e; }
.notice-info    { background: var(--info-bg); border-color: var(--info-line); color: #1e3a8a; }

/* =========================== SEKMELER / FİLTRE =========================== */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 22px; overflow-x: auto; }
.tabs .tab { white-space: nowrap; display: flex; align-items: center; gap: 9px; padding: 15px 4px; margin-right: 22px; color: var(--muted); font-weight: 700; border: none; background: none; position: relative; }
.tabs .tab:hover { color: var(--ink); }
.tabs .tab.active { color: var(--ink); }
.tabs .tab.active i { color: var(--brand); }
.tabs .tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand); border-radius: 2px; }
.count { font-size: 11px; font-weight: 800; min-width: 24px; padding: 2px 8px; border-radius: 999px; background: var(--line-2); color: var(--muted); text-align: center; }
.tab.active .count { background: var(--navy); color: #fff; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 22px; background: #fafbfc; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-f { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 700; font-size: 12.5px; }
.chip-f:hover { border-color: #cfd5de; color: var(--ink); }
.chip-f.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip-f .n { font-size: 11px; opacity: .7; }
.bulk-bar { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); font-weight: 600; }

/* =========================== TABLO =========================== */
.table-wrap { overflow-x: auto; }
.dt { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.dt thead th { background: #fafbfc; color: var(--muted); font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dt tbody td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; white-space: nowrap; }
.dt tbody tr:last-child td { border-bottom: none; }
.dt tbody tr { transition: background .12s; }
.dt tbody tr:hover td { background: #fbfcfd; }
.dt tbody tr.expired td { background: #fffdfa; }
.dt .num { color: var(--soft); font-variant-numeric: tabular-nums; width: 1%; font-weight: 600; }
.dt .strong { color: var(--ink); font-weight: 700; }
.dt .sub { color: var(--muted); font-size: 12px; margin-top: 3px; }
.dt .mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.dt .actions { text-align: right; width: 1%; }
.dt .actions .d-flex { justify-content: flex-end; }
.dt .sel { width: 1%; padding-right: 0; }
.wrap-text { white-space: normal !important; min-width: 190px; max-width: 340px; }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty i { font-size: 30px; color: #cbd2dc; display: block; margin-bottom: 12px; }

/* =========================== ROZETLER =========================== */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.no-dot::before { display: none; }
.pill-ok   { background: var(--ok-bg);   color: var(--ok);   border-color: var(--ok-line); }
.pill-warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.pill-err  { background: var(--err-bg);  color: var(--err);  border-color: var(--err-line); }
.pill-info { background: var(--info-bg); color: var(--info); border-color: var(--info-line); }
.pill-mute { background: var(--line-2);  color: var(--muted); border-color: var(--line); }

.tag { display: inline-block; padding: 3px 8px; border-radius: 7px; font-size: 11.5px; font-weight: 700; }
.tag-kod { background: var(--navy); color: #ffd7a8; font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace; letter-spacing: .02em; }
.tag-kurumsal { background: #eef2f7; color: #334155; }
.tag-bireysel { background: #f3effe; color: #6d28d9; }

.hash { display: inline-flex; align-items: center; gap: 7px; background: var(--navy); color: #dbe3ef; padding: 5px 10px; border-radius: 8px; font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; cursor: pointer; border: none; transition: background .15s; }
.hash:hover { background: var(--navy-3); }
.hash i { color: var(--brand); }
.hash .ok { color: #34d399; }

/* =========================== İSTATİSTİK =========================== */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-bottom: 22px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-sm); color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; position: relative; overflow: hidden; }
a.stat:hover { border-color: #cfd5de; box-shadow: var(--shadow); transform: translateY(-1px); color: inherit; }
a.stat.active { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(238,125,0,.12); }
.stat .top { display: flex; align-items: center; justify-content: space-between; }
.stat .ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.stat .lbl { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.stat .val { font-size: 30px; font-weight: 800; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat .foot { font-size: 12px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.stat .bar { height: 5px; border-radius: 5px; background: var(--line-2); overflow: hidden; }
.stat .bar span { display: block; height: 100%; border-radius: 5px; }
.ico-brand { background: var(--brand-50); color: var(--brand-600); }
.ico-ok { background: var(--ok-bg); color: var(--ok); }
.ico-warn { background: var(--warn-bg); color: var(--warn); }
.ico-dark { background: var(--navy); color: #fff; }

/* =========================== LİNK SONUÇ =========================== */
.link-result { border: 1px solid var(--brand-100); background: linear-gradient(180deg, var(--brand-50), #fff); border-radius: 12px; padding: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.link-result code { flex: 1; min-width: 220px; color: var(--ink); font-size: 12.5px; word-break: break-all; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; }

/* =========================== LİSTE =========================== */
.rlist { list-style: none; margin: 0; padding: 0; }
.rlist li { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--line-2); }
.rlist li:last-child { border-bottom: none; }
.rlist .r-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--line-2); color: var(--muted); display: grid; place-items: center; flex-shrink: 0; font-size: 14px; }
.rlist .r-ico.ok { background: var(--ok-bg); color: var(--ok); }
.rlist .r-ico.warn { background: var(--warn-bg); color: var(--warn); }
.rlist .r-ico.err { background: var(--err-bg); color: var(--err); }
.rlist .r-main { flex: 1; min-width: 0; }
.rlist .r-title { font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rlist .r-sub { font-size: 12px; color: var(--muted); margin-top: 4px; display: flex; gap: 8px; align-items: center; white-space: nowrap; overflow: hidden; }
.rlist .r-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

/* =========================== SAYFALAMA / MODAL =========================== */
.pager { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; font-weight: 600; }
.pager .btn { padding: 6px 12px; }
.modal-content { border: none; border-radius: 16px; background: #fff; box-shadow: 0 24px 64px -16px rgba(15,23,42,.35); }
.modal-header { border-bottom: 1px solid var(--line); padding: 18px 22px; }
.modal-title { font-weight: 800; color: var(--ink); font-size: 16px; }
.modal-footer { border-top: 1px solid var(--line); padding: 14px 22px; background: #fafbfc; border-radius: 0 0 16px 16px; }
.dropdown-menu { border-radius: 12px; border-color: var(--line); box-shadow: var(--shadow); font-size: 13px; }

.kanit-grid { display: grid; grid-template-columns: 190px 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 13px; }
.kanit-grid > div { padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.kanit-grid > div:nth-child(odd) { background: #fafbfc; color: var(--muted); font-weight: 700; }
.kanit-grid > div:nth-child(even) { color: var(--ink); word-break: break-word; }
.kanit-grid > div:nth-last-child(-n+2) { border-bottom: none; }
.verify { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid; font-weight: 700; font-size: 13px; }
.verify.ok { background: var(--ok-bg); border-color: var(--ok-line); color: #065f46; }
.verify.bad { background: var(--red-bg); border-color: var(--red-line); color: #991b1b; }
.verify.na { background: var(--line-2); border-color: var(--line); color: var(--muted); }

/* =========================== MOBİL =========================== */
@media (max-width: 1100px) {
    .sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: 0 0 40px rgba(0,0,0,.3); }
    body.nav-open .sidebar { transform: none; }
    body.nav-open .side-backdrop { display: block; position: fixed; inset: 0; background: rgba(12,20,36,.45); z-index: 1035; }
    .main { margin-left: 0; }
    .nav-toggle { display: grid; place-items: center; }
    .topbar { padding: 0 18px; }
    .topbar .mobile-logo { display: block !important; height: 26px; }
    .crumbs { display: none; }
    .page { padding: 22px 18px 34px; }
    .page-foot { padding: 16px 18px; }
}
@media (max-width: 575px) {
    .today, .sys-ok { display: none !important; }
    .page-head h1 { font-size: 21px; }
    .panel-card-body { padding: 16px; }
    .kanit-grid { grid-template-columns: 1fr; }
    .kanit-grid > div:nth-child(odd) { border-bottom: none; padding-bottom: 2px; }
}
