/* ============================================================
   Network KDV — Global UI Stillerinin Tümü
   Tek doğruluk kaynağı: tüm sayfalar bu dosyayı kullanır.
   Eskiden includes/header.php içinde inline'dı.
   ============================================================ */

:root {
    /* Renk paleti — rafine kurumsal lacivert + sıcak turuncu vurgu */
    --primary-color: #24507F;
    --secondary-color: #17304F;
    --accent-color: #ED8936;
    --success-color: #2F9E63;
    --danger-color: #DC4C4C;
    --warning-color: #D69E2E;
    --info-color: #0E9CC0;
    --light-color: #F7FAFC;
    --dark-color: #16202E;
    /* Soğuk nötr gri skalası (mavi alt tonlu — finans arayüzü) */
    --gray-50: #F8FAFC;
    --gray-100: #F3F5F9;
    --gray-200: #E7ECF2;
    --gray-300: #D8DFE8;
    --gray-400: #B4C0CD;
    --gray-500: #8895A7;
    --gray-600: #64748B;
    --gray-700: #46556A;
    --gray-800: #2E3B4E;
    --gray-900: #16202E;

    /* Tipografi */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Düzen */
    --sidebar-width: 280px;
    --border-radius: 10px;
    --border-radius-lg: 14px;
    --border-color: var(--gray-200);
    --ring: 0 0 0 4px rgba(36, 80, 127, 0.12);

    /* Gölgeler — katmanlı, yumuşak (sert kontrast yok) */
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
    --shadow-md: 0 2px 4px -1px rgba(16, 24, 40, 0.05), 0 4px 12px -2px rgba(16, 24, 40, 0.07);
    --shadow-lg: 0 8px 24px -6px rgba(16, 24, 40, 0.12), 0 2px 6px -2px rgba(16, 24, 40, 0.05);
    --shadow-xl: 0 20px 40px -12px rgba(16, 24, 40, 0.18);
}

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

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-normal);
    line-height: 1.5;
    color: var(--gray-800);
    /* Fark edilmeyecek kadar hafif soğuk degrade — düz griden daha canlı */
    background: linear-gradient(180deg, #F4F6FA 0%, #F1F4F8 100%) fixed, var(--gray-100);
}

/* Marka renginde metin seçimi */
::selection { background: rgba(36, 80, 127, 0.16); color: var(--gray-900); }

/* Erişilebilir klavye odağı (halka öğenin kendi köşe yarıçapını izler) */
:focus-visible { outline: none; box-shadow: var(--ring); }

/* Tipografi */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: var(--font-weight-semibold);
    line-height: 1.25;
    color: var(--gray-900);
    margin-bottom: 0.5em;
}
h1 { font-size: 1.875rem; font-weight: var(--font-weight-bold); letter-spacing: -0.02em; }
h2 { font-size: 1.5rem;   letter-spacing: -0.015em; }
h3 { font-size: 1.25rem;  letter-spacing: -0.01em; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }
p  { margin-bottom: 1rem; color: var(--gray-600); }

/* Finansal arayüz: tüm rakamlar dikeyde hizalansın */
.stat-value, .table td, .table th, .invoice-amount, .hero-gold-badge .value,
.app-stat .value, .vat-chip .vat-value {
    font-variant-numeric: tabular-nums;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}
a:hover { color: var(--secondary-color); }

/* ===== Sidebar ===== */
.sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: var(--sidebar-width);
    background: linear-gradient(200deg, #17304F 0%, #0F2038 100%);
    color: white;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.18) transparent;
}
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); }
.sidebar-header {
    padding: 26px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-header h3 {
    font-size: 1.375rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}
.sidebar-header h3 i { font-size: 1.25rem; opacity: 0.9; color: white; }
.sidebar-header small {
    opacity: 0.8;
    font-size: 0.8125rem;
    font-weight: var(--font-weight-medium);
    display: block;
    line-height: 1.4;
    color: white;
}
.sidebar-close {
    display: none;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    opacity: 0.8;
    font-size: 1.25rem;
    line-height: 1;
}
.sidebar-close:hover {
    opacity: 1;
    background: rgba(255,255,255,0.1);
    transform: scale(1.1);
}
.sidebar-close:focus {
    outline: 2px solid rgba(255,255,255,0.3);
    outline-offset: 2px;
}
.sidebar-menu { padding: 16px 0 24px; }
.menu-item {
    padding: 10px 14px;
    margin: 2px 12px;
    border-radius: 10px;
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: background-color 0.15s ease, color 0.15s ease;
    font-weight: var(--font-weight-medium);
    font-size: 0.9rem;
    position: relative;
}
.menu-item:hover {
    background: rgba(255,255,255,0.07);
    color: white;
}
.menu-item.active {
    background: linear-gradient(90deg, rgba(255,255,255,0.14), rgba(255,255,255,0.08));
    color: white;
    font-weight: var(--font-weight-semibold);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 1px 3px rgba(0,0,0,0.18);
}
.menu-item.active::before {
    /* Sidebar kenarında ince accent göstergesi */
    content: '';
    position: absolute;
    left: -12px; top: 22%; bottom: 22%;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--accent-color);
}
.menu-item i {
    width: 20px;
    margin-right: 12px;
    font-size: 15px;
    text-align: center;
    opacity: 0.85;
}
.menu-item:hover i, .menu-item.active i { opacity: 1; }
.menu-section-title {
    padding: 22px 26px 8px;
    font-size: 0.68rem;
    text-transform: uppercase;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 1.4px;
    color: rgba(255,255,255,0.42);
    margin-top: 8px;
}
.menu-section-title:first-child { margin-top: 0; }

/* ===== Main Content ===== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

/* ===== Topbar — buzlu cam ===== */
.topbar {
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    backdrop-filter: blur(12px) saturate(1.4);
    padding: 14px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid rgba(216, 223, 232, 0.7);
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-left h4 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.01em;
    color: var(--gray-900);
    font-family: var(--font-family);
}
.topbar-right { display: flex; align-items: center; gap: 16px; }

/* Aktif şirket çipi — topbar */
.topbar-company {
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: var(--font-weight-medium);
    color: var(--gray-600);
    padding: 7px 14px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: var(--gray-50);
    max-width: 300px;
}
.topbar-company span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.topbar-company i { color: var(--gray-400); font-size: 0.8rem; }

/* Hamburger */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
}
.hamburger-menu:hover { background-color: var(--gray-100); }
.hamburger-menu span {
    width: 24px; height: 2px;
    background: var(--gray-700);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}
.hamburger-menu.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -5px); }

/* Sidebar overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    backdrop-filter: blur(2px);
}
.sidebar-overlay.show { display: block; }

/* User menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 12px 6px 6px;
    border-radius: 50px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    background: white;
    border: 1px solid var(--gray-200);
}
.user-menu:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}
.user-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-weight: var(--font-weight-semibold);
    font-size: 0.8125rem;
}

/* ===== Content area ===== */
.content-area { padding: 32px; }

/* ===== Cards ===== */
.card {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    background: white;
    transition: box-shadow 0.2s ease;
    overflow: hidden;
}
.card:hover {
    box-shadow: var(--shadow-md);
}
.card-header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 24px;
    font-weight: var(--font-weight-semibold);
    font-size: 0.95rem;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0 !important;
    color: var(--gray-800);
    font-family: var(--font-family);
}
.card-body { padding: 24px; }

/* ===== Stat cards ===== */
.stat-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    border-left: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card:hover::before { opacity: 0.02; }
.stat-card.success { border-left-color: var(--success-color); }
.stat-card.danger  { border-left-color: var(--danger-color); }
.stat-card.warning { border-left-color: var(--warning-color); }
.stat-card.info    { border-left-color: var(--info-color); }

.stat-icon {
    width: 48px; height: 48px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 16px;
    transition: background-color 0.2s ease;
}
/* Kurumsal: dolgun gradient yerine tonlu zemin + renkli ikon */
.stat-icon.primary { background: rgba(36, 80, 127, 0.10);  color: var(--primary-color); }
.stat-icon.success { background: rgba(47, 158, 99, 0.12);  color: #22794B; }
.stat-icon.danger  { background: rgba(220, 76, 76, 0.10);  color: #B93838; }
.stat-icon.warning { background: rgba(214, 158, 46, 0.14); color: #9C701A; }
.stat-icon.info    { background: rgba(14, 156, 192, 0.10); color: #0B7797; }

.stat-value {
    font-size: 1.95rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.03em;
    margin-bottom: 6px;
    color: var(--gray-900);
    font-family: var(--font-family);
    line-height: 1.15;
}
.stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* ===== Tables ===== */
.table { margin: 0; border-collapse: separate; border-spacing: 0; }
.table thead th {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    font-weight: var(--font-weight-semibold);
    font-size: 0.72rem;
    color: var(--gray-500);
    padding: 12px 16px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: var(--font-family);
    white-space: nowrap;
    /* Uzun listelerde başlık görünür kalsın (scroll kabı içinde) */
    position: sticky;
    top: 0;
    z-index: 2;
}
.table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    font-size: 0.9rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}
.table tbody tr { transition: background-color 0.12s ease, box-shadow 0.12s ease; }
.table tbody tr:hover { background: var(--gray-50); }
/* Hover'da satırın sol kenarında lacivert iz */
.table tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--primary-color); }
.table tbody tr:last-child td { border-bottom: none; }

/* ===== Badges ===== */
.badge {
    padding: 5px 10px;
    border-radius: 50px;
    font-weight: var(--font-weight-semibold);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.badge-primary   { background: var(--primary-color); color: white; }
.badge-success   { background: var(--success-color); color: white; }
.badge-danger    { background: var(--danger-color);  color: white; }
.badge-warning   { background: var(--warning-color); color: white; }
.badge-info      { background: var(--info-color);    color: white; }
.badge-secondary { background: var(--gray-500);      color: white; }

/* Bootstrap bg-* rozetleri → soft durum çipleri (tonlu zemin + koyu metin).
   "Ödendi / Ödenmedi / Taslak" gibi durumlar dolgu blok yerine çip görünür. */
.badge.bg-success::before, .badge.bg-danger::before, .badge.bg-warning::before,
.badge.bg-info::before, .badge.bg-primary::before, .badge.bg-secondary::before {
    /* Durum noktası — çip rengiyle aynı tonda küçük yuvarlak */
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    margin-right: 6px;
    opacity: 0.75;
    vertical-align: 1px;
}
.badge.bg-success   { background: rgba(47, 158, 99, 0.12)  !important; color: #22794B !important; }
.badge.bg-danger    { background: rgba(220, 76, 76, 0.12)  !important; color: #B93838 !important; }
.badge.bg-warning   { background: rgba(214, 158, 46, 0.14) !important; color: #9C701A !important; }
.badge.bg-info      { background: rgba(14, 156, 192, 0.12) !important; color: #0B7797 !important; }
.badge.bg-primary   { background: rgba(36, 80, 127, 0.10)  !important; color: var(--primary-color) !important; }
.badge.bg-secondary { background: rgba(136, 149, 167, 0.16)!important; color: var(--gray-700) !important; }
.badge.bg-dark      { background: rgba(22, 32, 46, 0.10)   !important; color: var(--gray-800) !important; }

/* ===== Buttons ===== */
.btn {
    border-radius: var(--border-radius);
    padding: 9px 18px;
    font-weight: var(--font-weight-medium);
    font-size: 0.875rem;
    transition: background-color 0.15s ease, border-color 0.15s ease,
                box-shadow 0.15s ease, transform 0.15s ease;
    border: 1px solid transparent;
    font-family: var(--font-family);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    /* Hafif dikey degrade + iç ışık — düz dolgudan daha "dokunulabilir" */
    background: linear-gradient(180deg, #2B5C90 0%, var(--primary-color) 100%);
    border-color: var(--primary-color);
    color: white;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), var(--shadow-sm);
}
.btn-primary:hover {
    background: linear-gradient(180deg, #24507F 0%, var(--secondary-color) 100%);
    border-color: var(--secondary-color);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), var(--shadow-md);
    color: white;
}
.btn:focus-visible { box-shadow: var(--ring); }
.btn-success { background: var(--success-color); border-color: var(--success-color); color: white; }
.btn-success:hover { background: #27824F; border-color: #27824F; color: white; }
.btn-danger  { background: var(--danger-color); border-color: var(--danger-color); color: white; }
.btn-danger:hover { background: #C23A3A; border-color: #C23A3A; color: white; }
.btn-warning { background: var(--warning-color); border-color: var(--warning-color); color: white; }
.btn-warning:hover { background: #B98617; border-color: #B98617; color: white; }

/* İkincil buton: beyaz zemin + çerçeve (Yazdır, Listeye Dön vb.) */
.btn-secondary, .btn-light {
    background: white;
    border-color: var(--gray-300);
    color: var(--gray-700);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover, .btn-light:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    color: var(--gray-900);
}

.btn-outline-primary {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}
.btn-outline-primary:hover { background: var(--primary-color); color: white; }

/* ===== Form controls ===== */
.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-300);
    padding: 9px 14px;
    font-size: 0.9rem;
    color: var(--gray-800);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    font-family: var(--font-family);
    box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.03);
}
.form-control:hover:not(:focus), .form-select:hover:not(:focus) {
    border-color: var(--gray-400);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: var(--ring);
    outline: none;
}
.form-control::placeholder { color: var(--gray-400); }
.form-label {
    font-weight: var(--font-weight-medium);
    color: var(--gray-700);
    margin-bottom: 6px;
    font-size: 0.8125rem;
}

/* ===== Page header pattern (sayfa başlığı + sağda aksiyon butonları) =====
   Kullanım örneği:
   <div class="page-header">
       <div><h2>Başlık</h2><p>Açıklama</p></div>
       <div class="d-flex gap-2">...butonlar...</div>
   </div> */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}
.page-header h1, .page-header h2 { margin-bottom: 4px; }
.page-header p { margin: 0; color: var(--gray-600); }

/* ===== Segmented tip seçici (Gelen/Giden vb.) ===== */
.type-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 6px;
    box-shadow: var(--shadow-sm);
}
.type-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--gray-500);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    font-size: 0.9rem;
    text-align: left;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.type-tab small {
    display: block;
    font-weight: var(--font-weight-medium);
    font-size: 0.72rem;
    opacity: 0.75;
}
.type-tab i { font-size: 1.05rem; }
.type-tab:not(.active):hover { background: var(--gray-50); color: var(--gray-700); }
.type-tab.active.in  { background: rgba(47, 158, 99, 0.10);  color: #22794B; }
.type-tab.active.out { background: rgba(220, 76, 76, 0.08);  color: #B93838; }

/* ===== Metrik şeridi — tek kartta bölmeli özet rakamlar ===== */
.metric-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.metric {
    padding: 18px 24px;
    border-right: 1px solid var(--gray-100);
}
.metric:last-child { border-right: none; }
.metric-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--gray-500);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 6px;
}
.metric-value {
    font-size: 1.35rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.01em;
    color: var(--gray-900);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}
@media (max-width: 768px) {
    .metric-row { grid-template-columns: repeat(2, 1fr); }
    .metric { padding: 14px 18px; border-bottom: 1px solid var(--gray-100); }
    .metric:nth-child(even) { border-right: none; }
    .metric:nth-last-child(-n+2) { border-bottom: none; }
    .metric-value { font-size: 1.1rem; }
}

/* ===== Empty state ===== */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--gray-500);
}
.empty-state i {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .sidebar { width: 260px; }
    .main-content { margin-left: 260px; }
}
@media (max-width: 992px) {
    .sidebar { left: -280px; transition: left 0.3s ease; }
    .sidebar.show { left: 0; box-shadow: var(--shadow-xl); }
    .main-content { margin-left: 0; }
    .hamburger-menu { display: flex; }
    .sidebar-close { display: block; }
    .content-area { padding: 24px; }
    .card-body { padding: 24px; }
    .stat-card { padding: 20px; }
    .stat-value { font-size: 1.75rem; }
    .stat-icon { width: 48px; height: 48px; font-size: 1.25rem; }
}
@media (max-width: 768px) {
    .content-area { padding: 20px; }
    .topbar { padding: 12px 24px; }
    .topbar-left h4 { font-size: 1.125rem; }
    .card-body { padding: 20px; }
    .card-header { padding: 16px 20px; font-size: 1rem; }
    .table thead th, .table tbody td { padding: 12px; font-size: 0.8125rem; }
    .btn { padding: 8px 16px; font-size: 0.8125rem; }
    .stat-card { padding: 16px; }
    .stat-value { font-size: 1.5rem; }
    .stat-label { font-size: 0.75rem; }
    .sidebar-header { padding: 20px; }
    .sidebar-header h3 { font-size: 1.125rem; color: white; }
    .sidebar-header h3 i, .sidebar-header small { color: white; }
}
@media (max-width: 576px) {
    .topbar { padding: 10px 16px; }
    .topbar-left h4 { font-size: 1rem; }
    .user-menu .ms-2 { display: none; }
    .content-area { padding: 16px; }
    .card-body { padding: 16px; }
    .card-header { padding: 12px 16px; }
    .row { margin: 0; }
    .col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-12 { padding: 0 8px 16px; }
    .sidebar-menu { padding: 15px 0; }
    .menu-item { padding: 12px 20px; }
    .stat-icon { width: 44px; height: 44px; font-size: 1.125rem; margin-bottom: 12px; }
}

/* ===== Animations ===== */
@keyframes fadeIn  { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { transform: translateX(-20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes pulse   { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

.fade-in  { animation: fadeIn  0.6s ease-out; }
.slide-in { animation: slideIn 0.5s ease-out; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ===== Sayfalar arası yumuşak geçiş (View Transitions API) =====
   Destekleyen tarayıcılarda (Chrome 126+) sayfadan sayfaya kısa bir
   crossfade uygulanır — PWA'da yerel uygulama hissi verir. Desteklemeyen
   tarayıcılar kuralı yok sayar. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.18s; }

/* ===== Hareket azaltma tercihi ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    @view-transition { navigation: none; }
}

/* ===== Dropdown menüler ===== */
.dropdown-menu {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 6px;
    font-size: 0.875rem;
}
.dropdown-item {
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--gray-700);
    transition: background-color 0.12s ease;
}
.dropdown-item:hover { background: var(--gray-100); color: var(--gray-900); }
.dropdown-header {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--gray-500);
    font-weight: var(--font-weight-semibold);
}
.dropdown-divider { border-color: var(--gray-200); opacity: 1; margin: 6px 4px; }

/* ===== Alertler ===== */
.alert { border: none; border-radius: 12px; font-size: 0.9rem; }

/* ===== Sayfalama ===== */
.pagination { gap: 4px; }
.pagination .page-link {
    border: 1px solid var(--gray-200);
    border-radius: 8px !important;
    color: var(--gray-700);
    font-size: 0.875rem;
    padding: 7px 13px;
    transition: background-color 0.12s ease, border-color 0.12s ease;
}
.pagination .page-link:hover { background: var(--gray-50); border-color: var(--gray-300); color: var(--gray-900); }
.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}
.pagination .page-item.disabled .page-link { color: var(--gray-400); background: var(--gray-50); }

/* =============================================================
   Dashboard'a özel modern stiller
   ============================================================= */

/* Hero kart — gradient şirket başlığı */
.dashboard-hero {
    position: relative;
    background: linear-gradient(135deg, #0F2038 0%, #17304F 45%, #24507F 100%);
    border-radius: 16px;
    padding: 28px 32px;
    color: white;
    margin-bottom: 28px;
    box-shadow: 0 12px 32px -8px rgba(26, 54, 93, 0.45);
    overflow: hidden;
}
.dashboard-hero::before {
    /* dekoratif blur top-right — kurumsal: hafif */
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(237, 137, 54, 0.16), transparent 70%);
    pointer-events: none;
}
.dashboard-hero::after {
    /* dekoratif blur bottom-left — kurumsal: hafif */
    content: '';
    position: absolute;
    bottom: -80px; left: -40px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(11, 197, 234, 0.08), transparent 70%);
    pointer-events: none;
}
.dashboard-hero > * { position: relative; z-index: 1; }

.dashboard-hero h1, .dashboard-hero h2, .dashboard-hero h3 {
    color: white;
    margin-bottom: 6px;
    font-weight: 700;
}
.dashboard-hero p, .dashboard-hero small { color: rgba(255,255,255,0.85); }
.dashboard-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: white;
}
.dashboard-hero .hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 10px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.85);
}
.dashboard-hero .hero-meta i { margin-right: 6px; opacity: 0.85; }
.dashboard-hero .btn-hero {
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    backdrop-filter: blur(6px);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}
.dashboard-hero .btn-hero:hover {
    background: rgba(255,255,255,0.28);
    color: white;
    transform: translateY(-1px);
}

/* Modern gradient stat-card — net KDV gibi öne çıkacak kartlar için */
.stat-card-gradient {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: white;
    border: none;
}
.stat-card-gradient:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}
.stat-card-gradient.gradient-success {
    background: linear-gradient(135deg, #27825A 0%, #1D6644 100%);
}
.stat-card-gradient.gradient-danger {
    background: linear-gradient(135deg, #C44A4A 0%, #A33636 100%);
}
.stat-card-gradient.gradient-warning {
    background: linear-gradient(135deg, #BE8C24 0%, #9C701A 100%);
}
.stat-card-gradient.gradient-info {
    background: linear-gradient(135deg, #24507F 0%, #17304F 100%);
}
.stat-card-gradient .stat-value,
.stat-card-gradient .stat-label,
.stat-card-gradient small,
.stat-card-gradient .text-muted { color: white !important; }
.stat-card-gradient .stat-label { opacity: 0.92; }
.stat-card-gradient small { opacity: 0.85; }
.stat-card-gradient .stat-icon {
    background: rgba(255,255,255,0.18) !important;
    color: white !important;
    backdrop-filter: blur(4px);
}
.stat-card-gradient::after {
    /* sağ üstte halka dekoru */
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 140px; height: 140px;
    border-radius: 50%;
    border: 18px solid rgba(255,255,255,0.08);
    pointer-events: none;
}

/* Chart kartları — başlık çubuğu daha şık */
.card-header-modern {
    background: linear-gradient(135deg, var(--gray-50), white);
    border-bottom: 1px solid var(--gray-200);
    padding: 18px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}
.card-header-modern h5, .card-header-modern h6 {
    margin: 0;
    font-weight: 600;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 10px;
}
.card-header-modern .header-icon {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: rgba(36, 80, 127, 0.10);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Modern fatura satırı (Recent Invoices listesi için alternatif) */
.invoice-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.2s ease;
}
.invoice-row:last-child { border-bottom: none; }
.invoice-row:hover { background: var(--gray-50); }
.invoice-row .invoice-avatar {
    width: 42px; height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.invoice-row .invoice-avatar.in  { background: rgba(47, 158, 99, 0.12); color: #22794B; }
.invoice-row .invoice-avatar.out { background: rgba(220, 76, 76, 0.10); color: #B93838; }
.invoice-row .invoice-main { flex: 1; min-width: 0; }
.invoice-row .invoice-customer {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.95rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.invoice-row .invoice-sub {
    font-size: 0.8rem;
    color: var(--gray-500);
}
.invoice-row .invoice-amount {
    text-align: right;
    font-weight: 700;
    font-size: 1rem;
    color: var(--gray-900);
}
.invoice-row .invoice-amount-sub {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* Trend mini-badge (stat-card içinde % değişim göstermek için) */
.trend-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}
.trend-badge.up   { background: rgba(56, 161, 105, 0.12); color: #2F855A; }
.trend-badge.down { background: rgba(229, 62, 62, 0.12);  color: #C53030; }
.trend-badge.flat { background: rgba(160, 174, 192, 0.18); color: #4A5568; }
.stat-card-gradient .trend-badge {
    background: rgba(255,255,255,0.22);
    color: white !important;
}

/* =============================================================
   Mobile-app benzeri görünüm (firma kullanıcı dashboard'ı için)
   ============================================================= */

/* Sayfa "mobile-app" moduna girdiğinde body'ye .mobile-app eklenir */
.mobile-app-page {
    background: linear-gradient(180deg, #0f1729 0%, #1a2540 14%, #f5f6fa 14%);
    background-attachment: fixed;
}

/* Hero — mobile-app tarzı: yumuşak, kıvrımlı alt köşeler, içeriğe göre yüksek */
.app-hero {
    position: relative;
    background: linear-gradient(135deg, #0f1729 0%, #17304F 35%, #24507F 100%);
    color: white;
    padding: 24px 24px 36px;
    border-radius: 0 0 28px 28px;
    margin: -32px -32px 24px;
    overflow: hidden;
    box-shadow: 0 12px 28px -8px rgba(15, 23, 41, 0.5);
}
.app-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -60px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(237, 137, 54, 0.32), transparent 65%);
    pointer-events: none;
}
.app-hero::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -40px;
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(99, 230, 190, 0.18), transparent 65%);
    pointer-events: none;
}
.app-hero > * { position: relative; z-index: 1; }
.app-hero h1, .app-hero h2 { color: white; margin: 0 0 4px; font-weight: 700; }
.app-hero p, .app-hero small { color: rgba(255,255,255,0.86); margin: 0; }

.app-hero-greeting {
    font-size: 0.85rem;
    opacity: 0.78;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.app-hero-company {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}
.app-hero-company .logo-circle {
    width: 52px; height: 52px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.24);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(8px);
    flex-shrink: 0;
    overflow: hidden;
}
.app-hero-company .logo-circle img { max-width: 100%; max-height: 100%; object-fit: contain; }
.app-hero-company .logo-circle i { font-size: 1.5rem; color: white; }
.app-hero-company .company-name { font-size: 1.35rem; font-weight: 700; line-height: 1.2; color: white; }
.app-hero-company .company-tax  { font-size: 0.78rem; opacity: 0.78; }

/* Hero altında altın "Net KDV" rozeti — büyük + öne çıkan */
.hero-gold-badge {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #ED8936 0%, #DD6B20 60%, #C05621 100%);
    border-radius: 18px;
    padding: 16px 20px;
    box-shadow: 0 12px 24px -8px rgba(237, 137, 54, 0.55);
    color: white;
}
/* Net KDV durumuna göre renk: ödenecek = kırmızı, devreden = yeşil */
.hero-gold-badge.is-pay {
    background: linear-gradient(135deg, #F56565 0%, #E53E3E 60%, #C53030 100%);
    box-shadow: 0 12px 24px -8px rgba(229, 62, 62, 0.55);
}
.hero-gold-badge.is-credit {
    background: linear-gradient(135deg, #48BB78 0%, #38A169 60%, #2F855A 100%);
    box-shadow: 0 12px 24px -8px rgba(56, 161, 105, 0.55);
}
.hero-gold-badge .label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.92;
    font-weight: 600;
}
.hero-gold-badge .value {
    font-size: 1.85rem;
    font-weight: 800;
    margin-top: 2px;
    line-height: 1;
}
.hero-gold-badge .sub { font-size: 0.78rem; opacity: 0.88; margin-top: 4px; }
.hero-gold-badge .gold-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

/* Section title — mobile-app tarzı */
.app-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 18px 4px 12px;
}
.app-section-title h6 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-900);
    text-transform: none;
    letter-spacing: 0;
}
.app-section-title a {
    font-size: 0.78rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

/* 2x2 (veya 2x1) kompakt stat-grid — mobile */
.app-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.app-stat {
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}
.app-stat:active { transform: scale(0.98); }
.app-stat .icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 0.95rem;
    margin-bottom: 10px;
    box-shadow: 0 6px 12px -4px rgba(0,0,0,0.25);
}
.app-stat .icon.incoming { background: linear-gradient(135deg, #38A169, #2F855A); }
.app-stat .icon.outgoing { background: linear-gradient(135deg, #E53E3E, #C53030); }
.app-stat .icon.carry    { background: linear-gradient(135deg, #2C5282, #1A365D); }
.app-stat .icon.net      { background: linear-gradient(135deg, #D69E2E, #B7791F); }
.app-stat .value {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.1;
    margin-bottom: 2px;
}
.app-stat .label {
    font-size: 0.72rem;
    color: var(--gray-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.app-stat .sub {
    font-size: 0.7rem;
    color: var(--gray-500);
    margin-top: 4px;
}

/* App-style card (rounded, light shadow) */
.app-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 16px;
}
.app-card .body { padding: 16px; }

/* KDV oran chip'leri */
.vat-chip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.vat-chip {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    border-left: 3px solid;
}
.vat-chip.r1  { border-left-color: #f56565; }
.vat-chip.r10 { border-left-color: #ecc94b; }
.vat-chip.r20 { border-left-color: #9f7aea; }
.vat-chip .vat-label { font-size: 0.7rem; color: var(--gray-600); font-weight: 600; }
.vat-chip .vat-value { font-size: 0.85rem; font-weight: 700; color: var(--gray-900); margin-top: 2px; }

/* Mobile bottom navigation — yüzen "dock" (kenarlardan boşluklu ada) */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    left: 10px; right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    backdrop-filter: blur(18px) saturate(1.6);
    border: 1px solid rgba(216, 223, 232, 0.65);
    border-radius: 24px;
    z-index: 950;
    padding: 8px 6px;
    box-shadow: 0 16px 40px -10px rgba(16, 24, 40, 0.28), 0 2px 8px rgba(16, 24, 40, 0.06);
}
.mobile-bottom-nav .nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}
.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 7px 4px;
    border-radius: 16px;
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 600;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.mobile-bottom-nav a i { font-size: 1.15rem; }
/* Aktif sekme: yumuşak hap zemin */
.mobile-bottom-nav a.active {
    color: var(--primary-color);
    background: rgba(36, 80, 127, 0.10);
}
.mobile-bottom-nav a.active i {
    transform: scale(1.1);
    color: var(--primary-color);
}
.mobile-bottom-nav a:active { transform: scale(0.95); }

/* Floating Action Button */
.app-fab {
    display: none;
    position: fixed;
    right: 18px;
    bottom: 78px;
    width: 56px; height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ED8936 0%, #C05621 100%);
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px -6px rgba(237, 137, 54, 0.55);
    z-index: 940;
    text-decoration: none;
    font-size: 1.4rem;
    transition: transform 0.2s ease;
    border: none;
}
.app-fab:hover { color: white; transform: scale(1.05); }
.app-fab:active { transform: scale(0.95); }

/* Mobile media — bottom nav ve FAB sadece mobil/tablet'te göster */
@media (max-width: 992px) {
    .mobile-bottom-nav { display: block; }
    .app-fab { display: flex; }
    .main-content { padding-bottom: 104px; }  /* yüzen dock için boşluk */
    .app-hero { margin: -24px -24px 16px; padding: 24px 20px 32px; border-radius: 0 0 24px 24px; }
}
@media (max-width: 576px) {
    .app-hero { margin: -16px -16px 12px; padding: 20px 16px 28px; }
    .hero-gold-badge .value { font-size: 1.55rem; }
    .app-stat .value { font-size: 1rem; }
    .vat-chip-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =============================================================
   GENEL MOBİL APP KABUĞU — TÜM SAYFALAR
   app.css tek doğruluk kaynağı olduğundan bu iyileştirmeler
   her sayfaya uygulanır; web arayüzü telefonda yerel bir
   uygulama gibi görünür/davranır. Onaylı desktop tasarımı
   etkilenmesin diye yalnızca ≤992px ve standalone modda aktif.
   ============================================================= */

/* Yatay taşma engeli (app'te sayfa sağa-sola kaymaz) */
html, body { overflow-x: hidden; }

/* Topbar geçişini yumuşat — scroll'da gizlenirken jank olmasın */
.topbar {
    transition: transform 0.28s cubic-bezier(.4, 0, .2, 1), box-shadow 0.2s ease;
    will-change: transform;
}

@media (max-width: 992px) {
    body { -webkit-tap-highlight-color: transparent; }

    /* App tarzı üst başlık: blur + çentik (notch) güvenli alanı */
    .topbar {
        padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
        background: rgba(255, 255, 255, 0.85);
        -webkit-backdrop-filter: saturate(180%) blur(14px);
        backdrop-filter: saturate(180%) blur(14px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    .topbar-left h4 { font-weight: 700; letter-spacing: -0.01em; }

    /* Hamburger'i app ikon-butonu gibi göster */
    .hamburger-menu { width: 40px; height: 40px; justify-content: center; border-radius: 12px; }
    .hamburger-menu:active { background: var(--gray-100); transform: scale(0.94); }

    /* Kartlar: daha yuvarlak + yumuşak gölge; touch'ta "lift" yok, dokunma tepkisi var */
    .card {
        border-radius: 18px;
        box-shadow: 0 2px 10px -2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.04);
    }
    .card:hover { transform: none; box-shadow: 0 4px 14px -2px rgba(16, 24, 40, 0.10); }
    .card-header, .card-header-modern { border-radius: 18px 18px 0 0; }
    .stat-card { border-radius: 18px; }
    .stat-card:hover { transform: none; }
    .stat-card:active { transform: scale(0.99); }

    /* Butonlar: 44px dokunuş alanı + bas-bırak tepkisi */
    .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
    }
    .btn:active { transform: scale(0.97); }

    /* Form alanları: iOS otomatik-zoom engeli (16px) + rahat dokunuş */
    .form-control, .form-select { font-size: 16px; min-height: 46px; border-radius: 12px; }

    /* Tablolarda momentum'lu yatay kaydırma */
    .table-responsive { -webkit-overflow-scrolling: touch; }

    /* İçerik nefes alanı */
    .content-area { padding: 16px 14px; }
}

/* Ana ekrana eklenmiş (standalone) modda gerçek uygulama davranışı:
   tıklanabilir öğelerde kazara metin seçimini kapat — ama içerik
   (fatura no, tutar, vergi no vb.) kopyalanabilir kalsın. */
@media (display-mode: standalone) {
    .menu-item, .btn, .mobile-bottom-nav a, .hamburger-menu, .user-menu, .nav-grid a {
        -webkit-user-select: none;
        user-select: none;
    }
}

/* =============================================================
   KARANLIK MOD — Bootstrap 5.3 data-bs-theme="dark" ile birlikte
   çalışır (form/dropdown/modal/tabloyu Bootstrap kendisi çevirir);
   burada yalnız özel bileşenler ve sabit-beyaz alanlar çevrilir.
   Gri skalası ters çevrilir: metinler var(--gray-800) kullandığından
   otomatik açık renge döner.
   ============================================================= */
[data-bs-theme="dark"] {
    --light-color: #1B2430;
    --dark-color: #E7ECF2;
    --gray-50: #1B2430;
    --gray-100: #202A38;
    --gray-200: #2C3947;
    --gray-300: #3A4859;
    --gray-400: #64748B;
    --gray-500: #8895A7;
    --gray-600: #A6B2C2;
    --gray-700: #C3CDDA;
    --gray-800: #DBE2EB;
    --gray-900: #F1F5F9;
    --border-color: var(--gray-200);
}
[data-bs-theme="dark"] body {
    color: var(--gray-800);
    background: linear-gradient(180deg, #141B24 0%, #10161E 100%) fixed, #10161E;
}
[data-bs-theme="dark"] ::selection { background: rgba(237, 137, 54, 0.3); color: var(--gray-900); }
[data-bs-theme="dark"] .topbar {
    background: rgba(20, 27, 36, 0.85);
    border-bottom-color: rgba(58, 72, 89, 0.7);
}
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .card-header,
[data-bs-theme="dark"] .stat-card,
[data-bs-theme="dark"] .user-menu {
    background: #1B2430;
}
[data-bs-theme="dark"] .user-menu:hover { background: #202A38; }
[data-bs-theme="dark"] .table tbody tr:hover { background: rgba(255, 255, 255, 0.04); }
[data-bs-theme="dark"] .table thead th { background: #202A38; color: var(--gray-700); }
[data-bs-theme="dark"] .notif-bell { color: var(--gray-600); }
[data-bs-theme="dark"] .notif-bell:hover { color: var(--gray-900); }
[data-bs-theme="dark"] .notif-head { background: #202A38 !important; border-bottom-color: #2C3947 !important; }
[data-bs-theme="dark"] .notif-item { border-bottom-color: #2C3947 !important; }
[data-bs-theme="dark"] .notif-item:hover { background: #202A38 !important; }
[data-bs-theme="dark"] .notif-item.unread { background: #1E2A3D !important; }
[data-bs-theme="dark"] .notif-item.unread:hover { background: #233248 !important; }
[data-bs-theme="dark"] .notif-ttl { color: var(--gray-900) !important; }
[data-bs-theme="dark"] .notif-msg { color: var(--gray-600) !important; }
[data-bs-theme="dark"] .site-footer {
    background-color: #141B24 !important;
    border-top-color: #2C3947 !important;
    color: var(--gray-600) !important;
}
[data-bs-theme="dark"] .site-footer a { color: var(--gray-700) !important; }
[data-bs-theme="dark"] .mobile-bottom-nav { background: #1B2430; border-top: 1px solid #2C3947; }
[data-bs-theme="dark"] .badge.bg-light { background-color: #2C3947 !important; color: var(--gray-800) !important; }
[data-bs-theme="dark"] .payment-type { color: var(--gray-800); }
[data-bs-theme="dark"] .text-gray-800 { color: var(--gray-800) !important; }
/* Sidebar zaten koyu lacivert — karanlık modda da aynı kalır (marka) */
