/* ==========================================================================
   Yönetim Paneli — Kurumsal Arayüz
   ========================================================================== */

:root {
    --a-bg: #f6f7f9;
    --a-surface: #ffffff;
    --a-sidebar: #131c2b;
    --a-sidebar-2: #0e1622;
    --a-line: #e4e7ec;
    --a-line-soft: #eef0f3;
    --a-text: #1c2532;
    --a-muted: #667085;
    --a-muted-2: #98a2b3;
    --a-primary: #1f3350;
    --a-primary-h: #16243a;
    --a-accent: #9a6a4a;
    --a-green: #3f7d63;
    --a-green-bg: #e9f3ee;
    --a-red: #b4443c;
    --a-red-bg: #fcedeb;
    --a-amber: #96702a;
    --a-amber-bg: #fdf4e3;
    --a-blue: #2c5a8c;
    --a-blue-bg: #eaf1f9;

    --a-radius: 10px;
    --a-radius-lg: 14px;
    --a-shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
    --a-shadow-md: 0 4px 16px rgba(16, 24, 40, .08);
    --a-shadow-lg: 0 16px 44px rgba(16, 24, 40, .14);

    --sidebar-w: 262px;
    --topbar-h: 66px;
}

* { box-sizing: border-box; }

body.admin {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--a-text);
    background: var(--a-bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--a-primary); text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
h1 { font-size: 1.55rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
h4 { font-size: .92rem; }
p { margin: 0 0 1em; }

/* ---------- Kabuk ---------- */
.admin-shell { display: flex; min-height: 100vh; }

/* ---------- Sidebar ---------- */
.sidebar {
    width: var(--sidebar-w);
    flex: none;
    background: linear-gradient(180deg, var(--a-sidebar) 0%, var(--a-sidebar-2) 100%);
    color: rgba(255, 255, 255, .72);
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    height: var(--topbar-h);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    flex: none;
}

.sidebar-brand .mark {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .02em;
    flex: none;
}

.sidebar-brand b { color: #fff; font-size: .92rem; display: block; line-height: 1.25; }
.sidebar-brand span { font-size: .68rem; color: rgba(255, 255, 255, .42); letter-spacing: .1em; text-transform: uppercase; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 16px 12px 24px; }
.sidebar-nav::-webkit-scrollbar { width: 5px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 4px; }

.nav-group-title {
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .32);
    padding: 18px 12px 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: .885rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .72);
    transition: background .18s ease, color .18s ease;
    margin-bottom: 1px;
    position: relative;
}

.nav-link svg { width: 17px; height: 17px; flex: none; opacity: .82; }
.nav-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-link.active { background: rgba(255, 255, 255, .12); color: #fff; font-weight: 600; }

.nav-link.active::before {
    content: "";
    position: absolute;
    left: -12px; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 20px;
    border-radius: 0 3px 3px 0;
    background: var(--a-accent);
}

.nav-badge {
    margin-left: auto;
    min-width: 20px;
    padding: 1px 7px;
    border-radius: 100px;
    background: var(--a-accent);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    text-align: center;
}

.sidebar-foot {
    padding: 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    font-size: .74rem;
    color: rgba(255, 255, 255, .38);
    flex: none;
}

.sidebar-foot a { color: rgba(255, 255, 255, .6); }
.sidebar-foot a:hover { color: #fff; }

/* ---------- Ana alan ---------- */
.admin-main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; }

.topbar {
    height: var(--topbar-h);
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--a-line);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 26px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-title { font-weight: 600; font-size: 1rem; }
.topbar-title small { display: block; font-weight: 400; font-size: .76rem; color: var(--a-muted); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.sidebar-toggle {
    display: none;
    width: 38px; height: 38px;
    border: 1px solid var(--a-line);
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--a-text);
}

.sidebar-toggle svg { width: 19px; height: 19px; }

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px 5px 5px;
    border: 1px solid var(--a-line);
    border-radius: 100px;
    background: #fff;
    cursor: pointer;
    position: relative;
}

.user-avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--a-primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: .74rem;
    font-weight: 600;
    flex: none;
    overflow: hidden;
}

.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-chip b { font-size: .82rem; font-weight: 600; }
.user-chip small { display: block; font-size: .7rem; color: var(--a-muted); line-height: 1 }

.dropdown { position: relative; }

.dropdown-menu {
    position: absolute;
    right: 0; top: calc(100% + 8px);
    min-width: 208px;
    background: #fff;
    border: 1px solid var(--a-line);
    border-radius: var(--a-radius);
    box-shadow: var(--a-shadow-lg);
    padding: 6px;
    display: none;
    z-index: 70;
}

.dropdown.open .dropdown-menu { display: block; }

.dropdown-menu a, .dropdown-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border: 0;
    border-radius: 7px;
    background: none;
    font: inherit;
    font-size: .86rem;
    color: var(--a-text);
    text-align: left;
    cursor: pointer;
}

.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--a-line-soft); }
.dropdown-menu svg { width: 16px; height: 16px; color: var(--a-muted); }
.dropdown-divider { height: 1px; background: var(--a-line); margin: 5px 0; }

.admin-content { padding: 26px; flex: 1; }
.admin-content > .page-head { margin-bottom: 22px; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.page-head h1 { margin-bottom: 4px; }
.page-head p { color: var(--a-muted); font-size: .89rem; margin: 0; }
.page-head-actions { display: flex; gap: 9px; flex-wrap: wrap; }

/* ---------- Kart ---------- */
.panel {
    background: var(--a-surface);
    border: 1px solid var(--a-line);
    border-radius: var(--a-radius-lg);
    box-shadow: var(--a-shadow);
    overflow: hidden;
}

.panel + .panel { margin-top: 20px; }

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--a-line);
    flex-wrap: wrap;
}

.panel-head h2, .panel-head h3 { margin: 0; font-size: .98rem; }
.panel-head p { margin: 2px 0 0; font-size: .8rem; color: var(--a-muted); }
.panel-body { padding: 20px; }
.panel-foot { padding: 14px 20px; border-top: 1px solid var(--a-line); background: #fbfcfd; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- İstatistik ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 22px; }

.stat-card {
    background: #fff;
    border: 1px solid var(--a-line);
    border-radius: var(--a-radius-lg);
    padding: 18px 20px;
    box-shadow: var(--a-shadow);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: box-shadow .22s ease, transform .22s ease;
}

.stat-card:hover { box-shadow: var(--a-shadow-md); transform: translateY(-2px); }

.stat-icon {
    width: 42px; height: 42px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    flex: none;
    background: var(--a-blue-bg);
    color: var(--a-blue);
}

.stat-icon svg { width: 20px; height: 20px; }
.stat-icon.green { background: var(--a-green-bg); color: var(--a-green); }
.stat-icon.amber { background: var(--a-amber-bg); color: var(--a-amber); }
.stat-icon.red { background: var(--a-red-bg); color: var(--a-red); }
.stat-icon.accent { background: #f4ece6; color: var(--a-accent); }
.stat-icon.slate { background: #eef0f3; color: var(--a-primary); }

.stat-card .val { font-size: 1.5rem; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.stat-card .lbl { font-size: .8rem; color: var(--a-muted); }

/* ---------- Tablo ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .875rem; }

.table th {
    text-align: left;
    padding: 11px 16px;
    background: #fafbfc;
    border-bottom: 1px solid var(--a-line);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--a-muted);
    white-space: nowrap;
}

.table td { padding: 13px 16px; border-bottom: 1px solid var(--a-line-soft); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s ease; }
.table tbody tr:hover { background: #fafbfc; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .nowrap { white-space: nowrap; }
.table .w-thumb { width: 62px; }
.table .actions { text-align: right; white-space: nowrap; }

.thumb {
    width: 46px; height: 46px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--a-line-soft);
    border: 1px solid var(--a-line);
}

.thumb-wide { width: 74px; height: 46px; }
.thumb-book { width: 40px; height: 56px; }

.cell-title { font-weight: 600; color: var(--a-text); display: block; }
.cell-sub { font-size: .79rem; color: var(--a-muted); display: block; margin-top: 1px; }

/* ---------- Rozet ---------- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: .74rem;
    font-weight: 600;
    background: var(--a-line-soft);
    color: var(--a-muted);
    white-space: nowrap;
}

.pill-green { background: var(--a-green-bg); color: var(--a-green); }
.pill-red { background: var(--a-red-bg); color: var(--a-red); }
.pill-amber { background: var(--a-amber-bg); color: var(--a-amber); }
.pill-blue { background: var(--a-blue-bg); color: var(--a-blue); }
.pill-accent { background: #f4ece6; color: var(--a-accent); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-size: .855rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s ease;
    white-space: nowrap;
    line-height: 1.4;
}

.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--a-primary); color: #fff; }
.btn-primary:hover { background: var(--a-primary-h); color: #fff; }
.btn-accent { background: var(--a-accent); color: #fff; }
.btn-accent:hover { background: #85583c; color: #fff; }
.btn-light { background: #fff; border-color: var(--a-line); color: var(--a-text); }
.btn-light:hover { background: #f7f8fa; border-color: #d3d8e0; }
.btn-danger { background: var(--a-red); color: #fff; }
.btn-danger:hover { background: #99372f; color: #fff; }
.btn-ghost { background: transparent; color: var(--a-muted); }
.btn-ghost:hover { background: var(--a-line-soft); color: var(--a-text); }
.btn-sm { padding: 6px 12px; font-size: .79rem; }
.btn-sm svg { width: 14px; height: 14px; }
.btn-lg { padding: 12px 22px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.icon-btn {
    width: 32px; height: 32px;
    border-radius: 7px;
    border: 1px solid var(--a-line);
    background: #fff;
    display: inline-grid;
    place-items: center;
    color: var(--a-muted);
    cursor: pointer;
    transition: all .18s ease;
}

.icon-btn svg { width: 15px; height: 15px; }
.icon-btn:hover { background: var(--a-primary); border-color: var(--a-primary); color: #fff; }
.icon-btn.danger:hover { background: var(--a-red); border-color: var(--a-red); }
.btn-group { display: inline-flex; gap: 6px; }

/* ---------- Formlar ---------- */
.form-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.col-12 { grid-column: span 12; }
.col-8 { grid-column: span 8; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }

.field { display: flex; flex-direction: column; }
.field.mb { margin-bottom: 18px; }

.label { font-size: .82rem; font-weight: 600; color: #344054; margin-bottom: 6px; display: flex; align-items: center; gap: 5px; }
.label .req { color: var(--a-red); }

.input, .select, .textarea {
    width: 100%;
    padding: 9px 13px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font: inherit;
    font-size: .88rem;
    color: var(--a-text);
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--a-primary);
    box-shadow: 0 0 0 3px rgba(31, 51, 80, .1);
}

.input::placeholder, .textarea::placeholder { color: var(--a-muted-2); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.65; }
.textarea-lg { min-height: 320px; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .82rem; }
.input.err, .textarea.err, .select.err { border-color: var(--a-red); }
.err-msg { font-size: .78rem; color: var(--a-red); margin-top: 5px; }
.hint { font-size: .78rem; color: var(--a-muted); margin-top: 5px; }

.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
    padding-right: 34px;
}

/* Anahtar (switch) */
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }

.switch .track {
    width: 40px; height: 22px;
    border-radius: 100px;
    background: #d0d5dd;
    position: relative;
    transition: background .22s ease;
    flex: none;
}

.switch .track::after {
    content: "";
    position: absolute;
    left: 2px; top: 2px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .2);
    transition: transform .22s cubic-bezier(.4, 0, .2, 1);
}

.switch input:checked + .track { background: var(--a-green); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch .txt { font-size: .86rem; font-weight: 500; }
.switch .txt small { display: block; font-size: .76rem; color: var(--a-muted); font-weight: 400; }

.check { display: flex; align-items: center; gap: 9px; font-size: .86rem; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--a-primary); }

/* Dosya yükleme */
.upload {
    border: 1.5px dashed #d0d5dd;
    border-radius: var(--a-radius);
    padding: 22px;
    text-align: center;
    background: #fbfcfd;
    cursor: pointer;
    transition: all .2s ease;
}

.upload:hover { border-color: var(--a-primary); background: #f7f9fc; }
.upload svg { width: 26px; height: 26px; color: var(--a-muted-2); margin-bottom: 8px; }
.upload p { margin: 0; font-size: .85rem; color: var(--a-muted); }
.upload b { color: var(--a-primary); }
.upload input[type=file] { display: none; }

.file-preview { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--a-line); border-radius: var(--a-radius); background: #fff; margin-top: 10px; }
.file-preview img { width: 58px; height: 58px; object-fit: cover; border-radius: 8px; border: 1px solid var(--a-line); }
.file-preview .meta { flex: 1; min-width: 0; font-size: .83rem; }
.file-preview .meta b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-preview .meta span { color: var(--a-muted); font-size: .78rem; }

/* ---------- Uyarı ---------- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 16px;
    border-radius: var(--a-radius);
    font-size: .87rem;
    margin-bottom: 18px;
    border: 1px solid;
}

.alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.alert-success { background: var(--a-green-bg); border-color: rgba(63, 125, 99, .25); color: #2c5b47; }
.alert-danger { background: var(--a-red-bg); border-color: rgba(180, 68, 60, .25); color: #8b332c; }
.alert-info { background: var(--a-blue-bg); border-color: rgba(44, 90, 140, .22); color: #24486e; }
.alert-warning { background: var(--a-amber-bg); border-color: rgba(150, 112, 42, .25); color: #7a5a1f; }
.alert ul { margin: 5px 0 0; padding-left: 17px; }

/* ---------- Araç çubuğu ---------- */
.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 20px;
    border-bottom: 1px solid var(--a-line);
    background: #fbfcfd;
}

.toolbar .search { position: relative; flex: 1; min-width: 200px; max-width: 340px; }
.toolbar .search input { padding-left: 36px; }
.toolbar .search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--a-muted-2); }
.toolbar .spacer { margin-left: auto; }

.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--a-line); padding: 0 20px; background: #fff; }

.tab {
    padding: 13px 14px;
    font-size: .87rem;
    font-weight: 500;
    color: var(--a-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all .18s ease;
}

.tab:hover { color: var(--a-text); }
.tab.active { color: var(--a-primary); border-bottom-color: var(--a-primary); font-weight: 600; }

/* ---------- Sayfalama ---------- */
.pagination { display: flex; gap: 5px; list-style: none; margin: 0; padding: 16px 20px; justify-content: flex-end; flex-wrap: wrap; }

.page-item .page-link {
    display: grid;
    place-items: center;
    min-width: 34px; height: 34px;
    padding: 0 10px;
    border: 1px solid var(--a-line);
    border-radius: 7px;
    background: #fff;
    font-size: .84rem;
    color: var(--a-text);
    transition: all .18s ease;
}

.page-item .page-link:hover { border-color: #c8cfd9; background: #fafbfc; }
.page-item.active .page-link { background: var(--a-primary); border-color: var(--a-primary); color: #fff; }
.page-item.disabled .page-link { opacity: .45; pointer-events: none; }

/* ---------- Boş durum ---------- */
.empty { text-align: center; padding: 56px 24px; color: var(--a-muted); }
.empty svg { width: 40px; height: 40px; color: var(--a-muted-2); margin: 0 auto 14px; }
.empty h3 { font-size: 1rem; margin-bottom: 5px; color: var(--a-text); }
.empty p { font-size: .86rem; margin: 0 0 18px; }

/* ---------- Grafik ---------- */
.chart { display: flex; align-items: flex-end; gap: 8px; height: 190px; padding: 10px 0; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }

.chart-bar {
    width: 100%;
    max-width: 42px;
    border-radius: 6px 6px 3px 3px;
    background: linear-gradient(180deg, var(--a-primary) 0%, #35507a 100%);
    min-height: 4px;
    transition: opacity .2s ease;
    position: relative;
}

.chart-col:hover .chart-bar { opacity: .82; }
.chart-bar span { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: .7rem; font-weight: 600; color: var(--a-muted); }
.chart-label { font-size: .68rem; color: var(--a-muted); white-space: nowrap; }

/* ---------- Liste ---------- */
.list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 20px;
    border-bottom: 1px solid var(--a-line-soft);
    transition: background .15s ease;
}

.list-item:last-child { border-bottom: 0; }
.list-item:hover { background: #fafbfc; }
.list-item .av { width: 34px; height: 34px; border-radius: 50%; background: var(--a-line-soft); color: var(--a-muted); display: grid; place-items: center; font-size: .74rem; font-weight: 600; flex: none; }
.list-item .body { flex: 1; min-width: 0; }
.list-item .body b { font-size: .875rem; font-weight: 600; display: block; }
.list-item .body span { font-size: .8rem; color: var(--a-muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .time { font-size: .75rem; color: var(--a-muted-2); flex: none; white-space: nowrap; }
.list-item.unread { background: #f8fafd; }
.list-item.unread .body b::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--a-accent); margin-left: 7px; vertical-align: middle; }

/* ---------- Tekrar eden satır (bölüm/link) ---------- */
.repeat-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1px solid var(--a-line);
    border-radius: 9px;
    background: #fff;
    margin-bottom: 8px;
}

.repeat-row .idx { width: 24px; height: 24px; border-radius: 6px; background: var(--a-line-soft); color: var(--a-muted); display: grid; place-items: center; font-size: .74rem; font-weight: 600; flex: none; }
.repeat-row .txt { flex: 1; min-width: 0; }
.repeat-row .txt b { font-size: .87rem; display: block; }
.repeat-row .txt span { font-size: .78rem; color: var(--a-muted); }

/* ---------- Giriş ekranı ---------- */
.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--a-bg);
}

.login-aside {
    background: linear-gradient(150deg, var(--a-sidebar) 0%, #1e3350 60%, #2a4360 100%);
    color: rgba(255, 255, 255, .78);
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.login-aside::after {
    content: "";
    position: absolute;
    bottom: -220px; right: -180px;
    width: 520px; height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(154, 106, 74, .3), transparent 68%);
}

.login-aside > * { position: relative; z-index: 1; }
.login-aside h2 { color: #fff; font-size: 1.9rem; line-height: 1.25; max-width: 15ch; }
.login-aside p { max-width: 42ch; font-size: .95rem; }

.login-quote { border-left: 2px solid rgba(255, 255, 255, .25); padding-left: 20px; font-size: .92rem; font-style: italic; }

.login-main { display: grid; place-items: center; padding: 40px 24px; }
.login-card { width: 100%; max-width: 400px; }

.login-card .mark {
    width: 48px; height: 48px;
    border-radius: 13px;
    background: var(--a-primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 600;
    margin-bottom: 24px;
}

/* ---------- Onay penceresi ---------- */
.confirm-form { display: inline; }

/* ---------- Yardımcılar ---------- */
.muted { color: var(--a-muted); }
.small { font-size: .82rem; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 6px; } .gap-2 { gap: 10px; } .gap-3 { gap: 16px; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 14px; } .mt-3 { margin-top: 20px; } .mt-4 { margin-top: 28px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 14px; } .mb-3 { margin-bottom: 20px; }
.w-full { width: 100%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.split { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1200px) {
    .split { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); box-shadow: var(--a-shadow-lg); }
    .sidebar.open { transform: none; }
    .admin-main { margin-left: 0; }
    .sidebar-toggle { display: flex; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .login-page { grid-template-columns: 1fr; }
    .login-aside { display: none; }
}

@media (max-width: 720px) {
    .admin-content { padding: 18px 16px; }
    .topbar { padding: 0 16px; }
    .col-8, .col-6, .col-4, .col-3 { grid-column: span 12; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .user-chip b, .user-chip small { display: none; }
    .topbar-title small { display: none; }
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(16, 24, 40, .45);
    z-index: 55;
    display: none;
}

.sidebar-backdrop.show { display: block; }

@media (min-width: 1025px) { .sidebar-backdrop { display: none !important; } }
