/* ==========================================================
   Bef Portal - Tasarim Sistemi
   Modern, light-mode SaaS arayuzu
   ========================================================== */

/* --- 1. Tasarim Token'lari --- */
:root {
    /* Marka renkleri */
    --brand-50:  #eef4ff;
    --brand-100: #d9e6ff;
    --brand-200: #bcd3ff;
    --brand-300: #8eb6ff;
    --brand-400: #598dff;
    --brand-500: #3366ff;
    --brand-600: #1f4ff5;
    --brand-700: #173de1;
    --brand-800: #1933b6;
    --brand-900: #1a318f;

    /* Notr gri tonlari (slate) */
    --gray-50:  #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Anlamsal renkler */
    --success: #16a34a; --success-bg: #dcfce7; --success-fg: #15803d;
    --warning: #d97706; --warning-bg: #fef3c7; --warning-fg: #b45309;
    --danger:  #dc2626; --danger-bg:  #fee2e2; --danger-fg:  #b91c1c;
    --info:    #0891b2; --info-bg:    #cffafe; --info-fg:    #0e7490;
    --neutral-bg: #f1f5f9; --neutral-fg: #475569;

    /* Yuzeyler */
    --bg:          #f6f8fb;
    --surface:     #ffffff;
    --surface-alt: #f8fafc;
    --border:      #e7ebf0;
    --border-strong: #d8dee6;

    /* Metin */
    --text:        #0f172a;
    --text-muted:  #64748b;
    --text-subtle: #94a3b8;

    /* Tipografi */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* Yaricaplar */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-xl: 20px;
    --r-full: 999px;

    /* Golgeler */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);

    /* Olcekler */
    --sidebar-w: 264px;
    --header-h: 64px;

    --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 2. Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }
[data-lucide] { width: 18px; height: 18px; stroke-width: 2; }

/* --- 3. Yardimcilar --- */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.grid { display: grid; }
.text-muted { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.mt-1{margin-top:4px} .mt-2{margin-top:8px} .mt-3{margin-top:12px} .mt-4{margin-top:16px} .mt-6{margin-top:24px}
.mb-2{margin-bottom:8px} .mb-3{margin-bottom:12px} .mb-4{margin-bottom:16px} .mb-6{margin-bottom:24px}
.w-full { width: 100%; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.hidden { display: none; }
.nowrap { white-space: nowrap; }

/* --- 4. Uygulama duzeni (sidebar + ana) --- */
.app { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w);
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    transition: transform var(--transition);
}
.sidebar__brand {
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 22px;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.01em;
}
.sidebar__logo {
    width: 32px; height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    color: #fff;
    display: grid; place-items: center;
    font-weight: 700; font-size: 15px;
    box-shadow: 0 4px 10px rgba(31, 79, 245, 0.3);
}
.sidebar__nav { padding: 16px 12px; overflow-y: auto; flex: 1; }
.nav-group + .nav-group { margin-top: 22px; }
.nav-group__title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-subtle);
    padding: 0 12px 8px;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    border-radius: var(--r-md);
    color: var(--gray-600);
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 2px;
}
.nav-item:hover { background: var(--gray-100); color: var(--text); }
.nav-item.active { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.nav-item.active [data-lucide] { color: var(--brand-600); }
.nav-item [data-lucide] { width: 19px; height: 19px; color: var(--gray-400); }
.nav-item__badge {
    margin-left: auto;
    background: var(--danger-bg); color: var(--danger-fg);
    font-size: 11px; font-weight: 700;
    padding: 1px 7px; border-radius: var(--r-full);
}

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

.topbar {
    height: var(--header-h);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 30;
}
.topbar__title { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.topbar__title small { display:block; font-size: 12px; color: var(--text-muted); font-weight: 400; }

.content { padding: 28px; flex: 1; width: 100%; max-width: 100%; }

/* Kullanici menusu */
.usermenu { position: relative; }
.usermenu__btn {
    display: flex; align-items: center; gap: 10px;
    padding: 5px 10px 5px 6px;
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    background: var(--surface);
    cursor: pointer;
    transition: var(--transition);
}
.usermenu__btn:hover { background: var(--gray-50); border-color: var(--border-strong); }
.avatar {
    width: 32px; height: 32px;
    border-radius: var(--r-full);
    background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
    color: #fff; display: grid; place-items: center;
    font-weight: 600; font-size: 13px;
}
.usermenu__dropdown {
    position: absolute; right: 0; top: calc(100% + 8px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    min-width: 210px; padding: 6px;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: var(--transition);
}
.usermenu.open .usermenu__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.usermenu__header { padding: 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.dropdown-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: var(--r-md);
    color: var(--gray-700); width: 100%; border: 0; background: none; cursor: pointer; text-align: left;
    font-size: 13.5px;
}
.dropdown-item:hover { background: var(--gray-100); }
.dropdown-item.danger { color: var(--danger-fg); }
.dropdown-item.danger:hover { background: var(--danger-bg); }
.dropdown-item [data-lucide] { width: 16px; height: 16px; }

/* --- 5. Kartlar --- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
}
.card__header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card__title { font-size: 15px; font-weight: 650; }
.card__body { padding: 22px; }
.card__footer { padding: 16px 22px; border-top: 1px solid var(--border); background: var(--surface-alt); border-radius: 0 0 var(--r-lg) var(--r-lg); }

/* --- 6. Istatistik kartlari --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}
/* Izgaradaki kartlar esit yukseklikte; footer en alta sabitlenir */
.stats-grid > .card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.stats-grid > .card > .card__body { flex: 1 1 auto; }
.stats-grid > .card > .card__footer { margin-top: auto; }
.stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 20px;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}
.stat:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.stat__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.stat__icon {
    width: 42px; height: 42px; border-radius: var(--r-md);
    display: grid; place-items: center;
}
.stat__icon [data-lucide] { width: 21px; height: 21px; }
.stat__icon.brand { background: var(--brand-50); color: var(--brand-600); }
.stat__icon.green { background: var(--success-bg); color: var(--success-fg); }
.stat__icon.amber { background: var(--warning-bg); color: var(--warning-fg); }
.stat__icon.red   { background: var(--danger-bg); color: var(--danger-fg); }
.stat__icon.cyan  { background: var(--info-bg); color: var(--info-fg); }
.stat__value { font-size: 27px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.stat__label { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
.stat__trend { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.stat__trend.up { color: var(--success); }
.stat__trend.down { color: var(--danger); }

/* --- 7. Rozetler --- */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px;
    border-radius: var(--r-full);
    font-size: 12px; font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.9; }
.badge--success { background: var(--success-bg); color: var(--success-fg); }
.badge--warning { background: var(--warning-bg); color: var(--warning-fg); }
.badge--danger  { background: var(--danger-bg);  color: var(--danger-fg); }
.badge--info    { background: var(--info-bg);    color: var(--info-fg); }
.badge--neutral { background: var(--neutral-bg); color: var(--neutral-fg); }
.badge--brand   { background: var(--brand-50);   color: var(--brand-700); }

/* --- 8. Butonlar --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 9px 16px;
    border-radius: var(--r-md);
    font-weight: 600; font-size: 13.5px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn [data-lucide] { width: 17px; height: 17px; }
.btn--primary { background: var(--brand-600); color: #fff; box-shadow: 0 1px 2px rgba(31,79,245,0.3); }
.btn--primary:hover { background: var(--brand-700); }
.btn--secondary { background: var(--surface); color: var(--gray-700); border-color: var(--border-strong); }
.btn--secondary:hover { background: var(--gray-50); border-color: var(--gray-300); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: var(--danger-fg); }
.btn--ghost { background: transparent; color: var(--gray-600); }
.btn--ghost:hover { background: var(--gray-100); }
.btn--sm { padding: 6px 11px; font-size: 12.5px; border-radius: var(--r-sm); }
.btn--icon { padding: 8px; }
.btn--icon [data-lucide] { width: 16px; height: 16px; }
.btn--block { width: 100%; }

/* --- 9. Tablolar --- */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table thead th {
    text-align: left;
    padding: 12px 18px;
    font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--text-subtle);
    background: var(--surface-alt);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.table tbody td { padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--transition); }
.table tbody tr:hover { background: var(--surface-alt); }
.table .cell-primary { font-weight: 600; color: var(--text); }
.table .cell-sub { color: var(--text-muted); font-size: 12.5px; }
.table-actions { display: flex; gap: 6px; justify-content: flex-end; }

.cell-user { display: flex; align-items: center; gap: 11px; }
.cell-user .avatar { width: 36px; height: 36px; }

/* --- 10. Formlar --- */
.form-grid { display: grid; gap: 18px; }
.form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.span-2 { grid-column: span 2; }
.label { font-size: 13px; font-weight: 600; color: var(--gray-700); }
.label .req { color: var(--danger); }
.input, .select, .textarea {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    background: var(--surface);
    transition: var(--transition);
    font-size: 14px;
}
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--brand-400);
    box-shadow: 0 0 0 3px var(--brand-100);
}
.input::placeholder, .textarea::placeholder { color: var(--text-subtle); }
.textarea { resize: vertical; min-height: 90px; }
.input.error, .select.error, .textarea.error { border-color: var(--danger); }

/* Ozel select - native ok yerine kendi chevron'umuz */
.select {
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    color: var(--text);
    cursor: pointer;
    padding-right: 40px;
    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='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 16px 16px;
}
.select:hover { border-color: var(--gray-300); }
.select::-ms-expand { display: none; }
.select option { color: var(--text); background: var(--surface); }
.select:disabled { background-color: var(--gray-100); color: var(--text-muted); cursor: not-allowed; opacity: 0.75; }
.field__error { color: var(--danger-fg); font-size: 12.5px; }
.field__hint { color: var(--text-muted); font-size: 12px; }
.input-group { position: relative; display: flex; align-items: center; }
.input-group [data-lucide] { position: absolute; left: 13px; color: var(--text-subtle); width: 18px; height: 18px; }
.input-group .input { padding-left: 40px; }
.input-prefix {
    display: inline-flex; align-items: center; padding: 0 12px;
    background: var(--gray-100); border: 1px solid var(--border-strong); border-right: 0;
    border-radius: var(--r-md) 0 0 var(--r-md); color: var(--text-muted); font-size: 13px;
}
.input-prefix + .input { border-radius: 0 var(--r-md) var(--r-md) 0; }

/* Switch */
.switch { position: relative; display: inline-block; width: 42px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch__slider { position: absolute; inset: 0; background: var(--gray-300); border-radius: var(--r-full); transition: var(--transition); cursor: pointer; }
.switch__slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: var(--transition); box-shadow: var(--shadow-sm); }
.switch input:checked + .switch__slider { background: var(--brand-600); }
.switch input:checked + .switch__slider::before { transform: translateX(18px); }
.switch-row { display: flex; align-items: center; gap: 12px; }

/* Ozel checkbox & radio */
.checkbox, .radio {
    display: inline-flex; align-items: center; gap: 9px;
    cursor: pointer; user-select: none;
    font-size: 13.5px; color: var(--gray-600);
}
.checkbox input[type="checkbox"],
.radio input[type="radio"],
.check {
    appearance: none; -webkit-appearance: none;
    flex-shrink: 0; margin: 0;
    width: 18px; height: 18px;
    border: 1.5px solid var(--border-strong);
    background: var(--surface);
    cursor: pointer; position: relative;
    transition: var(--transition);
}
.checkbox input[type="checkbox"],
.check { border-radius: 6px; }
.radio input[type="radio"] { border-radius: 50%; }

.checkbox input[type="checkbox"]:hover,
.radio input[type="radio"]:hover,
.check:hover { border-color: var(--brand-400); }

.checkbox input[type="checkbox"]:focus-visible,
.radio input[type="radio"]:focus-visible,
.check:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-100); border-color: var(--brand-400); }

.checkbox input[type="checkbox"]:checked,
.check:checked {
    background: var(--brand-600); border-color: var(--brand-600);
}
/* Tik isareti */
.checkbox input[type="checkbox"]:checked::after,
.check:checked::after {
    content: ''; position: absolute;
    left: 5px; top: 1.5px;
    width: 5px; height: 9px;
    border: solid #fff; border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
/* Radio secili nokta */
.radio input[type="radio"]:checked {
    border-color: var(--brand-600); border-width: 5px;
}
.checkbox input:disabled,
.radio input:disabled,
.check:disabled { opacity: 0.5; cursor: not-allowed; }

/* --- 11. Uyari / flash --- */
.alert {
    display: flex; align-items: flex-start; gap: 11px;
    padding: 13px 16px; border-radius: var(--r-md);
    font-size: 13.5px; margin-bottom: 18px;
    border: 1px solid transparent;
}
.alert [data-lucide] { width: 19px; height: 19px; flex-shrink: 0; margin-top: 1px; }
.alert--success { background: var(--success-bg); color: var(--success-fg); border-color: #bbf7d0; }
.alert--error   { background: var(--danger-bg);  color: var(--danger-fg);  border-color: #fecaca; }
.alert--info    { background: var(--info-bg);     color: var(--info-fg);     border-color: #a5f3fc; }
.alert--warning { background: var(--warning-bg);  color: var(--warning-fg);  border-color: #fde68a; }

/* --- 12. Bos durum --- */
.empty {
    text-align: center; padding: 56px 24px; color: var(--text-muted);
}
.empty__icon {
    width: 56px; height: 56px; border-radius: var(--r-lg);
    background: var(--gray-100); color: var(--gray-400);
    display: grid; place-items: center; margin: 0 auto 16px;
}
.empty__icon [data-lucide] { width: 26px; height: 26px; }
.empty h3 { font-size: 15px; color: var(--text); margin-bottom: 6px; }

/* --- 13. Sayfa basligi & araclar --- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.page-head p { color: var(--text-muted); margin-top: 3px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search-box { position: relative; min-width: 240px; }
.search-box [data-lucide] { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-subtle); width: 17px; height: 17px; }
.search-box input { padding-left: 38px; }

/* Sekmeler / filtre cipleri */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
    padding: 6px 13px; border-radius: var(--r-full);
    background: var(--surface); border: 1px solid var(--border-strong);
    font-size: 13px; font-weight: 500; color: var(--gray-600);
    transition: var(--transition); cursor: pointer;
}
.chip:hover { border-color: var(--gray-300); }
.chip.active { background: var(--gray-900); color: #fff; border-color: var(--gray-900); }

/* --- 14. Sayfalama --- */
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.pagination__info { color: var(--text-muted); font-size: 13px; }
.pagination__pages { display: flex; gap: 4px; }
.page-link {
    min-width: 36px; height: 36px; padding: 0 10px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border-strong); border-radius: var(--r-md);
    background: var(--surface); color: var(--gray-600); font-size: 13.5px; font-weight: 500;
    transition: var(--transition);
}
.page-link:hover { background: var(--gray-50); }
.page-link.active { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }
.page-link.disabled { opacity: 0.45; pointer-events: none; }

/* --- 15. Tanim listeleri (detay) --- */
.dl { display: grid; grid-template-columns: 160px 1fr; gap: 14px 20px; }
.dl dt { color: var(--text-muted); font-size: 13px; }
.dl dd { font-weight: 500; }

/* --- 16. Modal --- */
.modal-backdrop {
    position: fixed; inset: 0; background: rgba(15,23,42,0.45);
    display: none; align-items: center; justify-content: center; z-index: 60; padding: 20px;
    backdrop-filter: blur(2px);
}
.modal-backdrop.open { display: flex; }
.modal {
    background: var(--surface); border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg); width: 100%; max-width: 480px;
    max-height: 90vh; overflow-y: auto;
    animation: modalIn 180ms ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.97) translateY(8px); } to { opacity: 1; transform: none; } }
.modal__header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal__title { font-size: 16px; font-weight: 650; }
.modal__body { padding: 24px; }
.modal__footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

/* --- 17. Mobil menu --- */
.menu-toggle { display: none; }
.sidebar__backdrop { display: none; }

@media (max-width: 1024px) {
    .form-grid.cols-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
    .sidebar.open { transform: translateX(0); }
    .main { margin-left: 0; }
    .menu-toggle { display: inline-flex; }
    .sidebar__backdrop.open { display: block; position: fixed; inset: 0; background: rgba(15,23,42,0.4); z-index: 35; }
    .form-grid.cols-2, .form-grid.cols-3 { grid-template-columns: 1fr; }
    .field.span-2 { grid-column: span 1; }
    .dl { grid-template-columns: 1fr; gap: 4px 0; }
    .dl dd { margin-bottom: 10px; }
}
@media (max-width: 560px) {
    .content { padding: 18px; }
    .topbar { padding: 0 16px; }
    .search-box { min-width: 0; flex: 1; }
}

/* --- 18. Cesitli --- */
.divider { height: 1px; background: var(--border); margin: 20px 0; border: 0; }
.muted-link { color: var(--brand-600); font-weight: 600; }
.muted-link:hover { text-decoration: underline; }
.progress { height: 8px; background: var(--gray-200); border-radius: var(--r-full); overflow: hidden; }
.progress__bar { height: 100%; background: var(--brand-500); border-radius: var(--r-full); }
.copy-field { display: flex; align-items: center; gap: 8px; }
.copy-field code { flex: 1; padding: 9px 12px; background: var(--gray-50); border: 1px solid var(--border); border-radius: var(--r-md); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, monospace; }
