/* ============================================================
   Sanal Muhasebe – Ayrı Mobil & Masaüstü Tasarım Sistemi
   ============================================================ */
:root {
  --primary: #1e40af;
  --primary-light: #2563eb;
  --danger: #EF4444;
  --success: #10B981;
  --wa: #25D366;
  --bottom-nav-h: 64px;
  --top-bar-h: 56px;
  --sidebar-w: 260px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  background: #f3f4f6;
}

/* ============================================================
   ORTAK BİLEŞENLER
   ============================================================ */
.nav-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 1rem; border-radius: 0.75rem;
  color: #93c5fd; font-weight: 500; transition: all 0.15s; min-height: 44px;
}
.nav-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-link.active { background: #2563eb; color: #fff; }

.card {
  background: #fff; border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06); overflow: hidden;
}
.card-header {
  padding: 14px 16px; border-bottom: 1px solid #f3f4f6;
  font-weight: 600; font-size: 0.95rem;
}

.balance-badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.3rem 0.7rem; border-radius: 9999px;
  font-size: 0.8rem; font-weight: 700; color: #fff;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.65rem 1.1rem; min-height: 44px; border-radius: 12px;
  font-weight: 600; font-size: 0.9rem; transition: all 0.15s;
  cursor: pointer; border: none; text-decoration: none; user-select: none;
}
.btn:active { transform: scale(0.97); opacity: 0.9; }
.btn-primary { background: var(--primary-light); color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid #d1d5db; color: #374151; }
.btn-outline:hover { background: #f9fafb; }
.btn-sm { padding: 0.4rem 0.75rem; min-height: 36px; font-size: 0.8rem; border-radius: 10px; }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-block { width: 100%; }

.form-input {
  width: 100%; padding: 0.7rem 1rem; min-height: 48px;
  border: 1.5px solid #e5e7eb; border-radius: 12px;
  font-size: 16px; background: #fff; -webkit-appearance: none; appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus {
  outline: none; border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.form-label {
  display: block; font-size: 0.8rem; font-weight: 600;
  color: #4b5563; margin-bottom: 0.3rem;
}

.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data-table { width: 100%; border-collapse: collapse; }
table.data-table th {
  text-align: left; padding: 0.7rem 1rem; font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; color: #6b7280;
  background: #f9fafb; border-bottom: 1px solid #e5e7eb; white-space: nowrap;
}
table.data-table td {
  padding: 0.8rem 1rem; border-bottom: 1px solid #f3f4f6; vertical-align: middle;
}

.page-title { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; color: #111827; line-height: 1.2; }
.page-subtitle { font-size: 0.8rem; color: #9ca3af; margin-top: 2px; }

.stat-card {
  background: #fff; border-radius: 16px; padding: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.stat-label {
  font-size: 0.68rem; font-weight: 600; color: #9ca3af;
  text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 4px;
}
.stat-value { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }

/* ============================================================
   MOBİL TASARIM  (< 1024px)
   ============================================================ */

.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: #fff; border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
  padding-bottom: var(--safe-bottom);
  height: calc(var(--bottom-nav-h) + var(--safe-bottom));
}
.bottom-nav-inner {
  display: flex; justify-content: space-around; align-items: stretch;
  height: var(--bottom-nav-h);
}
.bottom-nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; flex: 1; height: 100%; color: #9ca3af;
  font-size: 0.62rem; font-weight: 600; text-decoration: none;
  position: relative; min-width: 0; user-select: none;
}
.bottom-nav-item i { font-size: 1.3rem; line-height: 1; transition: transform 0.15s; }
.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-item.active i { transform: scale(1.1); }
.bottom-nav-item .nav-badge {
  position: absolute; top: 6px; right: calc(50% - 18px);
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--danger); color: #fff; font-size: 9px; font-weight: 700;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
}

.mobile-topbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--primary); color: #fff;
  padding: 0 8px; padding-top: var(--safe-top);
  height: calc(var(--top-bar-h) + var(--safe-top));
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.mobile-topbar .topbar-btn {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; border: none; background: transparent; color: #fff;
  font-size: 1.2rem; cursor: pointer;
}
.mobile-topbar .topbar-btn:active { background: rgba(255,255,255,0.15); }
.mobile-topbar .topbar-title { font-weight: 700; font-size: 1rem; }

.customer-card {
  background: #fff; border-radius: 16px; padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: transform 0.12s;
}
.customer-card:active { transform: scale(0.985); }

.tx-card {
  background: #fff; border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.tx-card + .tx-card { margin-top: 8px; }

.fab {
  position: fixed; right: 16px;
  bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 16px);
  z-index: 35; width: 56px; height: 56px; border-radius: 16px;
  background: var(--primary-light); color: #fff; border: none;
  box-shadow: 0 4px 14px rgba(37,99,235,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; cursor: pointer;
}
.fab:active { transform: scale(0.93); }

.bulk-bar {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 8px);
  left: 50%; transform: translateX(-50%); z-index: 45;
  background: #111827; color: #fff; padding: 10px 16px;
  border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  display: flex; align-items: center; gap: 12px;
  max-width: calc(100vw - 24px); white-space: nowrap;
}

.chip-scroll {
  display: flex; gap: 8px; overflow-x: auto;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px;
}
.chip-scroll::-webkit-scrollbar { display: none; }
.filter-chip {
  display: inline-flex; align-items: center;
  padding: 0.4rem 0.85rem; min-height: 34px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; border: 1.5px solid #e5e7eb;
  background: #fff; color: #6b7280; cursor: pointer; white-space: nowrap;
}
.filter-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.modal-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: flex-end; justify-content: center;
}
.modal-sheet {
  background: #fff; width: 100%; max-width: 100%;
  border-radius: 20px 20px 0 0;
  padding: 16px 20px calc(20px + var(--safe-bottom));
  max-height: 90vh; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: sheetUp 0.25s ease-out;
}
.modal-handle {
  width: 36px; height: 4px; background: #d1d5db;
  border-radius: 2px; margin: 0 auto 14px;
}
@keyframes sheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.main-with-nav {
  padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 12px);
}

.show-mobile { display: block; }
.hide-mobile { display: none; }


/* ---- Mobil: Büyük kartlar & butonlar (app hissi) ---- */
@media (max-width: 1023px) {
  .stat-card {
    padding: 18px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }
  .stat-label { font-size: 0.72rem; margin-bottom: 6px; }
  .stat-value { font-size: 1.55rem; }

  .card { border-radius: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
  .card-header { padding: 16px 18px; font-size: 1rem; }

  .customer-card {
    padding: 18px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  }

  .tx-card {
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }

  .btn {
    min-height: 52px;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    border-radius: 14px;
  }
  .btn-sm {
    min-height: 44px;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    border-radius: 12px;
  }
  .btn-block { min-height: 54px; font-size: 1.05rem; }

  .form-input {
    min-height: 54px;
    padding: 0.9rem 1.1rem;
    font-size: 16px;
    border-radius: 14px;
  }

  .balance-badge {
    padding: 0.4rem 0.85rem;
    font-size: 0.9rem;
    border-radius: 12px;
  }

  .filter-chip {
    min-height: 40px;
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
  }

  .page-title { font-size: 1.5rem; }
  .fab {
    width: 60px; height: 60px;
    border-radius: 18px;
    font-size: 1.5rem;
  }

  .bottom-nav-item { font-size: 0.68rem; }
  .bottom-nav-item i { font-size: 1.4rem; }
}

/* ============================================================
   MASAÜSTÜ TASARIM  (≥ 1024px)
   ============================================================ */
@media (min-width: 1024px) {

  .bottom-nav,
  .mobile-topbar,
  .fab,
  .bulk-bar { display: none !important; }

  .show-mobile { display: none !important; }
  .hide-mobile { display: block !important; }
  .hide-mobile-flex { display: flex !important; }

  .main-with-nav {
    padding-bottom: 2rem;
    min-height: 100vh;
  }

  .page-title { font-size: 1.6rem; }
  .page-subtitle { font-size: 0.875rem; }

  .stat-card {
    padding: 20px 22px;
    border-radius: 14px;
    border: 1px solid #f0f0f0;
    transition: box-shadow 0.15s, border-color 0.15s;
  }
  .stat-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border-color: #e0e7ff;
  }
  .stat-label { font-size: 0.75rem; margin-bottom: 6px; }
  .stat-value { font-size: 1.6rem; }

  .card {
    border-radius: 14px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  }
  .card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
  .card-header {
    padding: 16px 20px;
    background: #fafbfc;
    font-size: 0.9rem;
  }

  table.data-table th { padding: 12px 16px; font-size: 0.72rem; }
  table.data-table td { padding: 12px 16px; font-size: 0.9rem; }
  table.data-table tr:hover td { background: #f8fafc; }

  .form-input { min-height: 42px; font-size: 0.9rem; border-radius: 10px; }
  .btn { min-height: 40px; border-radius: 10px; }
  .btn-sm { min-height: 32px; }

  .modal-overlay {
    align-items: center; padding: 24px;
  }
  .modal-sheet {
    max-width: 440px; border-radius: 16px;
    padding: 28px; animation: fadeIn 0.2s ease-out;
  }
  .modal-handle { display: none; }
  @keyframes fadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
  }

  .chip-scroll {
    overflow: visible; flex-wrap: wrap;
  }

  aside#sidebar {
    width: var(--sidebar-w) !important;
  }

  /* Desktop: bulk actions inside toolbar instead of floating */
  .desktop-bulk {
    display: flex; align-items: center; gap: 10px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .stat-value { font-size: 1.45rem; }
  .page-title { font-size: 1.5rem; }
  .modal-overlay { align-items: center; padding: 16px; }
  .modal-sheet {
    max-width: 420px; border-radius: 16px;
    padding: 24px; animation: fadeIn 0.2s ease-out;
  }
  .modal-handle { display: none; }
}

@media print {
  aside, header, nav, .no-print, .fab, .bottom-nav, .mobile-topbar { display: none !important; }
  main { margin: 0 !important; padding: 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- Hızlı yükleme overlay ---- */
#appLoader {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(2px);
  display: none; align-items: center; justify-content: center;
  pointer-events: all;
}
#appLoader.show { display: flex; }
.loader-spin {
  width: 40px; height: 40px;
  border: 3px solid #dbeafe;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- PWA Install Banner ---- */
.pwa-banner {
  position: fixed; left: 12px; right: 12px; z-index: 60;
  bottom: calc(var(--bottom-nav-h, 64px) + var(--safe-bottom, 0px) + 12px);
  background: #111827; color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  padding: 12px 14px;
  animation: sheetUp 0.3s ease-out;
}
@media (min-width: 1024px) {
  .pwa-banner { bottom: 24px; left: auto; right: 24px; max-width: 360px; }
}
.pwa-banner-inner {
  display: flex; align-items: center; gap: 10px;
}
.pwa-banner-text {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
  font-size: 0.85rem;
}
.pwa-banner-text span {
  font-size: 0.72rem; color: #9ca3af; font-weight: 400;
}
.pwa-dismiss {
  background: transparent; border: none; color: #9ca3af;
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  width: 32px; height: 32px;
}

/* ============================================================
   v3 UI – Ekran görüntüsü stili (Defterim / modern ledger)
   ============================================================ */
:root {
  --app-bg: #e8f0f7;
  --app-bg-grad: linear-gradient(180deg, #d6e8f5 0%, #eef4f9 45%, #f5f7fa 100%);
  --card-radius: 18px;
  --accent: #3b82f6;
  --section-label: #94a3b8;
}

body {
  background: var(--app-bg) !important;
}

/* Ana içerik alanı – yumuşak mavi zemin */
main.main-with-nav,
main.lg\:ml-64 {
  background: var(--app-bg-grad);
  min-height: 100vh;
}

/* Sayfa başlıkları */
.page-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.02em;
}
.page-subtitle {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 2px;
}

/* Kartlar – daha yumuşak gölge, büyük radius */
.card {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(255,255,255,0.8);
  overflow: hidden;
}
.card-header {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-weight: 700;
  font-size: 0.9rem;
  color: #334155;
}

/* Stat kartları */
.stat-card {
  background: #fff;
  border-radius: var(--card-radius);
  padding: 16px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(255,255,255,0.8);
}
.stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  margin-bottom: 4px;
}
.stat-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.02em;
}

/* Bölüm etiketleri (BANKA, KREDİ KARTI, CARİ…) */
.section-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--section-label);
  padding: 0 4px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-label .amount {
  font-weight: 700;
  font-size: 0.85rem;
  color: #64748b;
  text-transform: none;
  letter-spacing: 0;
}

/* Hesap satırı kartı */
.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 14px;
  margin-bottom: 8px;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.04);
  border: 1px solid #f1f5f9;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
  color: inherit;
}
.account-row:active { transform: scale(0.985); background: #f8fafc; }
.account-row .icon-box {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.account-row .icon-box.cash { background: #ecfdf5; color: #059669; }
.account-row .icon-box.bank { background: #eff6ff; color: #2563eb; }
.account-row .icon-box.card { background: #f5f3ff; color: #7c3aed; }
.account-row .icon-box.cari { background: #fff7ed; color: #ea580c; }
.account-row .icon-box.stock { background: #f0fdf4; color: #16a34a; }
.account-row .name {
  font-weight: 700; font-size: 0.95rem; color: #1e293b;
}
.account-row .sub {
  font-size: 0.72rem; color: #94a3b8; margin-top: 1px;
}
.account-row .bal {
  font-weight: 800; font-size: 1rem; color: #1e293b;
  text-align: right; white-space: nowrap;
}

/* Grafik kartı */
.chart-card {
  background: #fff;
  border-radius: var(--card-radius);
  padding: 16px 14px 12px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(255,255,255,0.8);
  margin-bottom: 16px;
}
.chart-legend {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.72rem; font-weight: 700; color: #64748b;
  margin-bottom: 12px;
}
.chart-legend span::before {
  content: '';
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 3px;
  margin-right: 5px;
  vertical-align: middle;
}
.chart-legend .leg-income::before { background: #3b82f6; }
.chart-legend .leg-expense::before { background: #f87171; }

/* Bottom nav – ekran görüntüsü stili */
.bottom-nav {
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
}
.bottom-nav-item {
  color: #94a3b8 !important;
  font-size: 0.65rem;
  font-weight: 600;
  gap: 3px;
}
.bottom-nav-item i {
  font-size: 1.25rem;
}
.bottom-nav-item.active {
  color: #2563eb !important;
}
.bottom-nav-item.active i {
  color: #2563eb;
}

/* Mobile topbar */
.mobile-topbar {
  background: rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 8px rgba(15, 23, 42, 0.04);
}
.topbar-title {
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.01em;
}

/* FAB – sarı/yeşil vurgu (ekran görüntüsündeki gibi) */
.fab {
  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
  color: #1e293b !important;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4) !important;
  width: 56px; height: 56px;
  border-radius: 50%;
  font-size: 1.35rem;
}
.fab:active { transform: scale(0.92); }

/* Sidebar soft dark */
aside#sidebar {
  background: linear-gradient(180deg, #1e3a8a 0%, #1e40af 50%, #1d4ed8 100%) !important;
}

/* Filter chips */
.filter-chip {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #fff;
  color: #64748b;
  border: 1.5px solid #e2e8f0;
  white-space: nowrap;
  transition: all 0.15s;
}
.filter-chip.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

/* Not kartları */
.note-card {
  border-radius: 16px;
  padding: 16px;
  border: 2px solid transparent;
  box-shadow: 0 2px 10px rgba(15,23,42,0.04);
  transition: transform 0.15s;
}
.note-card:active { transform: scale(0.98); }

/* Hızlı erişim grid */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.quick-item {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 10px rgba(15,23,42,0.04);
  border: 1px solid #f1f5f9;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.quick-item:active { background: #f8fafc; }
.quick-item .qi {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Kâr / Nakit akışı özet kartları */
.summary-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.summary-box {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(15,23,42,0.04);
}
.summary-box .lbl {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 4px;
}
.summary-box .val {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.summary-box .hint {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 4px;
}

/* Liste satırları */
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
}
.list-row:last-child { border-bottom: none; }

/* Badge renkleri */
.badge-debt {
  font-size: 0.65rem; font-weight: 800;
  padding: 2px 7px; border-radius: 6px;
  background: #fee2e2; color: #dc2626;
}
.badge-collection {
  font-size: 0.65rem; font-weight: 800;
  padding: 2px 7px; border-radius: 6px;
  background: #d1fae5; color: #059669;
}
.badge-income {
  font-size: 0.65rem; font-weight: 800;
  padding: 2px 7px; border-radius: 6px;
  background: #dbeafe; color: #2563eb;
}
.badge-expense {
  font-size: 0.65rem; font-weight: 800;
  padding: 2px 7px; border-radius: 6px;
  background: #fee2e2; color: #dc2626;
}

/* İçerik padding mobil */
@media (max-width: 1023px) {
  main.main-with-nav {
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 8px;
    padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 16px);
  }
}

/* Desktop içerik */
@media (min-width: 1024px) {
  main.lg\:ml-64 {
    padding: 24px 28px;
  }
  .page-title { font-size: 1.6rem; }
}

/* Boş durum */
.empty-state {
  background: #fff;
  border-radius: var(--card-radius);
  padding: 40px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(15,23,42,0.04);
}
.empty-state .ei {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.5rem;
}

/* Form label */
.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Modal sheet yumuşatma */
.modal-sheet {
  border-radius: 20px 20px 0 0 !important;
  box-shadow: 0 -8px 40px rgba(15,23,42,0.12);
}
@media (min-width: 1024px) {
  .modal-sheet {
    border-radius: 18px !important;
  }
}

/* ============================================================
   Profesyonel tema – kabartma / emboss yazılar
   ============================================================ */

.emboss-title {
  color: #0f172a;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.9),
    0 2px 4px rgba(15,23,42,0.12),
    0 -1px 0 rgba(15,23,42,0.08);
  letter-spacing: -0.025em;
}

.emboss-label {
  color: #475569;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.85),
    0 1px 2px rgba(15,23,42,0.06);
  letter-spacing: 0.04em;
}

.emboss-amount {
  text-shadow:
    0 1px 0 rgba(255,255,255,0.7),
    0 2px 6px rgba(15,23,42,0.1);
  letter-spacing: -0.03em;
}

/* Daha belirgin kartlar – hafif yükseltilmiş */
.card,
.stat-card,
.chart-card,
.summary-box,
.account-row,
.quick-item,
.balance-hero {
  box-shadow:
    0 1px 2px rgba(15,23,42,0.04),
    0 4px 16px rgba(15,23,42,0.06),
    inset 0 1px 0 rgba(255,255,255,0.9) !important;
  border: 1px solid rgba(226,232,240,0.9) !important;
}

.balance-hero {
  background: linear-gradient(165deg, #ffffff 0%, #f1f5f9 100%) !important;
  border-radius: 20px !important;
}

/* Section label – daha okunaklı */
.section-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  text-shadow: 0 1px 0 rgba(255,255,255,0.9);
  margin-top: 4px;
  margin-bottom: 10px;
}
.section-label .amount {
  font-size: 0.9rem;
  font-weight: 800;
  color: #1e293b;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.8),
    0 1px 3px rgba(15,23,42,0.08);
}

/* Account row – daha profesyonel */
.account-row {
  padding: 15px 16px;
  border-radius: 16px;
  margin-bottom: 10px;
}
.account-row .name {
  font-weight: 800;
  font-size: 0.98rem;
  color: #0f172a;
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}
.account-row .bal {
  font-weight: 800;
  font-size: 1.05rem;
  color: #0f172a;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.75),
    0 2px 4px rgba(15,23,42,0.08);
}
.account-row .icon-box {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  box-shadow:
    0 2px 6px rgba(15,23,42,0.08),
    inset 0 1px 0 rgba(255,255,255,0.7);
}

/* Page title daha güçlü */
.page-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.95),
    0 2px 4px rgba(15,23,42,0.1);
}

/* Stat value emboss */
.stat-value {
  font-weight: 800;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.8),
    0 2px 5px rgba(15,23,42,0.1);
}

/* Butonlar – hafif kabartma */
.btn-primary {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%) !important;
  box-shadow:
    0 2px 0 #1d4ed8,
    0 4px 12px rgba(37,99,235,0.35),
    inset 0 1px 0 rgba(255,255,255,0.25) !important;
  text-shadow: 0 1px 1px rgba(0,0,0,0.15);
  border: none !important;
}
.btn-primary:active {
  box-shadow: 0 1px 0 #1d4ed8, inset 0 2px 4px rgba(0,0,0,0.15) !important;
  transform: translateY(1px);
}
.btn-danger {
  background: linear-gradient(180deg, #f87171 0%, #ef4444 100%) !important;
  box-shadow:
    0 2px 0 #dc2626,
    0 4px 12px rgba(239,68,68,0.3),
    inset 0 1px 0 rgba(255,255,255,0.2) !important;
}
.btn-outline {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  box-shadow:
    0 1px 2px rgba(15,23,42,0.06),
    inset 0 1px 0 rgba(255,255,255,1) !important;
  border: 1.5px solid #e2e8f0 !important;
}

/* Form input – daha net */
.form-input {
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: inset 0 1px 3px rgba(15,23,42,0.04);
  font-weight: 500;
}
.form-input:focus {
  border-color: #3b82f6 !important;
  box-shadow:
    0 0 0 3px rgba(59,130,246,0.18),
    inset 0 1px 2px rgba(15,23,42,0.04) !important;
}

/* Badge daha görünür */
.badge-debt, .badge-expense {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: linear-gradient(180deg, #fecaca, #fee2e2);
  color: #b91c1c;
  box-shadow: 0 1px 2px rgba(185,28,28,0.15);
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}
.badge-collection, .badge-income {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: linear-gradient(180deg, #bbf7d0, #d1fae5);
  color: #047857;
  box-shadow: 0 1px 2px rgba(4,120,87,0.15);
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

/* Sidebar daha premium */
aside#sidebar {
  background: linear-gradient(175deg, #0f172a 0%, #1e3a8a 40%, #1d4ed8 100%) !important;
  box-shadow: 4px 0 24px rgba(15,23,42,0.2);
}
.nav-link {
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.nav-link.active {
  background: linear-gradient(90deg, rgba(255,255,255,0.2), rgba(255,255,255,0.08)) !important;
  box-shadow: inset 3px 0 0 #60a5fa;
}

/* Bottom nav daha net */
.bottom-nav-item {
  font-weight: 700 !important;
}
.bottom-nav-item.active {
  color: #1d4ed8 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}
.bottom-nav-item.active i {
  filter: drop-shadow(0 1px 2px rgba(37,99,235,0.35));
}

/* FAB premium */
.fab {
  background: linear-gradient(145deg, #fcd34d, #f59e0b) !important;
  box-shadow:
    0 4px 0 #d97706,
    0 8px 20px rgba(245,158,11,0.4),
    inset 0 1px 0 rgba(255,255,255,0.4) !important;
  color: #78350f !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.3);
}

/* Chart bars – daha dolgun */
.chart-card .bg-blue-500 {
  background: linear-gradient(180deg, #60a5fa, #2563eb) !important;
  box-shadow: 0 2px 4px rgba(37,99,235,0.3);
}
.chart-card .bg-red-400 {
  background: linear-gradient(180deg, #fca5a5, #f87171) !important;
  box-shadow: 0 2px 4px rgba(248,113,113,0.3);
}

/* ============================================================
   Premium Bakiye Kartı + Profesyonel Menü
   ============================================================ */

/* --- Bakiye kartı (hero) --- */
.balance-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #1e3a8a 0%, #1d4ed8 45%, #3b82f6 100%) !important;
  border: none !important;
  border-radius: 22px !important;
  padding: 28px 24px !important;
  box-shadow:
    0 12px 32px rgba(29, 78, 216, 0.35),
    0 4px 12px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.2) !important;
  color: #fff;
}
.balance-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 70%;
  height: 140%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 65%);
  pointer-events: none;
}
.balance-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle, rgba(96,165,250,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.balance-hero .text-xs,
.balance-hero .emboss-label {
  color: rgba(219, 234, 254, 0.9) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
  font-size: 0.75rem !important;
  letter-spacing: 0.12em !important;
}
.balance-hero .emboss-amount,
.balance-hero .text-3xl {
  color: #fff !important;
  text-shadow:
    0 2px 4px rgba(0,0,0,0.25),
    0 1px 0 rgba(255,255,255,0.15) !important;
  position: relative;
  z-index: 1;
  font-size: 2rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
}
.balance-hero .font-mono,
.balance-hero .text-slate-400,
.balance-hero .text-slate-500 {
  color: rgba(191, 219, 254, 0.85) !important;
  position: relative;
  z-index: 1;
}

/* Negatif bakiye – kırmızı ton */
.balance-hero.negative {
  background: linear-gradient(145deg, #7f1d1d 0%, #b91c1c 45%, #ef4444 100%) !important;
  box-shadow:
    0 12px 32px rgba(185, 28, 28, 0.35),
    0 4px 12px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.15) !important;
}

/* --- Sidebar profesyonel --- */
aside#sidebar {
  background: linear-gradient(180deg, #0b1220 0%, #0f172a 30%, #1e293b 100%) !important;
  box-shadow: 6px 0 30px rgba(0,0,0,0.25) !important;
  border-right: 1px solid rgba(255,255,255,0.06);
}
aside#sidebar .border-b {
  border-color: rgba(255,255,255,0.08) !important;
  background: rgba(255,255,255,0.03);
  padding-top: 1.25rem !important;
  padding-bottom: 1.25rem !important;
}
aside#sidebar .w-10.h-10 {
  background: linear-gradient(145deg, #3b82f6, #1d4ed8) !important;
  box-shadow:
    0 4px 12px rgba(37, 99, 235, 0.4),
    inset 0 1px 0 rgba(255,255,255,0.25);
  border-radius: 12px !important;
  font-weight: 800;
}
aside#sidebar .font-bold.text-lg {
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
aside#sidebar .text-primary-200 {
  color: #94a3b8 !important;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  margin: 2px 0;
  border-radius: 12px;
  color: #94a3b8 !important;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.18s ease;
  min-height: 46px;
  position: relative;
}
.nav-link i {
  width: 22px;
  text-align: center;
  font-size: 1.05rem;
  opacity: 0.85;
}
.nav-link:hover {
  background: rgba(255,255,255,0.06) !important;
  color: #e2e8f0 !important;
}
.nav-link.active {
  background: linear-gradient(90deg, rgba(59,130,246,0.25) 0%, rgba(59,130,246,0.08) 100%) !important;
  color: #fff !important;
  box-shadow: inset 3px 0 0 #60a5fa;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.nav-link.active i {
  color: #93c5fd;
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(147, 197, 253, 0.5));
}

/* Sidebar alt durum paneli */
aside#sidebar .border-t {
  border-color: rgba(255,255,255,0.08) !important;
  background: rgba(0,0,0,0.2);
}

/* --- Mobil üst bar --- */
.mobile-topbar {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06) !important;
  height: var(--top-bar-h);
}
.topbar-title {
  font-weight: 800 !important;
  font-size: 1.05rem !important;
  color: #0f172a !important;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 0 rgba(255,255,255,0.9);
}
.topbar-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  background: transparent;
  transition: background 0.15s;
}
.topbar-btn:active {
  background: #f1f5f9;
}

/* --- Alt menü (bottom nav) premium --- */
.bottom-nav {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-top: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow:
    0 -4px 24px rgba(15, 23, 42, 0.08),
    0 -1px 0 rgba(255,255,255,0.8) inset !important;
}
.bottom-nav-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  height: var(--bottom-nav-h);
  max-width: 520px;
  margin: 0 auto;
  padding: 0 4px;
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #94a3b8 !important;
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  text-decoration: none;
  position: relative;
  padding: 6px 2px;
  border-radius: 12px;
  transition: color 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav-item i {
  font-size: 1.3rem !important;
  line-height: 1;
  transition: transform 0.15s, color 0.15s;
}
.bottom-nav-item.active {
  color: #1d4ed8 !important;
}
.bottom-nav-item.active i {
  color: #2563eb !important;
  transform: translateY(-1px);
  filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.35));
}
.bottom-nav-item.active::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
}
.bottom-nav-item:active {
  transform: scale(0.94);
}
.nav-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 18px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: linear-gradient(180deg, #f87171, #ef4444);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
  border: 1.5px solid #fff;
}

/* Stat kartları – bakiye benzeri vurgu */
.stat-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%) !important;
  border-radius: 18px !important;
  padding: 18px 16px !important;
  box-shadow:
    0 4px 16px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255,255,255,1) !important;
  border: 1px solid #e2e8f0 !important;
}
.stat-label {
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  color: #64748b !important;
  text-transform: uppercase;
}
.stat-value {
  font-size: 1.4rem !important;
  font-weight: 800 !important;
  color: #0f172a;
  letter-spacing: -0.03em;
  text-shadow: 0 1px 0 rgba(255,255,255,0.9), 0 2px 4px rgba(15,23,42,0.08);
}

/* Summary pair (kâr / nakit) */
.summary-box {
  background: linear-gradient(165deg, #ffffff 0%, #f1f5f9 100%) !important;
  border-radius: 18px !important;
  padding: 18px 16px !important;
  box-shadow:
    0 4px 16px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255,255,255,1) !important;
  border: 1px solid #e2e8f0 !important;
}
.summary-box .lbl {
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em;
  color: #64748b !important;
}
.summary-box .val {
  font-size: 1.3rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  text-shadow: 0 1px 0 rgba(255,255,255,0.85);
}

/* KobiKasa-style nav sections */
.nav-section {
  margin-top: 14px;
  margin-bottom: 4px;
  padding: 4px 12px 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8095a8;
}
#sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 6px;
  color: #a7b1c2;
  font-weight: 500;
  transition: background .15s, color .15s;
}
#sidebar .nav-link:hover {
  background: #293846;
  color: #fff;
}
#sidebar .nav-link.active {
  background: #1ab394;
  color: #fff;
}

/* KobiKasa-style dashboard widgets */
.kk-widgets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 768px) {
  .kk-widgets { grid-template-columns: repeat(4, 1fr); }
}
.kk-widget {
  display: block;
  border-radius: 6px;
  padding: 16px 18px;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
  transition: transform .15s, box-shadow .15s;
  min-height: 96px;
}
.kk-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  color: #fff !important;
}
.kk-widget .kk-icon { font-size: 2.4rem; opacity: .85; }
.kk-widget .kk-label { font-size: 12px; opacity: .9; }
.kk-widget .kk-title { font-size: 1.25rem; font-weight: 700; margin-top: 2px; }
.kk-lazur { background: #23c6c8; }
.kk-navy { background: #1ab394; }
.kk-red { background: #ed5565; }
.kk-blue { background: #1c84c6; }
.kk-yellow { background: #f8ac59; }
.kk-gray { background: #676a6c; }
.kk-dark { background: #2f4050; }
.kk-purple { background: #7a6fbe; }

.page-heading-kk {
  background: #fff;
  border-bottom: 1px solid #e7eaec;
  padding: 14px 4px 12px;
  margin-bottom: 16px;
}
.page-heading-kk h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #2f4050;
  margin: 0;
}

/* ============================================================
   3D RENKLİ TEMA – tüm sayfalar
   ============================================================ */
:root {
  --c-green: #1ab394;
  --c-green-dark: #148f77;
  --c-blue: #1c84c6;
  --c-blue-dark: #1769a0;
  --c-red: #ed5565;
  --c-red-dark: #d64051;
  --c-orange: #f8ac59;
  --c-orange-dark: #e09a45;
  --c-cyan: #23c6c8;
  --c-cyan-dark: #1aa8aa;
  --c-purple: #7a6fbe;
  --c-purple-dark: #6559a8;
  --c-navy: #2f4050;
  --c-navy-dark: #243442;
  --c-gray: #676a6c;
}

/* 3D buton temeli */
.btn,
button[type="submit"],
input[type="submit"],
a.btn,
.btn-primary,
.btn-success,
.btn-danger,
.btn-outline {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 12px 20px !important;
  min-height: 46px;
  color: #fff !important;
  text-decoration: none !important;
  cursor: pointer;
  position: relative;
  box-shadow:
    0 4px 0 var(--btn-shadow, #148f77),
    0 6px 14px rgba(0,0,0,.18) !important;
  transform: translateY(0);
  transition: transform .12s, box-shadow .12s, filter .12s !important;
}
.btn:hover, button[type="submit"]:hover, a.btn:hover,
.btn-primary:hover, .btn-success:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    0 6px 0 var(--btn-shadow, #148f77),
    0 10px 20px rgba(0,0,0,.22) !important;
}
.btn:active, button[type="submit"]:active, a.btn:active {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 var(--btn-shadow, #148f77),
    0 2px 6px rgba(0,0,0,.15) !important;
}

.btn-primary, button[type="submit"], input[type="submit"],
.bg-\[\#1ab394\], [class*="bg-[#1ab394]"] {
  background: linear-gradient(180deg, #1ec9a4 0%, #1ab394 55%, #17a589 100%) !important;
  --btn-shadow: #0f766e;
  color: #fff !important;
}
.btn-success { background: linear-gradient(180deg, #2dd4a8, #1ab394) !important; --btn-shadow: #0f766e; }
.btn-danger, .text-red-500.btn { background: linear-gradient(180deg, #f87171, #ed5565) !important; --btn-shadow: #b91c1c; color:#fff !important; }
.btn-outline {
  background: linear-gradient(180deg, #3d5163, #2f4050) !important;
  --btn-shadow: #1a252f;
  color: #fff !important;
}

/* Kartlar 3D */
.card, .bg-white.rounded-lg, .bg-white.rounded-xl,
.summary-box, .kk-widget {
  box-shadow:
    0 1px 0 rgba(255,255,255,.8) inset,
    0 8px 20px rgba(47,64,80,.12),
    0 2px 4px rgba(0,0,0,.06) !important;
  border-radius: 14px !important;
  border: 1px solid rgba(226,232,240,.9) !important;
  transition: transform .15s, box-shadow .15s;
}
.kk-widget:hover, .card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 14px 28px rgba(47,64,80,.18) !important;
}

/* Form alanları */
.form-input, input.form-input, select.form-input, textarea.form-input,
input[type="text"], input[type="password"], input[type="number"],
input[type="date"], input[type="email"], input[type="tel"],
select, textarea {
  border-radius: 10px !important;
  border: 2px solid #e2e8f0 !important;
  box-shadow: 0 2px 0 #cbd5e1, inset 0 1px 2px rgba(0,0,0,.04) !important;
  padding: 10px 14px !important;
  transition: border-color .15s, box-shadow .15s;
}
.form-input:focus, input:focus, select:focus, textarea:focus {
  border-color: #1ab394 !important;
  box-shadow: 0 2px 0 #99f6e4, 0 0 0 3px rgba(26,179,148,.2) !important;
  outline: none !important;
}

/* Sidebar link 3D active */
#sidebar .nav-link.active {
  background: linear-gradient(180deg, #1ec9a4, #1ab394) !important;
  box-shadow: 0 3px 0 #0f766e, 0 4px 10px rgba(0,0,0,.2) !important;
  border-radius: 8px !important;
  color: #fff !important;
}
#sidebar .nav-link:hover:not(.active) {
  background: #293846 !important;
  border-radius: 8px;
}

/* Tablo satır hover */
table tbody tr:hover { background: #f0fdfa !important; }

/* Sayfa başlığı */
.page-heading-kk {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border-radius: 14px;
  padding: 16px 18px !important;
  box-shadow: 0 4px 12px rgba(47,64,80,.08);
  border: 1px solid #e7eaec;
  margin-bottom: 18px !important;
}

/* Mobil alt menü / hızlı butonlar */
.quick-actions a, .tx-card {
  border-radius: 12px !important;
  box-shadow: 0 3px 0 #cbd5e1, 0 4px 12px rgba(0,0,0,.08) !important;
}

/* Badge 3D */
.badge, span.rounded-full {
  box-shadow: 0 2px 0 rgba(0,0,0,.15);
}

/* Primary full width submit on forms */
form button[name="save"],
form button[type="submit"].w-full,
.w-full.bg-\[\#1ab394\] {
  width: 100%;
  background: linear-gradient(180deg, #1ec9a4 0%, #1ab394 60%, #17a589 100%) !important;
  box-shadow: 0 5px 0 #0f766e, 0 8px 16px rgba(15,118,110,.35) !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  color: #fff !important;
  padding: 14px !important;
}
