/* ============================================================================
   PCUHR Panel — Kurumsal Enterprise SaaS Tasarım Sistemi
   Safir Lacivert / Elektrik Mavisi / Camgöbeği Palet · Katmanlı Gölgeler · Mikro Etkileşimler
   ============================================================================ */

:root {
    /* Marka / Birincil — PCUHR Safir Mavi & Gece Laciverti */
    --primary: #0B438C;
    --primary-600: #0056B3;
    --primary-700: #003B82;
    --primary-800: #062354;
    --primary-50: #EFF6FF;
    --primary-100: #DBEAFE;

    /* Canlı Aksan Paleti (Logodan türetilen tonlar: Elektrik Mavisi, Camgöbeği) */
    --violet: #7C3AED;
    --blue: #0066FF;
    --cyan: #00C2FF;
    --emerald: #059669;
    --amber: #D97706;
    --orange: #EA580C;
    --orange-700: #C2410C;
    --rose: #E11D48;
    --pink: #DB2777;
    --yellow: #EAB308;
    --navy: #0A1B3A;

    /* Nötr Skala (Aydınlık, ferah kurumsal tuval) */
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --surface-2: #F1F5F9;
    --border: #E2E8F0;
    --border-strong: #CBD5E1;
    --ink: #0F172A;
    --ink-2: #334155;
    --muted: #64748B;
    --muted-2: #94A3B8;

    /* Durum (Soft zemin + yüksek kontrastlı metin) */
    --ok: #059669;      --ok-bg: #ECFDF5;      --ok-bd: #A7F3D0;
    --warn: #D97706;    --warn-bg: #FFFBEB;    --warn-bd: #FDE68A;
    --err: #DC2626;     --err-bg: #FEF2F2;     --err-bd: #FECACA;
    --info: #0B438C;    --info-bg: #EFF6FF;    --info-bd: #BFDBFE;

    /* Geriye dönük adlar */
    --purple: #0B438C; --indigo: #0B438C; --electric: #0066FF; --turquoise: #00C2FF;

    /* Degradeler — PCUHR Kurumsal Tonları */
    --grad-primary: linear-gradient(135deg, #003B82 0%, #0B438C 50%, #0066FF 100%);
    --grad-cool: linear-gradient(135deg, #0B438C 0%, #062354 100%);
    --grad-warm: linear-gradient(135deg, #003B82 0%, #334155 100%);
    --grad-fresh: linear-gradient(135deg, #059669 0%, #00C2FF 100%);
    --grad-sunny: linear-gradient(135deg, #EA580C 0%, #F59E0B 100%);
    --grad-rose: linear-gradient(135deg, #DB2777 0%, #E11D48 100%);

    --radius-xl: 12px;
    --radius: 8px;
    --radius-sm: 6px;

    /* Katmanlı Sofistike Gölgeler (Layered Shadows) */
    --shadow-xs: 0 1px 2px rgba(11,67,140,0.04);
    --shadow-sm: 0 1px 3px rgba(11,67,140,0.06), 0 1px 2px -1px rgba(11,67,140,0.04);
    --shadow-md: 0 4px 12px -2px rgba(11,67,140,0.08), 0 2px 6px -2px rgba(11,67,140,0.04);
    --shadow-lg: 0 12px 28px -6px rgba(11,67,140,0.11), 0 4px 10px -3px rgba(11,67,140,0.05);
    --shadow-xl: 0 20px 38px -8px rgba(11,67,140,0.15), 0 8px 16px -4px rgba(11,67,140,0.06);
    --shadow-primary: 0 8px 24px -6px rgba(11,67,140,0.38);
    --shadow-soft: var(--shadow-sm);
    --shadow-float: var(--shadow-lg);
}

html {
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
}
@media (min-width: 1750px) {
    html { font-size: 14.75px; }
}
@media (max-width: 1440px) {
    html { font-size: 13.5px; }
}
@media (max-width: 1280px) {
    html { font-size: 13px; }
}

* { font-family: 'Google Sans', 'Product Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; box-sizing: border-box; }

body {
    margin: 0; min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(1000px 500px at 100% -8%, rgba(0,102,255,0.07), transparent 60%),
        radial-gradient(800px 550px at -6% 100%, rgba(11,67,140,0.05), transparent 55%),
        var(--bg);
    background-attachment: fixed;
    font-weight: 400; font-size: 1rem;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.008em;
}

body::before {
    content: ''; position: fixed; top: 0; right: 0; z-index: -1;
    width: min(48vw, 680px); height: 320px; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 680 320'%3E%3Cg fill='none' stroke='%230066FF' stroke-width='2.2'%3E%3Cpath d='M-20 70 C120 10 260 130 400 70 S680 10 820 70' stroke-opacity='.08'/%3E%3Cpath d='M-20 120 C120 60 260 180 400 120 S680 60 820 120' stroke-opacity='.06'/%3E%3Cpath d='M-20 170 C120 110 260 230 400 170 S680 110 820 170' stroke-opacity='.04'/%3E%3C/g%3E%3C/svg%3E") right top no-repeat;
}

h1, h2, h3, h4, h5 { font-weight: 700; letter-spacing: -0.02em; color: var(--navy); }

/* ---------- Dashboard Hero Şeridi ---------- */
.dash-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 55%, #F1F5F9 100%);
    border: 1px solid var(--border); border-radius: var(--radius-xl);
    padding: 0.85rem 1.25rem; margin-bottom: 1.1rem; position: relative; overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.dash-hero::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: linear-gradient(180deg, var(--primary) 0%, #0066FF 100%);
}
.dash-hero-hi { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.dash-hero-name { font-size: 1.28rem; font-weight: 800; color: var(--navy); margin: 0.1rem 0 0.15rem; letter-spacing: -0.025em; }
.dash-hero-sub { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.dash-hero-badge { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-warm); color: #fff; box-shadow: 0 6px 16px -4px rgba(48,65,99,0.3); flex-shrink: 0; }
.dash-hero-badge svg { width: 22px; height: 22px; }

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

/* İkonlar sayfaya <i data-lucide="..."> olarak gelir ve JS ile SVG'ye çevrilir.
   Yer tutucu boyutsuz olduğu için çevrim anında içerik kayıyor ve ikonlar
   "kaybolup geri geliyormuş" gibi görünüyordu. Aynı kutuyu baştan ayırıyoruz. */
i[data-lucide] { display: inline-block; width: 18px; height: 18px; vertical-align: middle; }
.nav-item i[data-lucide] { box-sizing: content-box; padding: 5px; border-radius: 8px; width: 17px; height: 17px; }
.kpi-icon i[data-lucide] { width: 20px; height: 20px; }

/* ---------- Sidebar ---------- */
.sidebar {
    width: 280px; flex-shrink: 0;
    transition: width 0.24s cubic-bezier(.4, 0, .2, 1);
    display: flex; flex-direction: column;
    padding: 1.1rem 0.85rem;
    background:
        radial-gradient(600px 360px at 15% -8%, rgba(0, 102, 255, 0.18), transparent 70%),
        linear-gradient(180deg, #07152E 0%, #0B254E 60%, #051024 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky; top: 0; height: 100vh;
    color: #F8FAFC;
}

/* ---------- Sidebar Başlık / Logo & Daralt Butonu ---------- */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 1.15rem;
    width: 100%;
    position: relative;
}
.sidebar-toggle {
    width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 10px; cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s, transform 0.24s cubic-bezier(.4, 0, .2, 1);
}
.sidebar-toggle svg { width: 17px; height: 17px; }
.sidebar-toggle:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }

/* Daraltılmış hâl: yalnızca ikonlar. */
.sidebar-collapsed .sidebar { width: 78px; min-width: 0; padding-left: 0.55rem; padding-right: 0.55rem; }
.sidebar-collapsed .brand-name,
.sidebar-collapsed .brand-sub,
.sidebar-collapsed .nav-item span,
.sidebar-collapsed .user-meta,
.sidebar-collapsed .nav-group-label { display: none; }
.sidebar-collapsed .sidebar-header { flex-direction: column; gap: 8px; margin-bottom: 1rem; }
.sidebar-collapsed .brand { justify-content: center; padding: 0; }
.sidebar-collapsed .brand.has-custom-logo { padding: 0; justify-content: center; }
.sidebar-collapsed .brand-logo-card { width: 44px; height: 44px; padding: 4px; border-radius: 11px; }
.sidebar-collapsed .nav-item { justify-content: center; padding: 0.5rem 0.4rem; }
.sidebar-collapsed .nav-badge { position: absolute; top: 2px; right: 4px; margin: 0; }
.sidebar-collapsed .user-chip { flex-direction: column; gap: 0.4rem; padding: 0.5rem 0.25rem; }
.sidebar-collapsed .logout-btn { margin: 0 !important; }
.sidebar-collapsed .sidebar-toggle { transform: rotate(180deg); width: 32px; height: 32px; }

/* Daraltıldığında menü adları ipucu balonu olarak görünsün. */
.sidebar-collapsed .nav-item::after {
    content: attr(data-label);
    position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%);
    background: #07152E; color: #fff; font-size: 0.76rem; font-weight: 600;
    padding: 0.3rem 0.6rem; border-radius: 7px; white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.6);
    opacity: 0; pointer-events: none; transition: opacity 0.14s; z-index: 20;
}
.sidebar-collapsed .nav-item:hover::after { opacity: 1; }

.brand { display: flex; align-items: center; gap: 0.75rem; flex: 1; min-width: 0; }
.brand.has-custom-logo { flex: 1; width: 100%; }

/* Yatay tam genişlikte logo kartı */
.brand-logo-card {
    width: 100%; height: 52px;
    background: #FFFFFF; border-radius: 12px; padding: 6px 12px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px -2px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.brand-logo-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px -2px rgba(0, 0, 0, 0.35);
}
.brand-logo-img {
    max-width: 100%; max-height: 100%; width: auto; height: 36px;
    object-fit: contain; display: block;
}

.brand-mark {
    width: 38px; height: 38px; display: grid; place-items: center;
    border-radius: 10px; background: var(--grad-primary); color: #fff;
    font-weight: 700; font-size: 1.15rem; overflow: hidden;
    box-shadow: var(--shadow-primary);
}
.brand-mark.has-logo {
    width: 58px; height: 58px; padding: 0;
    background: #fff; color: inherit;
    border-radius: 14px;
    box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.35);
}
.brand-mark.has-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-weight: 700; letter-spacing: -0.02em; font-size: 1rem; color: #FFFFFF; }
.brand-sub { font-size: 0.68rem; color: rgba(224, 235, 255, 0.82); font-weight: 500; }

.side-nav {
    display: flex; flex-direction: column; gap: 0.15rem; flex: 1;
    overflow-y: auto; overflow-x: hidden; min-height: 0; scrollbar-gutter: stable;
    padding-top: 0.25rem;
}
.side-nav::-webkit-scrollbar { width: 6px; }
.side-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); border-radius: 999px; }
.nav-item {
    display: flex; align-items: center; gap: 0.7rem;
    padding: 0.6rem 0.8rem; border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.95); font-weight: 600; text-decoration: none;
    font-weight: 500; font-size: 0.885rem;
    transition: background 0.15s, color 0.15s;
    position: relative;
}
.nav-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Her menü öğesi kendi renginde. Koyu zeminde okunsun diye paletin açık tonları
   kullanılır; ikon kendi renginin yumuşak bir dairesi içinde durur. */
/* Renkli menü ikonları — koyu lacivert-teal zemin üzerinde canlı ritim.
   (Genel tema kurumsal; sidebar ikonları bilinçli olarak renkli.) */
.sidebar {
    --ico-violet:  #A78BFA;
    --ico-blue:    #60A5FA;
    --ico-cyan:    #22D3EE;
    --ico-emerald: #34D399;
    --ico-amber:   #FBBF24;
    --ico-orange:  #FB923C;
    --ico-rose:    #FB7185;
    --ico-pink:    #F472B6;
    --ico-yellow:  #FDE047;
}
.nav-item[data-ico="violet"]  { --ico: var(--ico-violet); }
.nav-item[data-ico="blue"]    { --ico: var(--ico-blue); }
.nav-item[data-ico="cyan"]    { --ico: var(--ico-cyan); }
.nav-item[data-ico="emerald"] { --ico: var(--ico-emerald); }
.nav-item[data-ico="amber"]   { --ico: var(--ico-amber); }
.nav-item[data-ico="orange"]  { --ico: var(--ico-orange); }
.nav-item[data-ico="rose"]    { --ico: var(--ico-rose); }
.nav-item[data-ico="pink"]    { --ico: var(--ico-pink); }
.nav-item[data-ico="yellow"]  { --ico: var(--ico-yellow); }

.nav-item svg {
    width: 17px; height: 17px; flex-shrink: 0;
    color: var(--ico, rgba(232, 233, 247, 0.6));
    transition: color 0.15s, background 0.15s;
}
/* İkonu saran renkli kutucuk. */
.nav-item[data-ico] svg {
    box-sizing: content-box; padding: 5px; border-radius: 7px;
    background: color-mix(in srgb, var(--ico) 16%, transparent);
    transition: background 0.15s;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.15); color: #FFFFFF; }
.nav-item[data-ico]:hover svg { background: color-mix(in srgb, var(--ico) 28%, transparent); }
.nav-item.active {
    background: linear-gradient(90deg,
        color-mix(in srgb, var(--ico, #4FA3E3) 24%, transparent),
        color-mix(in srgb, var(--ico, #4FA3E3) 5%, transparent));
    color: #FFFFFF; font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
/* Aktif öğenin sol şeridi ve ikon kutucuğu, o öğenin kendi rengini alır. */
.nav-item.active::before {
    content: ''; position: absolute; left: -0.9rem; top: 18%; bottom: 18%;
    width: 3px; border-radius: 0 3px 3px 0;
    background: var(--ico, #4FA3E3);
}
.nav-item.active[data-ico] svg {
    color: #fff;
    background: var(--ico);
}

/* Sidebar grup başlıkları */
.nav-group-label {
    font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.72); padding: 0.9rem 0.8rem 0.3rem; user-select: none;
}
.side-nav > .nav-group-label:first-child { padding-top: 0.1rem; }
.nav-badge {
    margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.68rem; font-weight: 700; color: #22304F;
    background: #C6D2E4; border-radius: 999px;
}
.nav-item.active .nav-badge { background: #fff; color: #22304F; }

.sidebar-footer { margin-top: auto; padding-top: 0.75rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.user-chip {
    display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.6rem;
    background: rgba(255, 255, 255, 0.06); border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.07);
}
.avatar {
    width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center;
    background: var(--grad-cool); color: #fff; font-weight: 600; font-size: 0.9rem;
}
.user-meta { flex: 1; min-width: 0; }
.user-name { font-size: 0.82rem; font-weight: 600; color: #FFFFFF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 0.68rem; color: rgba(224, 235, 255, 0.82); }
.logout-btn { color: rgba(224, 235, 255, 0.85); display: grid; place-items: center; }
.logout-btn svg { width: 18px; height: 18px; }
.logout-btn:hover { color: #FDA4AF; }

/* ---------- Main ---------- */
.main-area { flex: 1; padding: 1.15rem 1.4rem 2.5rem; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.page-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
.date-chip {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.35rem 0.7rem; border-radius: var(--radius-sm);
    background: var(--surface); border: 1px solid var(--border);
    font-size: 0.78rem; font-weight: 500; color: var(--ink-2); box-shadow: var(--shadow-xs);
}
.date-chip svg { width: 14px; height: 14px; color: var(--muted); }

/* ---------- Cards ---------- */
.card-nova {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-xl); box-shadow: var(--shadow-sm);
    padding: 1rem 1.15rem;
    transition: box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-nova:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 0.85rem; margin-bottom: 1.15rem; }
.kpi-card { position: relative; overflow: hidden; }
.kpi-card::after {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, #0066FF 100%);
    opacity: 0.95;
}
.kpi-card.cool::after { background: linear-gradient(90deg, #0B438C 0%, #00C2FF 100%); }
.kpi-card.warm::after { background: linear-gradient(90deg, #D97706 0%, #EA580C 100%); }
.kpi-card.fresh::after { background: linear-gradient(90deg, #059669 0%, #00C2FF 100%); }
a.kpi-card { text-decoration: none; }
a.kpi-card:hover {
    border-color: rgba(11, 67, 140, 0.25);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.kpi-icon {
    width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
    color: var(--primary); margin-bottom: 0.55rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.kpi-card:hover .kpi-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 14px -2px rgba(11, 67, 140, 0.22);
}
.kpi-card.cool .kpi-icon { color: #0B438C; }
.kpi-card.warm .kpi-icon { color: #D97706; }
.kpi-card.fresh .kpi-icon { color: #059669; }
.kpi-icon svg { width: 18px; height: 18px; }
.kpi-value { font-size: 1.65rem; font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; color: var(--navy); }
.kpi-label { font-size: 0.78rem; color: var(--muted); font-weight: 600; margin-top: 0.12rem; }

/* ---------- Buttons ---------- */
.btn-nova {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.42rem 0.85rem; border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-700) 100%);
    color: #fff; font-weight: 600; font-size: 0.81rem;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(11, 67, 140, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer; white-space: nowrap;
}
.btn-nova:hover {
    color: #fff;
    background: linear-gradient(180deg, var(--primary-600) 0%, var(--primary-700) 100%);
    box-shadow: 0 4px 14px -2px rgba(11, 67, 140, 0.38), 0 2px 6px -1px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}
.btn-nova:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12), inset 0 1px 2px rgba(0, 0, 0, 0.15);
}
.btn-nova:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--primary-100); }
.btn-nova svg { width: 15px; height: 15px; }

.btn-nova.ghost {
    background: var(--surface); color: var(--ink-2);
    border: 1px solid var(--border);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.btn-nova.ghost:hover {
    background: var(--surface-2); color: var(--primary);
    border-color: var(--border-strong);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}
.btn-nova.danger {
    background: linear-gradient(180deg, #DC2626 0%, #B91C1C 100%);
    box-shadow: 0 2px 6px -1px rgba(220, 38, 38, 0.3);
}
.btn-nova.danger:hover {
    background: #B91C1C;
    box-shadow: 0 4px 12px -2px rgba(220, 38, 38, 0.4);
    transform: translateY(-1px);
}
.btn-nova.success {
    background: linear-gradient(180deg, #059669 0%, #047857 100%);
    box-shadow: 0 2px 6px -1px rgba(5, 150, 105, 0.3);
}
.btn-nova.success:hover {
    background: #047857;
    box-shadow: 0 4px 12px -2px rgba(5, 150, 105, 0.4);
    transform: translateY(-1px);
}
.btn-nova.accent {
    background: linear-gradient(180deg, #0066FF 0%, #0B438C 100%);
    box-shadow: 0 4px 14px -2px rgba(0, 102, 255, 0.38);
}
.btn-nova.accent:hover {
    background: #0056B3;
    transform: translateY(-1px);
}
.btn-nova.sm { padding: 0.3rem 0.65rem; font-size: 0.76rem; border-radius: var(--radius-sm); box-shadow: var(--shadow-xs); }
.btn-nova.sm:hover { transform: translateY(-1px); }

/* ---------- Tables ---------- */
.table-nova { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.81rem; }
.table-nova thead th {
    text-transform: uppercase; letter-spacing: 0.05em;
    font-size: 0.68rem; font-weight: 700; color: var(--muted);
    padding: 0.55rem 0.75rem; background: var(--surface-2);
    border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap;
}
.table-nova thead th:first-child { border-top-left-radius: var(--radius-sm); }
.table-nova thead th:last-child { border-top-right-radius: var(--radius-sm); }
.table-nova tbody td {
    padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--border);
    vertical-align: middle; color: var(--ink-2);
    transition: background-color 0.12s ease;
}
.table-nova tbody tr { transition: background 0.12s ease; }
.table-nova tbody tr:hover td { background-color: rgba(241, 245, 249, 0.75); }
.clickable-row { cursor: pointer; }

/* Sabit kaydet barı */
.save-bar {
    position: sticky; bottom: 14px; z-index: 25;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    margin: 1.2rem 0 0.4rem; padding: 0.7rem 0.7rem 0.7rem 1.1rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
}
.save-bar-hint { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; font-weight: 500; color: var(--muted); }
.save-bar-hint svg { width: 16px; height: 16px; color: var(--primary); }
.save-bar-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }

/* Liste öğeleri */
.list-item {
    display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
    padding: 0.65rem 0.85rem; margin-bottom: 0.5rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
    transition: background 0.15s, border-color 0.15s;
}
.list-item:hover { background: var(--surface-2); border-color: var(--border-strong); }
.list-item .list-main { flex: 1; min-width: 0; }
.list-item .list-title { font-weight: 600; font-size: 0.86rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .list-sub { font-size: 0.72rem; color: var(--muted); margin-top: 0.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item form { flex-shrink: 0; margin: 0; }

/* ---------- Badges (tag stili) ---------- */
.badge-nova {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 0.15rem 0.5rem; border-radius: 999px;
    font-size: 0.7rem; font-weight: 600; border: 1px solid transparent;
}
.badge-nova.green { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-bd); }
.badge-nova.amber { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-bd); }
.badge-nova.red { background: var(--err-bg); color: var(--err); border-color: var(--err-bd); }
.badge-nova.indigo { background: var(--info-bg); color: var(--info); border-color: var(--info-bd); }
.badge-nova.gray { background: var(--surface-2); color: var(--ink-2); border-color: var(--border); }

/* ---------- Forms ---------- */
.form-control, .form-select {
    border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
    background: var(--surface); padding: 0.38rem 0.65rem;
    font-size: 0.83rem; font-weight: 400; color: var(--ink); box-shadow: var(--shadow-xs);
    min-height: 35px;
}
.form-control::placeholder { color: var(--muted-2); }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); outline: none; }
.form-label { font-size: 0.78rem; font-weight: 600; color: var(--ink-2); margin-bottom: 0.25rem; }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-check-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }

/* ---------- Alerts ---------- */
.alert-nova {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.8rem 1rem; border-radius: var(--radius-sm);
    font-size: 0.85rem; font-weight: 500; margin-bottom: 1.1rem; border: 1px solid transparent;
}
.alert-nova svg { width: 18px; height: 18px; flex-shrink: 0; }
.alert-success-nova { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-bd); }
.alert-error-nova { background: var(--err-bg); color: var(--err); border-color: var(--err-bd); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.content > * { animation: fadeUp 0.28s ease; }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: var(--bg); }
.login-card {
    width: 100%; max-width: 400px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg); padding: 2.2rem 2rem;
}

/* ---------- Charts / misc ---------- */
.chart-box { height: 260px; position: relative; }
.section-title { font-size: 0.95rem; font-weight: 600; color: var(--ink); margin-bottom: 0.9rem; display: flex; align-items: center; gap: 0.5rem; }
.section-title svg { width: 18px; height: 18px; color: var(--primary); }

.activity-item { display: flex; gap: 0.7rem; padding: 0.55rem 0; border-bottom: 1px solid var(--border); font-size: 0.78rem; }
.activity-item:last-child { border-bottom: none; }
.activity-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); margin-top: 5px; flex-shrink: 0; }
.activity-time { color: var(--muted); font-size: 0.68rem; }

#map { height: 380px; border-radius: var(--radius-xl); z-index: 1; }

/* ---------- Personel profil başlığı ---------- */
.profile-hero { display: flex; align-items: center; gap: 1.5rem; flex-wrap: nowrap; }
.profile-hero-photo { text-align: center; flex-shrink: 0; width: 120px; }
.hero-avatar {
    width: 96px; height: 96px; margin: 0 auto 0.6rem; border-radius: 14px; overflow: hidden;
    background: var(--grad-cool); display: grid; place-items: center;
    color: #fff; font-size: 2.4rem; font-weight: 600; box-shadow: var(--shadow-sm);
}
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero-info { flex: 1; min-width: 0; }
.hero-name { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 0.5rem; color: var(--ink); }
.hero-badges { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.hero-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.hero-meta svg { width: 14px; height: 14px; }
.profile-hero-actions { flex-shrink: 0; }
.hero-qr { border-radius: 10px; border: 1px solid var(--border); }

.form-actions { display: flex; gap: 0.6rem; flex-wrap: nowrap; }
.form-actions .btn-nova { flex: 1; }

.doc-upload-bar { display: flex; gap: 0.7rem; align-items: flex-end; flex-wrap: nowrap; border-bottom: 1px solid var(--border); padding-bottom: 1rem; margin-bottom: 1rem; }

.list-photo { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border); }

.toolbar-nowrap { display: flex; gap: 0.5rem; align-items: center; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
.toolbar-nowrap::-webkit-scrollbar { height: 5px; }
.toolbar-nowrap::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }

@media (max-width: 720px) { .profile-hero { flex-wrap: wrap; } .profile-hero-actions { width: 100%; text-align: center; } }

/* ---------- Popup toast ---------- */
#nova-toast-host { position: fixed; top: 1.1rem; right: 1.1rem; z-index: 3000; display: flex; flex-direction: column; gap: 0.6rem; max-width: 380px; }
.nova-toast {
    display: flex; align-items: center; gap: 0.7rem; padding: 0.85rem 1rem; border-radius: var(--radius-sm);
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
    font-size: 0.85rem; font-weight: 500; color: var(--ink); cursor: pointer;
    border-left: 3px solid var(--primary);
    transform: translateX(120%); opacity: 0; transition: transform 0.3s ease, opacity 0.3s;
}
.nova-toast.show { transform: translateX(0); opacity: 1; }
.nova-toast-icon { width: 24px; height: 24px; flex-shrink: 0; border-radius: 7px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 0.85rem; background: var(--grad-primary); }
.nova-toast.success { border-left-color: #10B981; } .nova-toast.success .nova-toast-icon { background: linear-gradient(135deg,#10B981,#059669); }
.nova-toast.error { border-left-color: #F43F5E; } .nova-toast.error .nova-toast-icon { background: linear-gradient(135deg,#F43F5E,#E11D48); }

/* ---------- Modal ---------- */
.nova-modal-overlay { position: fixed; inset: 0; z-index: 3100; background: rgba(16,24,40,0.55); display: grid; place-items: center; padding: 1.5rem; opacity: 0; transition: opacity 0.2s; }
.nova-modal-overlay.show { opacity: 1; }
.nova-modal { background: var(--surface); border-radius: var(--radius-xl); padding: 1.5rem 1.6rem; max-width: 420px; width: 100%; box-shadow: var(--shadow-xl); transform: scale(0.97); transition: transform 0.2s ease; }
.nova-modal-overlay.show .nova-modal { transform: scale(1); }
.nova-modal-title { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; }
.nova-modal-body { font-size: 0.88rem; color: var(--muted); font-weight: 400; line-height: 1.5; }
.nova-modal-input { width: 100%; margin-top: 1rem; }
.nova-modal-actions { display: flex; gap: 0.6rem; justify-content: flex-end; margin-top: 1.4rem; }

/* ---------- Belge önizleme modalı ---------- */
.doc-preview-overlay { position: fixed; inset: 0; z-index: 3050; background: rgba(16,24,40,0.6); display: none; place-items: center; padding: 1.5rem; }
.doc-preview-overlay.show { display: grid; }
.doc-preview-box { background: var(--surface); border-radius: var(--radius-xl); overflow: hidden; width: min(900px, 96vw); height: min(88vh, 900px); display: flex; flex-direction: column; box-shadow: var(--shadow-xl); }
.doc-preview-head { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 1rem; border-bottom: 1px solid var(--border); }
.doc-preview-box iframe { flex: 1; width: 100%; border: none; background: var(--surface-2); }

/* ---------- Akordion ---------- */
.accordion-nova { display: flex; flex-direction: column; gap: 0.7rem; }
.acc-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-xs); overflow: hidden; }
.acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; background: none; border: none; cursor: pointer; font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.acc-head-left { display: flex; align-items: center; gap: 0.7rem; }
/* Kurumsal: tek renk, düz — bölüm ikonları marka tint zeminli. */
.acc-head-left svg { width: 32px; height: 32px; padding: 7px; border-radius: var(--radius-sm); color: var(--primary-700); background: var(--primary-50); box-shadow: none; flex-shrink: 0; }
.acc-chevron { width: 18px; height: 18px; transition: transform 0.25s; color: var(--muted); flex-shrink: 0; }
.acc-item.open .acc-chevron { transform: rotate(180deg); }
.acc-item.open { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.acc-item.open .acc-head { border-bottom: 1px solid var(--border); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), padding 0.25s; padding: 0 1.2rem; }
.acc-item.open .acc-body { max-height: 4000px; padding: 0.4rem 1.2rem 0.9rem; }

.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.setting-row:last-child { border-bottom: none; }
.setting-label { flex: 1; min-width: 200px; }
.setting-name { font-weight: 600; font-size: 0.86rem; color: var(--ink); }
.setting-desc { font-size: 0.72rem; color: var(--muted); margin-top: 0.15rem; }
.setting-control { flex: 0 0 auto; min-width: 240px; max-width: 320px; }
.setting-control .form-control, .setting-control .form-select { width: 100%; }

.workdays { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.workday {
    width: 40px; height: 40px; border-radius: 8px; cursor: pointer;
    display: grid; place-items: center; font-size: 0.75rem; font-weight: 600;
    background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); transition: all 0.15s; user-select: none;
}
.workday.on { background: var(--grad-primary); color: #fff; border-color: transparent; box-shadow: var(--shadow-primary); }

/* Mobil Navigasyon Bileşenleri (Masaüstünde Kesinlikle Gizli) */
.btn-mobile-nav {
    display: none !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--navy);
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: var(--shadow-xs);
    transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-mobile-nav:active { background: var(--surface-2); }
.btn-mobile-nav svg { width: 20px; height: 20px; }

.sidebar-close-mobile {
    display: none !important;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    z-index: 10;
}
.sidebar-close-mobile:hover { background: rgba(255, 255, 255, 0.2); }
.sidebar-close-mobile svg { width: 18px; height: 18px; }

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 1090;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.sidebar-backdrop.show {
    display: block;
    opacity: 1;
}

/* Standart 1080p Laptop & Masaüstü Dengeli Alan Kullanımı */
@media (min-width: 993px) and (max-width: 1680px) {
    .sidebar { width: 260px; padding: 0.95rem 0.7rem; }
    .main-area { padding: 1.1rem 1.35rem 2.2rem; }
    .nav-item { font-size: 0.82rem; padding: 0.45rem 0.6rem; }
    .nav-group-label { padding: 0.75rem 0.7rem 0.25rem; font-size: 0.6rem; }
    .dash-hero { padding: 0.8rem 1.15rem; margin-bottom: 1rem; }
    .kpi-grid { gap: 0.75rem; margin-bottom: 1rem; }
    .card-nova { padding: 0.9rem 1.05rem; }
}

@media (min-width: 1681px) {
    .sidebar { width: 280px; padding: 1.1rem 0.85rem; }
    .main-area { padding: 1.25rem 1.75rem 2.5rem; max-width: 1920px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 992px) {
    .btn-mobile-nav { display: inline-flex; }
    
    .app-shell {
        flex-direction: column;
        min-width: 0;
        width: 100%;
        overflow-x: hidden;
    }
    
    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 285px !important;
        max-width: 85vw !important;
        height: 100% !important;
        z-index: 1100 !important;
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
        padding: 1.2rem 1rem !important;
    }
    .sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 0 0 35px rgba(0, 0, 0, 0.5);
    }
    
    .sidebar-toggle { display: none !important; }
    .sidebar-close-mobile { display: inline-flex !important; }
    
    /* Mobil açıkken tüm menü metinleri ve başlıklar görünür olmalı */
    .brand-name, .brand-sub, .nav-item span, .user-meta, .nav-group-label { display: block !important; }
    .nav-item { justify-content: flex-start !important; padding: 0.6rem 0.8rem !important; }
    .user-chip { flex-direction: row !important; gap: 0.65rem !important; padding: 0.65rem 0.8rem !important; }
    .nav-badge { position: static !important; }
    
    .main-area {
        width: 100%;
        max-width: 100vw;
        padding: 1rem 0.85rem 3rem !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    .topbar {
        flex-wrap: wrap;
        gap: 0.75rem;
        margin-bottom: 1.1rem;
    }
    .topbar-left {
        flex: 1;
        min-width: 0;
    }
    .topbar-right {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .page-title {
        font-size: 1.15rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .dash-hero {
        flex-direction: column;
        align-items: flex-start !important;
        padding: 1rem !important;
        gap: 0.75rem;
    }
    .dash-hero-badge {
        display: none;
    }
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    .card-nova {
        padding: 1rem;
    }
    .table-responsive, .nova-table-wrap {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 576px) {
    .kpi-grid {
        grid-template-columns: 1fr !important;
    }
    .topbar-right {
        width: 100%;
        justify-content: flex-start;
    }
    .date-chip {
        display: none;
    }
}

/* Giriş Yöntemi Seçim Kutuları (Modern Toggle Cards) */
.punch-method-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
@media (max-width: 768px) {
    .punch-method-group {
        grid-template-columns: 1fr;
    }
}
.punch-method-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius, 10px);
    border: 1.5px solid var(--border);
    background: var(--surface, #ffffff);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    user-select: none;
    margin-bottom: 0;
}
.punch-method-box:hover {
    border-color: rgba(59, 130, 246, 0.4);
    background: var(--surface-hover, rgba(59, 130, 246, 0.03));
}
.punch-method-box.active {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.06);
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.25);
}
.punch-method-box#boxPunchGps.active {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.06);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25);
}
.punch-method-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.pm-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--surface-muted, #f1f5f9);
    color: var(--text-muted, #64748b);
    transition: all 0.2s ease;
}
.punch-method-box.active .pm-icon-wrap.qr-icon {
    background: #10b981;
    color: #ffffff;
}
.punch-method-box.active .pm-icon-wrap.gps-icon {
    background: #3b82f6;
    color: #ffffff;
}
.pm-info {
    flex: 1;
    min-width: 0;
}
.pm-name {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text, #1e293b);
    line-height: 1.2;
}
.pm-sub {
    font-size: 0.71rem;
    color: var(--muted, #64748b);
    margin-top: 2px;
    line-height: 1.25;
}
.pm-badge .badge-active {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 12px;
    background: #10b981;
    color: #ffffff;
    display: none;
}
.punch-method-box.active .pm-badge .badge-active {
    display: inline-block;
}
.punch-method-box#boxPunchGps.active .pm-badge .badge-active {
    background: #3b82f6;
}

.border-bottom {
    border-bottom: 1px solid var(--border) !important;
}




/* Seçili KPI kartı: hangi filtrenin uygulandığı tek bakışta anlaşılsın.
   cool/warm/fresh renk varyantıdır, seçim bilgisi taşımaz. */
.kpi-card.selected {
    outline: 2px solid var(--primary, #0B438C);
    outline-offset: -2px;
    background: rgba(11, 67, 140, 0.045);
}
.kpi-card.selected .kpi-label { font-weight: 700; }
.kpi-card.selected::before {
    content: '';
    position: absolute; inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(11, 67, 140, 0.18);
    border-radius: inherit;
}

/* Sayfa başlığının yanındaki imza: sönük, başlığın önüne geçmesin */
.page-title .page-credit {
    margin-left: 0.35rem; font-size: 0.72rem; font-weight: 400; letter-spacing: 0.01em;
    color: #B6C0CD; white-space: nowrap; vertical-align: middle;
}
@media (max-width: 992px) { .page-title .page-credit { display: none; } }

/* ---------- Aranabilir seçim kutusu (panel.js · data-searchable) ----------
   Liste açılınca tarayıcının ham <select size="n"> görünümü çıkıyordu: gri
   seçim şeridi, kenarda ok tuşları, dar satırlar. Burada kendi görünümünü
   alıyor. Açık liste akışta kalır (mutlak konumlandırılmaz) ki dar ekranda
   kesilmesin. */
.nova-search-wrap { position: relative; }

.nova-search-input { margin-bottom: 5px !important; }

select.nova-searchable {
    transition: box-shadow .15s ease, border-color .15s ease;
}

/* Kapalıyken normal seçim kutusu gibi davranır; yalnız açıkken liste olur. */
select.nova-searchable.acik {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface, #fff);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .12);
    padding: 4px;
    outline: none;
    overflow-y: auto;
    scrollbar-width: thin;
    /* Yükseklik satır sayısından değil içerikten gelsin: tarayıcı size="n"
       yüksekliğini varsayılan satır boyuyla hesaplıyor, padding verince
       satırlar sığmıyor ve iki eşleşmede bile kaydırma çıkıyordu. */
    height: auto;
    max-height: 300px;
}

select.nova-searchable.acik:focus {
    border-color: var(--primary, #0B438C);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .14), 0 0 0 3px rgba(11, 67, 140, .12);
}

select.nova-searchable.acik option {
    padding: .42rem .55rem;
    border-radius: 7px;
    font-size: .84rem;
    line-height: 1.35;
    color: var(--ink, #0f172a);
}

/* Varsayılan gri seçim şeridi yerine kurumsal vurgu. */
select.nova-searchable.acik option:checked,
select.nova-searchable.acik option:hover {
    background: var(--primary-50, #EFF6FF) linear-gradient(0deg, var(--primary-50, #EFF6FF), var(--primary-50, #EFF6FF));
    color: var(--primary, #0B438C);
    font-weight: 700;
}

select.nova-searchable.acik::-webkit-scrollbar { width: 8px; }
select.nova-searchable.acik::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, .35); border-radius: 8px;
}
select.nova-searchable.acik::-webkit-scrollbar-track { background: transparent; }

.nova-search-info {
    font-size: .7rem;
    color: var(--muted);
    min-height: 1em;
    margin-top: 3px;
    line-height: 1.3;
}

/* Tek seçenekli süre kutusu (izin talebi): görsel olarak kilitli ama form ile
   GÖNDERİLİR. disabled kullanılamaz — devre dışı alan post edilmediği için
   sunucu "duration_type alanı zorunludur" diyordu. */
select.secim-kilitli {
    pointer-events: none;
    background: var(--surface-2, #F1F5F9);
    color: var(--muted);
    border-color: var(--border);
}

/* ---------- Cam (glass) sidebar ----------
   27.10.2026'da herkese açıldı: layouts/main.php <html class="cam-sidebar">.
   Eski düz lacivert görünüme dönmek için o sınıfı kaldırmak yeterli. Lacivert renk korunur; arkadaki renk ışıkları buzlu camdan
   geçiyormuş gibi bulanık görünür. Mobilde menü sayfanın üstüne açıldığı için sayfa içeriği
   camın arkasında bulanık görünür. */
html.cam-sidebar body::after {
    content: ''; position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: -2; pointer-events: none;
    transition: width 0.24s cubic-bezier(.4, 0, .2, 1);
    background:
        radial-gradient(260px 260px at 10% 8%,  rgba(0, 102, 255, 0.85), transparent 70%),
        radial-gradient(240px 240px at 85% 38%, rgba(34, 211, 238, 0.55), transparent 70%),
        radial-gradient(260px 260px at 15% 70%, rgba(167, 139, 250, 0.60), transparent 70%),
        radial-gradient(220px 220px at 80% 98%, rgba(52, 211, 153, 0.45), transparent 70%),
        rgba(11, 37, 78, 0.62);
}
html.cam-sidebar .sidebar {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.02) 22%, rgba(255, 255, 255, 0) 60%),
        linear-gradient(180deg, rgba(7, 21, 46, 0.82) 0%, rgba(11, 37, 78, 0.75) 55%, rgba(5, 16, 36, 0.87) 100%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    backdrop-filter: blur(30px) saturate(180%);
    text-shadow: 0 1px 2px rgba(5, 16, 36, 0.35);
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.06), inset -1px 0 0 rgba(255, 255, 255, 0.05), 10px 0 34px -14px rgba(5, 16, 36, 0.45);
}
/* Cam üzerindeki öğeler: hafif buzlu yüzey */
html.cam-sidebar .sidebar .nav-item:hover { background: rgba(255, 255, 255, 0.12); }
html.cam-sidebar .sidebar .nav-item.active { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 4px 14px -6px rgba(0, 0, 0, 0.35); }
html.cam-sidebar .sidebar-footer { border-top-color: rgba(255, 255, 255, 0.14); }
/* Işık katmanı sidebar genişliğini izler; içerik alanına taşmaz. */
@media (min-width: 993px) and (max-width: 1680px) { html.cam-sidebar body::after { width: 260px; } }
html.cam-sidebar.sidebar-collapsed body::after { width: 78px; }
/* backdrop-filter desteklemeyen tarayıcıda okunurluk için daha koyu zemin */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    html.cam-sidebar .sidebar { background: linear-gradient(180deg, rgba(7, 21, 46, 0.92) 0%, rgba(11, 37, 78, 0.9) 60%, rgba(5, 16, 36, 0.94) 100%); }
}
@media (max-width: 992px) {
    /* Mobilde arka plan ışıklarına gerek yok; cam doğrudan sayfanın üstünde durur. */
    html.cam-sidebar body::after { display: none; }
    html.cam-sidebar .sidebar { background: linear-gradient(180deg, rgba(7, 21, 46, 0.77) 0%, rgba(11, 37, 78, 0.71) 60%, rgba(5, 16, 36, 0.82) 100%); }
}
