/* Tema degiskenleri. Shadow DOM sinirini gecen tek sey CSS custom property'ler;
   tum bilesenler renk, aralik, kose, golge ve yazi tipini buradan alir.

   Gorsel yon (bolum 12, 2026-11-19 eki): duz, sade panel. Acik mavi-gri zemin,
   beyaz kartlar, ince cerceve ve cok hafif golge; kabartma ve gomuk golge yok.
   Koyu petrol tek vurgu. Lexend basliklar, Public Sans metin (fonts.css, kendimiz
   barindiriyoruz). Koyu tema data-theme="dark" ile; secim index.html'de sayfa
   cizilmeden once uygulanir, boylece acik tema yanip sonmez.

   Karsitlik: --ink, --ink-soft ve --accent-text zeminde ve yuzeyde en az 4,5:1;
   --ink-faint ikincil bilgi icin en az 3:1; --accent uzerindeki beyaz yazi en az
   4,5:1 (acikta 7,3, koyuda 5,4). */
:root {
  --paper:      #f1f4f9;
  --surface:    #ffffff;
  /* Alan zemini ve hafif ayrim zemini (input, tablo basligi, satir hover). */
  --surface-2:  #f4f6fa;
  /* Ikincil dugme ve secili sekme yuzeyi. */
  --surface-raised: #ffffff;
  /* Kurul kolonu: kartlari tasiyan duz tepsi. */
  --tray:       #f7f9fc;
  --ink:        #1e2633;
  --ink-soft:   #5b6474;
  --ink-faint:  #7a8494;
  --line:       #e5e9f0;
  --line-firm:  #d3d9e2;
  /* Kart ve panel cercevesi. */
  --edge:       #e6eaf0;

  /* Tek ana vurgu: birincil dugme, secili menu/sekme, odak halkasi,
     birakma gostergesi, ilerleme dolgusu. */
  --accent:        #0f5f6e;
  --accent-strong: #0b4d5a;
  --accent-soft:   #e3eff1;
  --accent-text:   #0f5f6e;
  --accent-ink:    #ffffff;
  /* Birincil dugmenin dolgusu; duz temada tek renk. */
  --accent-fill:   #0f5f6e;
  --accent-lip:    #0b4d5a;

  /* Ikincil renkler: etiketler, durum noktalari ve oncelik seritleri. */
  --violet:       #4f46e5;
  --violet-soft:  #ebeafd;
  --pink:         #be185d;
  --pink-soft:    #fce7f1;
  --amber:        #f2a50c;
  --amber-soft:   #fef5df;
  --amber-text:   #8f5200;
  --danger:       #c42f36;
  --danger-soft:  #fdecec;
  /* Beyaz yazi tasiyan kirmizi dolgu (sayi rozeti, silme dugmesi); iki temada ayni. */
  --danger-strong: #c42f36;
  --sky:          #1a64a8;
  --sky-soft:     #e2effa;
  --teal:         #0f766e;
  --teal-soft:    #dcf2ee;
  /* Tamamlandi isareti (kolon noktasi). */
  --success:      #1f9d63;

  --p-low:    #98a2b3;
  --p-medium: #3b8fe0;
  --p-high:   #f2a50c;
  --p-urgent: #e5484d;

  --step: 4px;
  --radius:    8px;   /* dugme, input, etiket kutusu */
  --radius-lg: 12px;  /* kartlar, kolonlar */
  --radius-xl: 14px;  /* buyuk kartlar, pencereler, giris karti */

  /* Kart ve panel: cok hafif golge. */
  --shadow:     0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.05);
  /* Kucuk oge: dugme, kurul karti, avatar. */
  --shadow-sm:  0 1px 2px rgba(16, 24, 40, 0.05);
  /* Duz temada alanlar gomuk degildir. */
  --shadow-inset: none;
  /* Birincil dugme. */
  --shadow-accent: 0 1px 2px rgba(15, 95, 110, 0.25);
  /* Pencere ve acilir menu. */
  --shadow-lg:  0 20px 48px rgba(16, 24, 40, 0.18);

  --font: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Lexend", "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --heading-tracking: -0.025em;

  --sidebar-width: 248px;
  --topbar-height: 60px;

  /* Gecis suresi. Hareket azaltma tercihinde sifirlanir ve sinirin otesine de gecer. */
  --motion: 150ms;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper:      #12161f;
  --surface:    #1a1f2b;
  --surface-2:  #212736;
  --surface-raised: #1a1f2b;
  --tray:       #161b25;
  --ink:        #e8ebf2;
  --ink-soft:   #a4acbe;
  --ink-faint:  #8089a0;
  --line:       #2a3142;
  --line-firm:  #3a4157;
  --edge:       #272d3c;

  --accent:      #177585;
  --accent-strong: #1b8799;
  --accent-soft: rgba(23, 117, 133, 0.25);
  --accent-text: #5cc4d6;
  --accent-fill: #177585;
  --accent-lip:  #0f5f6e;

  --violet:      #8b8ff8;
  --violet-soft: rgba(99, 102, 241, 0.22);
  --pink:        #f472b6;
  --danger:      #f87171;
  --pink-soft:   rgba(219, 39, 119, 0.22);
  --amber-soft:  rgba(242, 165, 12, 0.2);
  --amber-text:  #fbbf24;
  --danger-soft: rgba(220, 60, 66, 0.22);
  --sky:         #5cb3f5;
  --sky-soft:    rgba(92, 179, 245, 0.18);
  --teal:        #2dd4bf;
  --teal-soft:   rgba(45, 212, 191, 0.18);
  --success:     #3fbf87;

  --shadow:       0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm:    0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-inset: none;
  --shadow-accent: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-lg:    0 24px 56px rgba(0, 0, 0, 0.6);

  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --motion: 0ms;
  }
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* Belge duzeyindeki bu kural bilesenin :host kuralini ezer; o yuzden yerlesim
   burada tanimlanir: kabuk ekrani doldurur, icerik alani kalan yuksekligi alir. */
app-shell {
  display: flex;
  height: 100vh;
}

/* Bilesenler tanimlanmadan once (JS yuklenirken) sayfa bos gorunmesin. */
app-shell:not(:defined) {
  display: block;
}

app-shell:not(:defined)::before {
  content: "Yükleniyor…";
  display: block;
  padding: calc(var(--step) * 8);
  color: var(--ink-soft);
}

/* Yazdirma (bolum 10, wiki v2 eki): kabuk sabit yukseklikte kaymaz, sayfa
   kagida akar; arka plan beyaz. Kenar cubugu ve ust cubuk app-shell icinde gizlenir. */
@media print {
  html, body {
    background: #ffffff;
  }
  app-shell {
    display: block;
    height: auto;
  }
}