/* ============================================================
   public/style.css — Hükümdar AC Web Paneli
   ============================================================
   Koyu tema. Oyun içi NUI paneliyle aynı tasarım dili, ancak
   tarayıcı için kenar çubuklu düzen.
   ============================================================ */

:root {
    --bg:           #0b0e14;
    --bg-panel:     #11161f;
    --bg-elevated:  #171e29;
    --bg-input:     #0d121a;
    --bg-hover:     #1d2634;

    --border:       #27303d;
    --border-light: #323d4d;

    --text:         #e6ecf3;
    --text-dim:     #93a2b5;
    --text-faint:   #5f6e81;

    --accent:       #4a9eff;
    --accent-dim:   #2b6cb0;

    --ok:           #3ecf8e;
    --warn:         #f5a524;
    --danger:       #f04444;
    --danger-dim:   #8b2020;
    --info:         #9b7ef5;
    --proven:       #d4306a;

    --discord:      #5865f2;

    --radius:       7px;
    --radius-sm:    4px;

    --sidebar-w:    232px;
}

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

html, body {
    height: 100%;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

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

/* ============================================================
   GİRİŞ SAYFASI
   ============================================================ */
body.login-page {
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(1000px 500px at 50% -10%, #1a2436 0%, transparent 70%),
        var(--bg);
}

.login-box {
    width: min(440px, 100%);
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 34px 30px 26px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
}

.login-brand {
    text-align: center;
    margin-bottom: 26px;
}

.login-brand .brand-mark {
    margin: 0 auto 14px;
    width: 52px; height: 52px;
    font-size: 19px;
}

.login-brand h1 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.login-brand p {
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 4px;
}

.login-error {
    padding: 13px 15px;
    margin-bottom: 20px;
    background: rgba(240, 68, 68, 0.09);
    border: 1px solid var(--danger-dim);
    border-left: 3px solid var(--danger);
    border-radius: var(--radius-sm);
}

.login-error strong {
    display: block;
    font-size: 13.5px;
    color: #ffc8c8;
    margin-bottom: 5px;
}

.login-error p {
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text-dim);
}

.btn-discord {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px;
    font-size: 14.5px;
    font-weight: 600;
    color: #fff;
    background: var(--discord);
    border-radius: var(--radius);
    transition: background 0.14s, transform 0.08s;
}

.btn-discord:hover {
    background: #4752c4;
    text-decoration: none;
}
.btn-discord:active { transform: translateY(1px); }

.login-info {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.login-info p {
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--text-dim);
}

.login-info .login-hint {
    margin-top: 10px;
    font-size: 11.5px;
    color: var(--text-faint);
}

.login-footer {
    margin-top: 18px;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--warn);
    text-align: center;
}

/* ============================================================
   ORTAK: MARKA İŞARETİ
   ============================================================ */
.brand-mark {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--info));
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    border-radius: var(--radius);
    flex-shrink: 0;
}

/* ============================================================
   PANEL DÜZENİ
   ============================================================ */
body.app-page { overflow: hidden; }

.layout {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    height: 100vh;
}

/* ---------------- KENAR ÇUBUĞU ---------------- */
.sidebar {
    display: flex;
    flex-direction: column;
    background: var(--bg-panel);
    border-right: 1px solid var(--border);
    overflow: hidden;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 17px 16px;
    border-bottom: 1px solid var(--border);
}

.sidebar-brand strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.sidebar-brand small {
    display: block;
    font-size: 11px;
    color: var(--text-faint);
    margin-top: 1px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 11px;
    margin-bottom: 2px;
    font-size: 13px;
    font-family: inherit;
    text-align: left;
    color: var(--text-dim);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.11s, color 0.11s;
}

.nav-item:hover { background: var(--bg-hover); color: var(--text); }

.nav-item.active {
    background: rgba(74, 158, 255, 0.13);
    color: var(--accent);
    font-weight: 600;
}

.nav-icon {
    width: 16px;
    text-align: center;
    font-size: 13px;
    opacity: 0.85;
}

.nav-count {
    margin-left: auto;
    min-width: 20px;
    padding: 1px 6px;
    font-size: 10.5px;
    font-weight: 700;
    text-align: center;
    background: var(--bg-hover);
    color: var(--text-dim);
    border-radius: 9px;
}

.nav-count:empty { display: none; }
.nav-count.warn { background: var(--warn); color: #231703; }

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid var(--border);
}

.user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    margin-bottom: 9px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
}

.user-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.user-meta { min-width: 0; }

.user-meta strong {
    display: block;
    font-size: 12.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-meta small {
    display: block;
    font-size: 11px;
    color: var(--accent);
    margin-top: 1px;
}

.btn-block { width: 100%; }

.sidebar-version {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 10.5px;
    color: var(--text-faint);
}

.status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--text-faint);
    flex-shrink: 0;
    margin-left: auto;
}
.status-dot.online  { background: var(--ok); }
.status-dot.offline { background: var(--danger); }
.status-dot.disabled{ background: var(--text-faint); }

/* ---------------- ANA BÖLÜM ---------------- */
.main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 20px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.topbar-left h2 {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-input {
    width: 320px;
    padding: 8px 12px;
    font-size: 12.5px;
    font-family: inherit;
    color: var(--text);
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    outline: none;
}

.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--text-faint); }

/* ---------------- UYARI BANDI ---------------- */
.banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 20px;
    font-size: 12.5px;
    line-height: 1.5;
    color: #ffd9a0;
    background: rgba(245, 165, 36, 0.11);
    border-bottom: 1px solid rgba(245, 165, 36, 0.3);
    flex-shrink: 0;
}

.banner.danger {
    color: #ffc0c0;
    background: rgba(240, 68, 68, 0.11);
    border-bottom-color: rgba(240, 68, 68, 0.3);
}

.banner-close {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 14px;
    cursor: pointer;
    opacity: 0.7;
    flex-shrink: 0;
}
.banner-close:hover { opacity: 1; }

/* ---------------- İÇERİK ---------------- */
.content {
    flex: 1;
    overflow: auto;
    min-height: 0;
}

/* ============================================================
   DÜĞMELER
   ============================================================ */
.btn {
    padding: 7px 14px;
    font-size: 12.5px;
    font-family: inherit;
    font-weight: 500;
    color: var(--text);
    background: var(--bg-hover);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
    white-space: nowrap;
}

.btn:hover:not(:disabled) { background: #26303f; border-color: #45525f; }
.btn:disabled { opacity: 0.42; cursor: not-allowed; }

.btn-primary {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: #fff;
}
.btn-primary:hover:not(:disabled) { background: var(--accent); }

.btn-danger {
    background: var(--danger-dim);
    border-color: var(--danger);
    color: #ffe0e0;
}
.btn-danger:hover:not(:disabled) { background: var(--danger); color: #fff; }

.btn-ghost { background: transparent; }
.btn-ghost:hover:not(:disabled) { background: var(--bg-hover); }

.btn-close {
    width: 30px; height: 30px;
    padding: 0;
    display: grid; place-items: center;
    background: transparent;
    border-color: transparent;
    color: var(--text-dim);
    font-size: 14px;
}
.btn-close:hover { background: var(--danger-dim); color: #fff; }

.btn-sm { padding: 4px 9px; font-size: 11.5px; }

/* ============================================================
   ROZETLER
   ============================================================ */
.badge {
    padding: 3px 8px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.badge-test   { background: var(--warn);    color: #231703; }
.badge-event  { background: var(--info);    color: #fff; }
.badge-perm   { background: var(--proven);  color: #fff; }
.badge-temp   { background: var(--accent-dim); color: #fff; }
.badge-auto   { background: #3a4553;        color: var(--text-dim); }
.badge-manual { background: #4a3a53;        color: #e3d0f0; }
.badge-ok     { background: rgba(62,207,142,0.18); color: var(--ok); }
.badge-sm     { padding: 2px 6px; font-size: 9.5px; margin-right: 5px; }

.conf-info   { color: var(--text-dim); }
.conf-low    { color: var(--info); }
.conf-medium { color: var(--warn); }
.conf-high   { color: var(--danger); }
.conf-proven { color: var(--proven); font-weight: 700; }

/* ============================================================
   DURUM KUTULARI
   ============================================================ */
.state-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 70px 20px;
    color: var(--text-dim);
    font-size: 13px;
}

.state-box.error {
    align-items: flex-start;
    text-align: left;
    margin: 20px;
    padding: 18px;
    color: #ffc8c8;
    background: rgba(240, 68, 68, 0.08);
    border-left: 3px solid var(--danger);
    border-radius: var(--radius-sm);
}

.state-box.error strong { font-size: 13.5px; }
.state-box.error p { margin-top: 6px; line-height: 1.6; color: var(--text-dim); }

.spinner {
    width: 26px; height: 26px;
    border: 2.5px solid var(--border-light);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   ÖZET (DASHBOARD)
   ============================================================ */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 15px;
    padding: 20px;
}

.stat-card {
    padding: 17px 18px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.stat-card .stat-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text-faint);
}

.stat-card .stat-value {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    margin-top: 7px;
    font-variant-numeric: tabular-nums;
}

.stat-card .stat-sub {
    font-size: 11.5px;
    color: var(--text-dim);
    margin-top: 5px;
}

.stat-card.clickable { cursor: pointer; transition: border-color 0.12s; }
.stat-card.clickable:hover { border-color: var(--accent); }

.stat-card.alert { border-color: var(--warn); }
.stat-card.alert .stat-value { color: var(--warn); }
.stat-card.danger { border-color: var(--danger); }
.stat-card.danger .stat-value { color: var(--danger); }

.info-card {
    grid-column: 1 / -1;
    padding: 17px 18px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.info-card h3 {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 13px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--border);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 6px 22px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    font-size: 12.5px;
}

.info-row .k { color: var(--text-dim); }
.info-row .v { font-weight: 600; text-align: right; }

.v-ok     { color: var(--ok); }
.v-warn   { color: var(--warn); }
.v-danger { color: var(--danger); }

/* Basit çubuk grafik */
.bars { display: flex; flex-direction: column; gap: 7px; }

.bar-row {
    display: grid;
    grid-template-columns: 150px 1fr 48px;
    align-items: center;
    gap: 11px;
    font-size: 12px;
}

.bar-label { color: var(--text-dim); }

.bar-track {
    height: 8px;
    background: var(--bg-input);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-dim), var(--accent));
    border-radius: 4px;
    min-width: 2px;
}

.bar-value {
    text-align: right;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Günlük sütun grafiği */
.spark {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 90px;
    padding-top: 6px;
}

.spark-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.spark-bar {
    width: 100%;
    background: var(--accent-dim);
    border-radius: 2px 2px 0 0;
    min-height: 2px;
    transition: background 0.12s;
}

.spark-col:hover .spark-bar { background: var(--accent); }

.spark-label {
    font-size: 9.5px;
    color: var(--text-faint);
    white-space: nowrap;
}

/* Modül listesi */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 7px;
}

.module-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 11px;
    font-size: 11.5px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.module-chip.dead {
    border-color: var(--danger-dim);
    background: rgba(240, 68, 68, 0.08);
}

/* ============================================================
   TABLO
   ============================================================ */
.table-wrap { overflow-x: auto; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.data-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: left;
    color: var(--text-faint);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.data-table tbody td {
    padding: 9px 14px;
    border-bottom: 1px solid rgba(39, 48, 61, 0.55);
    vertical-align: middle;
}

.data-table tbody tr { transition: background 0.1s; }
.data-table tbody tr.clickable { cursor: pointer; }
.data-table tbody tr.clickable:hover { background: var(--bg-hover); }

.data-table tbody tr.row-invalid { opacity: 0.45; }
.data-table tbody tr.row-test td:first-child { border-left: 3px solid var(--warn); }
.data-table tbody tr.row-unauthorized { background: rgba(240, 68, 68, 0.07); }
.data-table tbody tr.row-high td:first-child { border-left: 3px solid var(--danger); }

.mono {
    font-family: 'Cascadia Mono', Consolas, 'Courier New', monospace;
    font-size: 11.5px;
}

.cell-dim    { color: var(--text-dim); }
.cell-faint  { color: var(--text-faint); font-size: 11.5px; }
.cell-strong { font-weight: 600; }
.cell-num    { text-align: right; font-variant-numeric: tabular-nums; }
.cell-actions { white-space: nowrap; }

.truncate {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================================
   SAYFALAMA
   ============================================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 15px;
    font-size: 12.5px;
    color: var(--text-dim);
    border-top: 1px solid var(--border);
}

/* ============================================================
   AYRINTI PANELİ
   ============================================================ */
.detail-pane {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(640px, 94vw);
    display: flex;
    flex-direction: column;
    background: var(--bg-panel);
    border-left: 1px solid var(--border-light);
    box-shadow: -18px 0 50px rgba(0, 0, 0, 0.5);
    z-index: 50;
}

.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.detail-header h3 { font-size: 14px; font-weight: 600; }

.detail-body {
    flex: 1;
    overflow: auto;
    padding: 18px;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 13px 18px;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.d-section { margin-bottom: 20px; }

.d-section > h4 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 9px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.d-row {
    display: grid;
    grid-template-columns: 155px 1fr;
    gap: 12px;
    padding: 4px 0;
    font-size: 12.5px;
}

.d-row .k { color: var(--text-dim); }
.d-row .v { word-break: break-word; }

.d-block {
    padding: 11px 13px;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent-dim);
    border-radius: var(--radius-sm);
    font-family: 'Cascadia Mono', Consolas, monospace;
    max-height: 420px;
    overflow: auto;
}

.d-block.warn   { border-left-color: var(--warn); }
.d-block.danger { border-left-color: var(--danger); }

.d-note {
    padding: 10px 12px;
    margin-bottom: 14px;
    font-size: 11.5px;
    line-height: 1.55;
    color: #ffd9a0;
    background: rgba(245, 165, 36, 0.09);
    border-left: 3px solid var(--warn);
    border-radius: var(--radius-sm);
}

.d-note.danger {
    color: #ffc0c0;
    background: rgba(240, 68, 68, 0.09);
    border-left-color: var(--danger);
}

.d-note.info {
    color: #c7d9f5;
    background: rgba(74, 158, 255, 0.09);
    border-left-color: var(--accent);
}

.evidence-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11.5px;
}

.evidence-table th {
    padding: 7px 9px;
    text-align: left;
    font-size: 10.5px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--text-faint);
    border-bottom: 1px solid var(--border);
}

.evidence-table td {
    padding: 7px 9px;
    border-bottom: 1px solid rgba(39, 48, 61, 0.5);
    word-break: break-word;
}

/* ============================================================
   ONAY DIYALOĞU
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.66);
    z-index: 100;
}

.modal {
    width: min(520px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 23px;
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.6);
}

.modal h3 { font-size: 15.5px; margin-bottom: 11px; }

.modal > p {
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.modal-label {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.required { color: var(--danger); font-weight: 400; }

.modal textarea,
.modal input[type="text"] {
    width: 100%;
    padding: 9px 11px;
    font-size: 12.5px;
    font-family: inherit;
    color: var(--text);
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    outline: none;
    resize: vertical;
}

.modal textarea:focus,
.modal input[type="text"]:focus { border-color: var(--accent); }

#modalFields { margin-bottom: 15px; }
#modalFields .field { margin-bottom: 12px; }
#modalFields .field-hint {
    font-size: 11px;
    color: var(--text-faint);
    margin-top: 4px;
}

.modal-note {
    font-size: 11.5px;
    line-height: 1.55;
    color: var(--warn);
    margin: 11px 0 0;
    min-height: 16px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 20px;
}

/* ============================================================
   BİLDİRİMLER (TOAST)
   ============================================================ */
.toast-wrap {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    z-index: 200;
    pointer-events: none;
}

.toast {
    min-width: 260px;
    max-width: 400px;
    padding: 12px 15px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    pointer-events: auto;
    animation: toastIn 0.2s ease-out;
}

.toast.ok     { border-left-color: var(--ok); }
.toast.warn   { border-left-color: var(--warn); }
.toast.danger { border-left-color: var(--danger); }

.toast strong { display: block; margin-bottom: 3px; font-size: 12.5px; }
.toast span   { color: var(--text-dim); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(18px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   KAYDIRMA ÇUBUĞU
   ============================================================ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-input); }
::-webkit-scrollbar-thumb { background: #313c4c; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #3f4b5d; }
::-webkit-scrollbar-corner { background: var(--bg-input); }

/* ============================================================
   KÜÇÜK EKRAN
   ============================================================ */
@media (max-width: 900px) {
    .layout { grid-template-columns: 64px 1fr; }
    .sidebar-brand div,
    .nav-item span:not(.nav-icon),
    .user-meta,
    .sidebar-version span:not(.status-dot) { display: none; }
    .nav-item { justify-content: center; }
    .sidebar-brand { justify-content: center; }
    .search-input { width: 160px; }
    .d-row { grid-template-columns: 1fr; gap: 2px; }
    .bar-row { grid-template-columns: 100px 1fr 40px; }
}
