/* Vigilium web uygulaması — tema. Eklenti panelinin (dashboard.css) dilini izler: Newsreader başlık, IBM Plex Sans metin,
   sade siyah-beyaz yüzeyler, koyu yan menü, renk yalnızca anlam için (kırmızı acil, turuncu uyarı, yeşil tamam).
   Yazı tipleri bu sitenin kendisinden gelir (fonts/); dışarıdan yüklenmez. CSP gereği satır içi stil yoktur. */
:root {
  --bg: #F4F5F7; --panel: #FFFFFF; --text: #16181D; --muted: #5F6470; --line: #E3E5E9; --line2: #EEF0F3;
  --navy: #16181D; --navy2: #000000; --on-primary: #FFFFFF; --accent: #2952CC;
  --red: #C0362C; --redbg: #FCEBEA; --green: #1F7A4D; --greenbg: #E7F5EE; --amber: #945800; --amberbg: #FFF4DF;
  --th-bg: #F7F8FA; --th-text: #5F6470; --hover: #F7F8FA;
  --yan-bg: #111214; --yan-text: #A9ABB2; --yan-soluk: #6F727A; --yan-aktif: #25262B; --yan-cizgi: #222328;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04);
  --serif: 'Newsreader', Georgia, serif; --sans: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  color-scheme: light;
}
:root[data-tema="koyu"] {
  --bg: #0E0F12; --panel: #16181C; --text: #ECEDEF; --muted: #9A9EA8; --line: #272A30; --line2: #1E2025;
  --navy: #ECEDEF; --navy2: #FFFFFF; --on-primary: #111214; --accent: #8FA8FF;
  --red: #F0675D; --redbg: #3A1C1A; --green: #4CC38A; --greenbg: #13291F; --amber: #F2B24C; --amberbg: #33260E;
  --th-bg: #1B1D22; --th-text: #9A9EA8; --hover: #1C1E23;
  --yan-bg: #0A0B0D; --yan-aktif: #1D1F24; --yan-cizgi: #1D1F24;
  --shadow: none;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--accent); }
.silik { color: var(--muted); }
button { font: inherit; font-weight: 500; cursor: pointer; border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 7px 14px; border-radius: 6px; }
button:hover { border-color: color-mix(in srgb, var(--text) 30%, var(--line)); }
button:disabled { opacity: .55; cursor: default; }
button.birincil, a.birincil { background: var(--navy); border: 1px solid var(--navy); color: var(--on-primary); font-weight: 600; }
button.birincil:hover, a.birincil:hover { background: var(--navy2); border-color: var(--navy2); }
a.birincil { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 6px; text-decoration: none; }
input[type=search], input[type=text], input[type=email] { font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
::placeholder { color: var(--muted); opacity: .75; }

/* ---- giriş sayfası ---- */
.giris-sayfa { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.giris-kart { width: min(440px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 32px 28px; display: grid; gap: 16px; box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .35); }
.giris-marka { display: flex; align-items: center; gap: 12px; }
.logo-zemin { fill: var(--navy); } .logo-v { stroke: var(--on-primary); }
.giris-kart h1 { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
.giris-kart p { margin: 0; color: var(--muted); }
.giris-kart ul.guven { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13.5px; }
.giris-kart small { color: var(--muted); font-size: 12px; line-height: 1.5; }
/* Giriş yöntemleri: her yöntem aynı biçimde bir satır. İleride Microsoft ve e-posta kodu buraya eklenir. */
.yontemler { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.yontem-dugme { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #FFFFFF; color: #1F1F1F; font-size: 15px; font-weight: 600; text-decoration: none; }
.yontem-dugme:hover { background: #F7F8FA; }
.yontem-dugme svg { width: 18px; height: 18px; flex: none; }
.giris-hata { padding: 10px 12px; border-radius: 8px; background: var(--redbg); color: var(--red); font-size: 13.5px; }
.yerel-test { display: grid; gap: 8px; padding: 12px; border: 1px dashed var(--line); border-radius: 8px; font-size: 12.5px; color: var(--muted); }
.yerel-test .satir { display: flex; gap: 8px; }
.yerel-test input { flex: 1; min-width: 0; }
.ara-sayfa { display: grid; place-items: center; min-height: 100vh; color: var(--muted); }

/* ---- yerleşim ---- */
.uygulama { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.yan { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--yan-bg); color: var(--yan-text); display: flex; flex-direction: column; gap: 14px; padding: 18px 12px 16px; }
.yan .marka { display: flex; gap: 11px; align-items: center; padding: 2px 8px 12px; }
.marka-ad { display: flex; flex-direction: column; line-height: 1.1; }
.marka-ad .ad { font-family: var(--serif); font-size: 22px; font-weight: 600; color: #FFFFFF; letter-spacing: .005em; }
.marka-ad .unvan { font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--yan-soluk); margin-top: 4px; }
.menu { display: flex; flex-direction: column; gap: 1px; }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: 6px; background: none; color: var(--yan-text); font-size: 13.5px; }
.menu button svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.menu button .ad { flex: 1; }
.menu button:hover { background: var(--yan-aktif); color: #FFFFFF; }
.menu button.aktif { background: var(--yan-aktif); color: #FFFFFF; box-shadow: inset 0 0 0 1px #2E3036; }
.menu .sayi { color: var(--yan-soluk); font-size: 12px; font-variant-numeric: tabular-nums; }
.yan-alt { margin-top: auto; border-top: 1px solid var(--yan-cizgi); padding: 14px 8px 0; display: flex; flex-direction: column; gap: 12px; }
.yan-eklenti { font-size: 12px; line-height: 1.5; color: var(--yan-soluk); display: flex; gap: 8px; align-items: baseline; }
.yan-eklenti b { color: var(--yan-text); font-weight: 600; }
.yan-hesap { font-size: 12px; color: var(--yan-soluk); display: grid; gap: 1px; }
.yan-hesap b { color: #FFFFFF; font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yan-hesap span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yan-dugmeler { display: flex; gap: 6px; }
.yan-ikon { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--yan-cizgi); background: none; color: var(--yan-text); font-size: 12.5px; }
.yan-ikon.sadece { width: 34px; padding: 0; }
.yan-ikon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.yan-ikon:hover { color: #FFFFFF; border-color: #3A3C42; background: var(--yan-aktif); }
:root:not([data-tema="koyu"]) .i-gunes, :root[data-tema="koyu"] .i-ay { display: none; }

.icerik { min-width: 0; display: flex; flex-direction: column; }
.ust { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 32px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.ust h1 { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 400; letter-spacing: -.01em; line-height: 1.2; }
.ust .alt { color: var(--muted); font-size: 13px; }
main { padding: 26px 32px 40px; max-width: 1280px; width: 100%; }
.alt-bilgi { padding: 0 32px 28px; color: var(--muted); font-size: 12.5px; max-width: 1280px; }

/* eklenti durumu: renk yalnızca anlam için */
.durum { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; border: 1px solid var(--line); background: var(--panel); color: var(--muted); }
.durum::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.durum.bagli { color: var(--green); background: var(--greenbg); border-color: transparent; }
.durum.uyari { color: var(--amber); background: var(--amberbg); border-color: transparent; }
.durum.hata { color: var(--red); background: var(--redbg); border-color: transparent; }

.yonerge { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; box-shadow: var(--shadow); display: grid; gap: 10px; max-width: 760px; }
.yonerge h2 { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: -.005em; }
.yonerge p { margin: 0; color: var(--muted); }
.yonerge ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.yonerge .eylem { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.yonerge .not { font-size: 12.5px; color: var(--muted); }

/* içerik */
.sekme { display: none; }
.sekme.aktif { display: block; }
.ozet-kutular { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.ozet { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; box-shadow: var(--shadow); }
.ozet .o-s { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.ozet .o-e { font-size: 12.5px; color: var(--muted); }
.ozet.acil .o-s { color: var(--red); }
.ozet.uyari .o-s { color: var(--amber); }
.bolum-baslik { margin: 22px 0 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.bolum-baslik:first-child { margin-top: 0; }
.liste { display: grid; gap: 8px; }
.satir-kart { background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 10px 14px; box-shadow: var(--shadow); display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.satir-kart .sol { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.satir-kart .b { font-weight: 600; }
.satir-kart .a { color: var(--muted); font-size: 13px; }
.satir-kart.gecikmis { background: var(--redbg); }
.satir-kart.bugun { background: var(--amberbg); }
.bos-kutu { text-align: center; color: var(--muted); padding: 36px 20px; background: var(--panel); border: 1px dashed var(--line); border-radius: 10px; }

.arac { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.arac input[type=search] { min-width: 260px; flex: 0 1 380px; }
.arac .kutu { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; }
.bosluk { flex: 1; }
.tablo-kap { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: auto; box-shadow: var(--shadow); }
.tablo { width: 100%; border-collapse: collapse; font-size: 13px; }
.tablo th { position: sticky; top: 0; background: var(--th-bg); color: var(--th-text); text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 9px 10px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.tablo td { padding: 8px 10px; border-top: 1px solid var(--line2); vertical-align: top; }
.tablo tbody tr.dosya-satir { cursor: pointer; }
.tablo tbody tr.dosya-satir:hover td { background: var(--hover); }
.tablo .nowrap { white-space: nowrap; }
.tablo .sag { text-align: right; font-variant-numeric: tabular-nums; }
.tablo tr.ayrinti td { background: var(--th-bg); }
.evrak { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 4px 0; font-size: 13px; }
.evrak .t { color: var(--muted); font-variant-numeric: tabular-nums; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--line2); color: var(--muted); }
.pill.acik { background: var(--greenbg); color: var(--green); }
.pill.yok { background: var(--amberbg); color: var(--amber); }
.pill.acil { background: var(--redbg); color: var(--red); }
.pill.yeni { background: var(--red); color: #FFFFFF; }

@media (max-width: 900px) {
  .uygulama { grid-template-columns: 1fr; }
  .yan { position: static; height: auto; }
  .menu { flex-direction: row; flex-wrap: wrap; }
  .menu button { width: auto; }
  .ust, main, .alt-bilgi { padding-left: 16px; padding-right: 16px; }
  .ust { flex-wrap: wrap; }
  .satir-kart { grid-template-columns: 64px minmax(0, 1fr); }
  .satir-kart .sag { grid-column: 2; }
}
