/* ==========================================================================
   Koyu tema. data-theme="dark" html etiketine eklenir (header'daki ay ikonu).
   Seçim tarayıcıda hatırlanır; ilk açılışta sistem tercihi esas alınır.
   ========================================================================== */

:root[data-theme="dark"] {
  --body-bg: #1a1c1e;
  --surface: #222527;
  --surface-muted: #2a2d30;
  --surface-hover: #2d3034;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.11);
  --input-border: rgba(255, 255, 255, 0.14);

  --text: #d6d8de;
  --text-strong: #eef0f4;
  --text-muted: #8e939b;
  --text-soft: #6d727a;

  --sidebar-bg: #1d2024;
  --sidebar-border: rgba(255, 255, 255, 0.07);

  --header-bg: #222527;
  --header-icon: #a3aed1;

  --shadow-card: 0 0.125rem 0 rgba(0, 0, 0, 0.2);
  --shadow-dropdown: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.45);
  --shadow-header: 0 0.125rem 0 rgba(0, 0, 0, 0.2);

  color-scheme: dark;
}

:root[data-theme="dark"] .demo-banner {
  color: #f1c97a;
}

:root[data-theme="dark"] .alert-danger { color: #f19a8b; }
:root[data-theme="dark"] .alert-warning { color: #f1c97a; }
:root[data-theme="dark"] .alert-info { color: #8fd0f8; }
:root[data-theme="dark"] .alert-success { color: #7fe0c3; }
:root[data-theme="dark"] .badge-warning,
:root[data-theme="dark"] .avatar-c2 { color: var(--warning); }

:root[data-theme="dark"] .btn-primary:hover:not(:disabled) {
  background: #9370e6;
}
