/* ==========================================================================
   TÜREV Yönetim Paneli — tasarım sistemi
   Tek dosya, harici CSS çerçevesi yok.
   ========================================================================== */

:root {
    /* Marka renkleri logodan alındı */
    --brand:        #7C5CFF;
    --brand-strong: #6742F0;
    --brand-soft:   rgba(124, 92, 255, .12);
    --accent:       #2BA8E8;
    --accent-soft:  rgba(43, 168, 232, .12);

    --ok:      #16A97F;
    --ok-soft: rgba(22, 169, 127, .12);
    --warn:      #E0932B;
    --warn-soft: rgba(224, 147, 43, .14);
    --danger:      #E14B5A;
    --danger-soft: rgba(225, 75, 90, .12);

    /* Yüzeyler — açık tema */
    --bg:        #F5F6FB;
    --surface:   #FFFFFF;
    --surface-2: #FAFAFE;
    --border:    #E6E8F2;
    --border-strong: #D4D8E8;

    --text:   #1B1637;
    --muted:  #6C7293;
    --faint:  #9AA0BC;

    --shadow-sm: 0 1px 2px rgba(27, 22, 55, .06);
    --shadow:    0 4px 16px rgba(27, 22, 55, .07);
    --shadow-lg: 0 18px 44px rgba(27, 22, 55, .14);

    --radius:    14px;
    --radius-sm: 10px;
    --sidebar-w: 252px;
    --topbar-h:  64px;

    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
            "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] {
    --brand-soft:  rgba(124, 92, 255, .20);
    --accent-soft: rgba(43, 168, 232, .18);
    --ok-soft:     rgba(22, 169, 127, .18);
    --warn-soft:   rgba(224, 147, 43, .20);
    --danger-soft: rgba(225, 75, 90, .18);

    --bg:        #0E0F1D;
    --surface:   #171827;
    --surface-2: #1D1F30;
    --border:    #272A3E;
    --border-strong: #343850;

    --text:  #EAEBF5;
    --muted: #969CBB;
    --faint: #6E7492;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow:    0 4px 16px rgba(0, 0, 0, .35);
    --shadow-lg: 0 18px 44px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-strong); }

h1, h2, h3, h4, h5 { margin: 0; font-weight: 650; letter-spacing: -.01em; }

.ic { width: 18px; height: 18px; flex: none; }
.ic-sm { width: 15px; height: 15px; flex: none; }
.ic-lg { width: 22px; height: 22px; flex: none; }

/* ==========================================================================
   YERLEŞİM
   ========================================================================== */

.layout { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w);
    flex: none;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    transition: transform .22s ease;
}

.sidebar__brand {
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    border-bottom: 1px solid var(--border);
    flex: none;
}
.sidebar__brand img { height: 30px; width: auto; }
[data-theme="dark"] .sidebar__brand img { filter: brightness(0) invert(1); opacity: .92; }

.sidebar__nav {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px 24px;
    scrollbar-width: thin;
}
.sidebar__nav::-webkit-scrollbar { width: 6px; }
.sidebar__nav::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }

.nav-group {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--faint);
    padding: 16px 12px 7px;
}
.nav-group:first-child { padding-top: 4px; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 2px;
    transition: background .15s, color .15s;
}
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.nav-link.is-active .ic { color: var(--brand); }

.nav-link__count {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--danger-soft);
    color: var(--danger);
}

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

/* ---------------------------------------------------------------- Üst çubuk */

.topbar {
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 24px;
    background: var(--surface); /* color-mix desteklemeyen tarayıcılar için */
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar__title { font-size: 16px; font-weight: 650; }
.topbar__spacer { flex: 1; }

.icon-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    transition: .15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }

.burger { display: none; }

/* Kullanıcı menüsü */
.usermenu { position: relative; }
.usermenu__btn {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 10px 5px 5px;
    border: 1px solid var(--border);
    border-radius: 99px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 550;
}
.usermenu__btn:hover { border-color: var(--border-strong); }

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    letter-spacing: .02em;
}

.dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 208px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    display: none;
    z-index: 70;
}
.dropdown.is-open { display: block; }
.dropdown__head { padding: 9px 11px 10px; border-bottom: 1px solid var(--border); margin-bottom: 5px; }
.dropdown__name { font-weight: 650; }
.dropdown__meta { font-size: 12px; color: var(--muted); }
.dropdown__item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 13px;
}
.dropdown__item:hover { background: var(--surface-2); color: var(--text); }
.dropdown__item--danger { color: var(--danger); }
.dropdown__item--danger:hover { background: var(--danger-soft); color: var(--danger); }

/* ------------------------------------------------------------------ İçerik */

.content { padding: 24px; flex: 1; }
.content__inner { max-width: 1400px; margin: 0 auto; }

.page-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.page-head__text { min-width: 0; }
.page-head h1 { font-size: 22px; margin-bottom: 3px; }
.page-head p { margin: 0; color: var(--muted); font-size: 13.5px; }
.page-head__actions { margin-left: auto; display: flex; gap: 9px; flex-wrap: wrap; }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--faint);
    margin-bottom: 7px;
}
.breadcrumb a { color: var(--faint); }
.breadcrumb a:hover { color: var(--brand); }

/* ==========================================================================
   BİLEŞENLER
   ========================================================================== */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.card__head h2 { font-size: 15px; }
.card__head p { margin: 1px 0 0; font-size: 12.5px; color: var(--muted); }
.card__head-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card__body { padding: 18px; }
.card__foot {
    padding: 12px 18px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* İstatistik kutuları */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.stat::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--brand);
    opacity: .85;
}
.stat--accent::after { background: var(--accent); }
.stat--ok::after     { background: var(--ok); }
.stat--warn::after   { background: var(--warn); }

.stat__top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.stat__icon {
    width: 34px; height: 34px;
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand-soft); color: var(--brand);
}
.stat--accent .stat__icon { background: var(--accent-soft); color: var(--accent); }
.stat--ok .stat__icon     { background: var(--ok-soft);     color: var(--ok); }
.stat--warn .stat__icon   { background: var(--warn-soft);   color: var(--warn); }

.stat__label { font-size: 12.5px; color: var(--muted); font-weight: 550; }
.stat__value { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.stat__hint  { font-size: 12px; color: var(--faint); margin-top: 3px; }

/* Rozetler */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 99px;
    font-size: 11.5px;
    font-weight: 650;
    line-height: 1.5;
    white-space: nowrap;
}
.badge--ok     { background: var(--ok-soft);     color: var(--ok); }
.badge--warn   { background: var(--warn-soft);   color: var(--warn); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.badge--brand  { background: var(--brand-soft);  color: var(--brand); }
.badge--accent { background: var(--accent-soft); color: var(--accent); }
.badge--muted  { background: var(--surface-2);   color: var(--muted); border: 1px solid var(--border); }
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Düğmeler */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: .15s;
    white-space: nowrap;
    line-height: 1.3;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover:not(:disabled) { background: var(--brand-strong); color: #fff; }

.btn--ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn--ghost:hover:not(:disabled) { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }

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

.btn--ok { background: var(--ok-soft); color: var(--ok); }
.btn--ok:hover:not(:disabled) { background: var(--ok); color: #fff; }

.btn--sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.btn--icon { padding: 7px; width: 32px; height: 32px; }

.btn-row { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; }

/* Form alanları */
.field { margin-bottom: 16px; }
.field__label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 6px;
}
.field__hint { font-size: 12px; color: var(--faint); margin-top: 5px; }

.input, .select, .textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}
.input::placeholder { color: var(--faint); }
.textarea { min-height: 96px; resize: vertical; }

.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236C7293' 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;
    background-size: 16px;
    padding-right: 34px;
}

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
.form-grid .field--full { grid-column: 1 / -1; }

/* Anahtar (switch) */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track {
    width: 40px; height: 23px;
    border-radius: 99px;
    background: var(--border-strong);
    position: relative;
    transition: background .18s;
    flex: none;
}
.switch__track::after {
    content: "";
    position: absolute;
    top: 3px; left: 3px;
    width: 17px; height: 17px;
    border-radius: 50%;
    background: #fff;
    transition: transform .18s;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.switch input:checked + .switch__track { background: var(--brand); }
.switch input:checked + .switch__track::after { transform: translateX(17px); }
.switch input:focus-visible + .switch__track { box-shadow: 0 0 0 3px var(--brand-soft); }

/* Arama kutusu */
.search { position: relative; min-width: 230px; }
.search .ic {
    position: absolute;
    left: 11px; top: 50%;
    transform: translateY(-50%);
    color: var(--faint);
    pointer-events: none;
}
.search .input { padding-left: 35px; }

/* Sekmeler */
.tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow-x: auto;
}
.tab {
    padding: 6px 13px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.is-active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }

/* ==========================================================================
   TABLOLAR
   ========================================================================== */

.table-wrap { overflow-x: auto; }

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
    text-align: left;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--faint);
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
    white-space: nowrap;
}
.table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: var(--surface-2); }
.table .col-num { width: 52px; color: var(--faint); font-variant-numeric: tabular-nums; }
.table .col-actions { text-align: right; white-space: nowrap; width: 1%; }
.table .nowrap { white-space: nowrap; }
.table .num { font-variant-numeric: tabular-nums; }

.cell-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cell-person__name { font-weight: 600; }
.cell-person__meta { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.thumb {
    width: 40px; height: 40px;
    border-radius: 9px;
    object-fit: cover;
    background: var(--surface-2);
    border: 1px solid var(--border);
    flex: none;
}
.thumb--lg { width: 56px; height: 56px; }

.empty { padding: 54px 20px; text-align: center; color: var(--muted); }
.empty .ic-lg { color: var(--faint); margin-bottom: 10px; }
.empty h3 { font-size: 15px; margin-bottom: 4px; }
.empty p { margin: 0; font-size: 13px; }

/* Sayfalama */
.pager { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.pager__info { color: var(--muted); font-size: 12.5px; margin-right: auto; }
.pager a, .pager span {
    min-width: 32px; height: 32px;
    padding: 0 9px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    background: var(--surface);
}
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .is-disabled { opacity: .45; pointer-events: none; }

/* ==========================================================================
   BİLDİRİM / MODAL
   ========================================================================== */

.toasts {
    position: fixed;
    right: 20px; bottom: 20px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(380px, calc(100vw - 40px));
}
.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 15px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--brand);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    font-size: 13.5px;
    animation: toast-in .25s ease;
}
.toast--success { border-left-color: var(--ok); }
.toast--success .ic { color: var(--ok); }
.toast--error { border-left-color: var(--danger); }
.toast--error .ic { color: var(--danger); }
.toast--info .ic { color: var(--brand); }
.toast__close { margin-left: auto; background: none; border: 0; color: var(--faint); cursor: pointer; padding: 0; }

@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 16, 32, .55);
    backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 150;
}
.modal-backdrop.is-open { display: flex; }

.modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    animation: modal-in .2s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }

.modal__head { padding: 18px 20px 0; display: flex; gap: 12px; align-items: flex-start; }
.modal__icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--danger-soft); color: var(--danger);
    flex: none;
}
.modal__body { padding: 12px 20px 18px; color: var(--muted); font-size: 13.5px; }
.modal__body strong { color: var(--text); }
.modal__foot { padding: 14px 20px; background: var(--surface-2); border-top: 1px solid var(--border); display: flex; gap: 9px; justify-content: flex-end; }

/* ==========================================================================
   GİRİŞ SAYFASI
   ========================================================================== */

.auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg);
}

.auth__art {
    position: relative;
    background: linear-gradient(150deg, #4B2ECC 0%, #7C5CFF 45%, #2BA8E8 100%);
    color: #fff;
    padding: 52px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}
.auth__art::before,
.auth__art::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .09);
}
.auth__art::before { width: 420px; height: 420px; right: -140px; top: -120px; }
.auth__art::after  { width: 300px; height: 300px; left: -110px; bottom: -110px; }

.auth__art-inner { position: relative; z-index: 1; }
.auth__art h2 { font-size: 30px; line-height: 1.25; margin-bottom: 12px; letter-spacing: -.02em; }
.auth__art p { margin: 0; opacity: .88; font-size: 14.5px; max-width: 380px; }
.auth__art-foot { position: relative; z-index: 1; font-size: 12.5px; opacity: .75; }

.auth__form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth__box { width: 100%; max-width: 366px; }
.auth__logo { height: 42px; margin-bottom: 26px; }
[data-theme="dark"] .auth__logo { filter: brightness(0) invert(1); }
.auth__box h1 { font-size: 23px; margin-bottom: 6px; }
.auth__box > p { color: var(--muted); margin: 0 0 26px; }

.alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 13px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 16px;
    background: var(--danger-soft);
    color: var(--danger);
}
.alert--info { background: var(--accent-soft); color: var(--accent); }
.alert--ok { background: var(--ok-soft); color: var(--ok); }

/* ==========================================================================
   PANO GRAFİKLERİ (saf CSS/SVG)
   ========================================================================== */

.chart-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; }
.legend-item { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.legend-dot { width: 9px; height: 9px; border-radius: 3px; flex: none; }

.bars { display: flex; align-items: flex-end; gap: 14px; height: 186px; padding-top: 8px; }
.bars__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.bars__stack { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.bars__bar {
    flex: 1;
    max-width: 15px;
    border-radius: 5px 5px 2px 2px;
    min-height: 3px;
    transition: opacity .15s;
}
.bars__bar:hover { opacity: .78; }
.bars__label { font-size: 11.5px; color: var(--faint); font-weight: 600; }

.split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: start; }

.meter-list { display: flex; flex-direction: column; gap: 15px; }
.meter__top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.meter__name { font-size: 13px; font-weight: 600; }
.meter__value { margin-left: auto; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.meter__track { height: 7px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.meter__fill { height: 100%; border-radius: 99px; }

/* ==========================================================================
   YARDIMCI SINIFLAR
   ========================================================================== */

.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.strong { font-weight: 650; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.mt-0 { margin-top: 0; }
.mt-3 { margin-top: 20px; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 10px; }
.gap-3 { gap: 16px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.text-right { text-align: right; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.filters {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.filters .grow { min-width: 200px; }

/* ==========================================================================
   DUYARLI (RESPONSIVE)
   ========================================================================== */

@media (max-width: 1100px) {
    .split { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
    .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
    .sidebar.is-open { transform: none; }
    .main { margin-left: 0; }
    .burger { display: inline-flex; }
    .content { padding: 18px 16px; }
    .topbar { padding: 0 16px; }
    .auth { grid-template-columns: 1fr; }
    .auth__art { display: none; }
    .form-grid { grid-template-columns: 1fr; }
    .usermenu__btn span { display: none; }
}

@media (max-width: 560px) {
    .page-head__actions { width: 100%; margin-left: 0; }
    .stat__value { font-size: 22px; }
    .topbar__title { display: none; }
}

.scrim {
    position: fixed;
    inset: 0;
    background: rgba(15, 16, 32, .45);
    z-index: 55;
    display: none;
}
.scrim.is-open { display: block; }

@media (min-width: 921px) {
    .scrim { display: none !important; }
}

@media print {
    .sidebar, .topbar, .page-head__actions, .col-actions, .pager, .filters { display: none !important; }
    .main { margin-left: 0; }
    body { background: #fff; }
}
