/*
 * Onca Firewall — demo arayüz stilleri
 *
 * Salt HTML/CSS/JS demo. Gerçek cihaza, gerçek arayüze veya yapılandırmaya
 * hiçbir şey yazılmaz; buradaki her değer ya cihazdan okunmuş ya da demo için
 * uydurulmuştur.
 *
 * Marka kimliği gerçek üründen alındı (arayüz paketi):
 *   - vurgu rengi indigo (accent-palette.py: primary ramp cyan -> indigo)
 *   - yazı tipi IBM Plex Sans + IBM Plex Mono (font-stack.py)
 *   - sidebar rayı 240px (sidebar-density.py: 288 -> 240)
 *   - kart yüzeyleri ve tablo ayırıcıları (surface-theme.py, table-theme.py)
 *   - gösterge ölçekleri: hat 50/80, kaynak 70/90 (gauge.ts)
 *
 * Kullanılan yazı tipi yığını: IBM Plex ailesi cihazda kuruluysa onu kullanır,
 * yoksa aynı karakteristikleri taşıyan sistem yığınına düşer. Demo tek başına
 * çalışır, dış dosya indirmez.
 */

:root {
  /* primary ramp — indigo, gerçek üründe Tailwind --color-primary-* indigo'ya
     bağlıdır */
  --primary-50: #eef2ff;
  --primary-100: #e0e7ff;
  --primary-200: #c7d2fe;
  --primary-300: #a5b4fc;
  --primary-400: #818cf8;
  --primary-500: #6366f1;
  --primary-600: #4f46e5;
  --primary-700: #4338ca;
  --primary-800: #3730a3;
  --primary-900: #312e81;

  --font-sans: 'IBM Plex Sans', ui-sans-serif, system-ui, -apple-system,
    'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;

  --rail: 240px;
  /* yan menü başlığı ile üst çubuk aynı yükseklikte: alt çizgiler hizalı */
  --rail-head: 60px;
  --topbar-h: 60px;

  /* açık tema yüzeyleri (surface-theme.py) */
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: #e4e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;

  /* gercek govde: bg-gray-50, 14px taban, gray-700 metin */
  --text: #374151;
  --page-bg: #f9fafb;

  --ok: #059669;
  --warn: #d97706;
  --crit: #e11d48;
  --info: #0284c7;
  --violet: #6366f1;

  /* grafik serileri — dashboard trafik geçmişi */
  --chart-down: #0ea5e9;
  --chart-up: #10b981;
  /* saatlik sütun grafik (real-time monitor) */
  --chart-bar: #0891b2;

  /* etkin yan menü satırı (rail-item.active) */
  --rail-active: #eef2ff;

  --radius: 10px;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / 6%);
  --shadow: 0 1px 3px rgb(15 23 42 / 10%), 0 1px 2px rgb(15 23 42 / 6%);
  --shadow-lg: 0 10px 15px -3px rgb(15 23 42 / 10%),
    0 4px 6px -4px rgb(15 23 42 / 10%);
}

/*
 * Koyu tema = gerçek Onca arayüzündeki grafit palet (dashboard ekran
 * görüntüsünden birebir): sayfa #0b1019, kart #181e2c, ayırıcı #394354,
 * metin #e4e6eb / #98a0ad / #6a7181, vurgu yeşil #00d391, mavi #00a4f4.
 */
html.dark {
  --bg: #0b1019;
  --page-bg: #0b1019;
  --surface: #181e2c;
  --surface-2: #212939;
  --border: #232c3c;
  --border-strong: #394354;
  --text: #e4e6eb;
  --text-2: #98a0ad;
  --text-3: #6a7181;

  --ok: #00d391;
  --warn: #f5a524;
  --crit: #f04438;
  --info: #00a4f4;
  --violet: #625fff;

  --chart-down: #00a4f4;
  --chart-up: #00bb7c;
  --chart-bar: #0aa5c4;

  --rail-active: #181c3c;

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 35%);
  --shadow: 0 1px 3px rgb(0 0 0 / 45%);
  --shadow-lg: 0 12px 28px -8px rgb(0 0 0 / 65%);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--page-bg);
  font-size: 14px;
  line-height: 1.5rem;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.mono { font-family: var(--font-mono); font-variant-ligatures: none; }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- login --- */
/* Gerçek Onca giriş ekranı: kart değil, tam ekran jaguar fotoğrafı üzerinde
   solda duran saydam sütun. */

.login-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #0d1a12;
  overflow-x: hidden;
}

/* Fotoğraf viewport'a sabitlenir: içerik ne kadar uzarsa uzarsın ekranın
   tamamı kaplı kalır (sayfa görüntüsünde altta düz renk kalması normal). */
.login-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  user-select: none;
  -webkit-user-drag: none;
}

/* uzerinde koyulastirma: metin her arka planda okunabilir kalsin */
.login-page::after {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(100deg, rgba(6, 20, 12, .82) 0%, rgba(6, 20, 12, .55) 34%, rgba(6, 20, 12, 0) 62%);
  pointer-events: none;
}

/* justify-content: safe center — içerik ekrandan uzun olduğunda ortalama
   yapmaz, tepede başlar. (Eski "center" ile kullanıcı adı alanı ekranın
   dışında kalıyordu.) */
.login-col {
  position: relative;
  z-index: 1;
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  justify-content: safe center;
  gap: 28px;
  width: min(30rem, 100%);
  padding: 6vh 1.5rem 4vh 6rem;
}

.lg-field {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .22);
  transition: border-color .12s, background .12s;
}
.lg-field:focus-within {
  background: rgba(255, 255, 255, .14);
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .35);
}
.lg-field input {
  flex: 1;
  min-width: 0;
  padding: 14px 8px;
  font-size: 14px;
  color: #fff;
  background: none;
  border: 0;
  outline: none;
}
.lg-field input::placeholder { color: rgba(255, 255, 255, .78); }
.lg-ico { display: grid; place-items: center; padding-left: 16px; color: rgba(255, 255, 255, .85); }
.lg-eye {
  display: grid;
  place-items: center;
  padding: 0 16px 0 8px;
  color: rgba(255, 255, 255, .8);
  background: none;
  border: 0;
  cursor: pointer;
}
.lg-eye:hover { color: #fff; }
/* parola görünür durumdayken */
.lg-eye.on { color: #fff; }
.lg-eye:focus-visible { outline: 2px solid rgba(255, 255, 255, .75); outline-offset: 2px; border-radius: 4px; }

.lg-submit {
  width: 100%;
  margin-top: 22px;
  padding: 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  background: var(--primary-600);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background .12s, opacity .12s;
}
.lg-submit:hover { background: var(--primary-500); }
.lg-submit:disabled { opacity: .6; cursor: not-allowed; }

/* giriş ekranı — "e-posta ile bilgi" bölümü */

.lg-forgot {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 6px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .78);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lg-forgot:hover { color: #fff; }
.lg-forgot:focus-visible { outline: 2px solid rgba(255, 255, 255, .7); outline-offset: 2px; border-radius: 6px; }

.lg-recover {
  margin-top: 16px;
  padding: 16px 18px;
  color: #fff;
  background: rgba(6, 20, 12, .58);
  border: 1px dashed rgba(255, 255, 255, .3);
  border-radius: 10px;
  backdrop-filter: blur(2px);
}
.lg-recover h2 {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}
.lg-recover .lg-field { margin-bottom: 10px; }
.lg-submit-sm { margin-top: 4px; padding: 11px; font-size: 12px; }

.lg-reveal-box {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, .32);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
}
.lg-reveal-box .row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 13px;
}
.lg-reveal-box .row > span {
  width: 108px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, .7);
}
.lg-reveal-box .row > b { font-weight: 600; }
.lg-eye-inline { margin-left: auto; padding: 2px 4px; }
.lg-note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .72);
}
.lg-link {
  padding: 0;
  font: inherit;
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------------ kapı ---
   Ziyaretçi önce "demo talebi" kartını görür; giriş formu ancak talep
   gönderilince açılır. Demo bilgileri sayfada yazılı değildir. */

.lg-gate {
  padding: 26px 24px 22px;
  color: #fff;
  background: rgba(6, 20, 12, .62);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  backdrop-filter: blur(2px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .45);
}

.lg-gate-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.25;
}

.lg-gate-text {
  margin: 0 0 20px;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .82);
}

/* ana eylem: büyük, yüksek kontrast, gölgeli */
.lg-cta {
  display: block;
  width: 100%;
  padding: 17px 20px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, var(--primary-500) 0%, var(--primary-600) 100%);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.lg-cta:hover { filter: brightness(1.08); box-shadow: 0 14px 32px rgba(0, 0, 0, .46), inset 0 1px 0 rgba(255, 255, 255, .22); }
.lg-cta:active { transform: translateY(1px); }
.lg-cta:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* geri çıkış: bilinçli olarak sessiz */
.lg-gate-link {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, .62);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lg-gate-link:hover { color: #fff; }

/* talep alındıktan sonra giriş formunun üstündeki yeşil not */
.lg-gate-note {
  margin-bottom: 16px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #d7f7ec;
  background: rgba(0, 211, 145, .16);
  border: 1px solid rgba(0, 211, 145, .45);
  border-radius: 8px;
}

/* demo talebi (lead) formu */

.lg-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.lg-links .lg-forgot { margin-top: 0; }

.lg-lead-intro {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .78);
}

/* bot tuzağı: ekrandan kaldırılır, ekran okuyucudan da gizlenir */
.lg-hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.lg-consent {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 9px;
  align-items: start;
  margin: 12px 0 4px;
  font-size: 11.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .8);
  cursor: pointer;
}
.lg-consent input {
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  accent-color: var(--primary-500);
  cursor: pointer;
}

/* hatalı alan işareti */
.lg-field.is-bad { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .22); }

/* düğmenin altındaki kalıcı durum satırı — sonuç nerede olursa olsun görünür */
.lg-lead-status {
  display: block;
  margin: 10px 0 0;
  padding: 9px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .86);
  background: rgba(0, 0, 0, .34);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
}
.lg-lead-status b { color: #fff; }
.lg-lead-status.is-ok { color: #d7f7ec; background: rgba(0, 211, 145, .14); border-color: rgba(0, 211, 145, .42); }
.lg-lead-status.is-warn { color: #ffe9c7; background: rgba(245, 158, 11, .13); border-color: rgba(245, 158, 11, .4); }
.lg-lead-status.is-err { color: #ffd9d9; background: rgba(239, 68, 68, .13); border-color: rgba(239, 68, 68, .4); }
.lg-lead-dest { display: block; margin-top: 5px; font-size: 11px; opacity: .85; }

.lg-copy {
  margin-top: 7px;
  padding: 6px 11px;
  font-size: 11.5px;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 6px;
  cursor: pointer;
}
.lg-copy:hover { background: rgba(255, 255, 255, .22); }

/* durum satırındaki yedek mailto bağlantısı */
.lg-mailto { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.lg-mailto:hover { color: #cfe0ff; }

/* Chrome otomatik doldurma alanları beyaz gösteriyordu; koyu temaya uyarla */
.lg-field input:-webkit-autofill,
.lg-field input:-webkit-autofill:hover,
.lg-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px rgba(28, 36, 48, .92) inset;
  transition: background-color 9999s ease-in-out 0s;
}

#lead-note { margin-top: 10px; }
#lead-note .mono, .lg-lead-intro .mono { font-size: 11.5px; }

/* mobilde iki bağlantı alt alta */
@media (max-width: 520px) {
  .lg-links { flex-direction: column; gap: 10px; }
}

/* ----------------------------------------------------------------- shell --- */
/* Gerçek kabuk: 240px yan menü rayı, bölüm başlıklı gezinme, 60px üst çubuk. */

.shell { display: flex; min-height: 100vh; }

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-right: 1px solid var(--border);
  z-index: 40;
}

/* Yan menü başlığı — ONCA - SARP sözcüğü, üst çubukla aynı yükseklikte */
.rail-head {
  display: flex;
  align-items: center;
  height: var(--rail-head);
  padding: 0 20px;
  border-bottom: 1px solid var(--border-strong);
  flex-shrink: 0;
}
.rail-wordmark { gap: 7px; }
.rail-wordmark b { font-size: 15px; letter-spacing: .28em; }
.rail-wordmark i { font-size: 13px; letter-spacing: .22em; }
.rail-mark { width: 48px; height: 48px; flex-shrink: 0; }

.rail-nav { flex: 1; overflow-y: auto; padding: 20px 12px 28px; }

/* bölüm başlığı: GENERAL / NETWORK AND SECURITY / SYSTEM */
.rail-sec {
  padding: 20px 10px 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.rail-sec:first-child { padding-top: 0; }

/* menü satırı — bağlantı ve açılır grup düğmesi aynı görünüm */
.rail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  color: var(--text-2);
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.rail-item:hover { background: var(--surface-2); color: var(--text); }
.rail-item .ico { display: grid; place-items: center; width: 20px; flex-shrink: 0; color: var(--text-2); }
a.rail-item:hover .ico, a.rail-item.active .ico { color: inherit; }
.rail-item .chev {
  margin-left: auto;
  display: grid;
  place-items: center;
  color: var(--text-3);
  transition: transform .15s;
}
.rail-group.open > .rail-item .chev { transform: rotate(90deg); }

/* etkin sayfa — gerçekte dolu kutu, sol çizgi yok */
a.rail-item.active { background: var(--rail-active); color: var(--primary-700); }
html.dark a.rail-item.active { color: #dfe6ff; }

.rail-group { margin-bottom: 2px; }
.rail-sub { display: none; padding: 4px 0 10px 42px; }
.rail-group.open > .rail-sub { display: block; }
.rail-sub a {
  display: block;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 6px;
}
.rail-sub a:hover { background: var(--surface-2); color: var(--text); }
.rail-sub a.active { background: var(--surface-2); color: var(--text); font-weight: 600; }

.rail-foot { padding: 12px; border-top: 1px solid var(--border); flex-shrink: 0; }

.main { flex: 1; min-width: 0; margin-left: var(--rail); display: flex; flex-direction: column; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--topbar-h);
  padding: 0 20px 0 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-strong);
}
.topbar-slogan {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}
.topbar-slogan span {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--text-2);
  white-space: nowrap;
}
.topbar-actions { position: relative; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.topbar-product { font-size: 15px; font-weight: 500; color: var(--text); }
.topbar-sep { width: 1px; height: 26px; margin: 0 4px; background: var(--border-strong); }

/* dairesel simge düğmeleri — yardım, bildirim, hesap */
.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--text-2);
  background: var(--surface-2);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.icon-btn:hover { background: var(--border); color: var(--text); }

/* hesap menüsü — sürüm, sitemap, tema, çıkış */
.user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  min-width: 240px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}
.user-menu[hidden] { display: none; }
.user-menu-title {
  padding: 8px 10px 10px;
  margin-bottom: 4px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
}
.user-menu-title b { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  font-size: 13px;
  text-align: left;
  color: var(--text-2);
  background: none;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
.user-menu-item:hover { background: var(--surface-2); color: var(--text); }

.rail-toggle { display: none; }

/* gerçek kabuk: <main class="py-10"> + <div class="px-4 sm:px-6 lg:px-8"> */
.view { padding: 32px 28px 56px; max-width: 1680px; width: 100%; }
@media (max-width: 860px) { .view { padding: 20px 16px 48px; } }

/* ----------------------------------------------------------------- cards --- */
/* NeCard gercegi: 10px koseler, kartin kendi dolgusu icinde baslik, ayri bir
   baslik seridi ve cizgi yok. Koyu temada golge yerine ince kenar cizgisi. */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--text-2);
  font-size: 14px;
  overflow: hidden;
}
html.dark .card { box-shadow: none; }
.card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.card-head h2 {
  margin: 0;
  font-size: 14px;
  line-height: 1.5rem;
  font-weight: 600;
  color: var(--text);
}
.card-head .spacer { margin-left: auto; }
.card-body { padding: 0; }
.card-body.flush { padding: 0; }
/* kart govdesi dolgusu kartin kendi kenarindan gelir */
.card > .card-body { padding: 0; }
.card { padding: 20px 16px; }
.card > .card-head + .card-body { padding-top: 0; }
@media (min-width: 640px) { .card { padding: 20px 24px; } }

/* kart içi tanım satırları — upstream SystemInfoCard düzeni */
.rows > .row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-height: 44px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.rows > .row:first-child { border-top: 0; }
.rows > .row .k { font-weight: 600; flex-shrink: 0; }
.rows > .row .v { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }

/* bolum basligi: pt-3 pb-1 text-xs font-semibold tracking-wider uppercase */
.section-head {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 0 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #6b7280;
}
html.dark .section-head { color: #9ca3af; }

/* --------------------------------------------------------------- gauges --- */

.gauges { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.gauge { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; }
.gauge-label { font-size: 11px; color: var(--text-2); font-weight: 500; }
.gauge-value { font-size: 13px; font-weight: 600; }
.gauge-note { font-size: 10px; color: var(--text-3); }
.donut { display: block; }

.legend { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.legend i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-3); display: inline-block;
  font-style: normal;
}

/* --------------------------------------------------------------- tables --- */
/* NeTable: baslik seridi surface-2 uzerinde, satirlar 1px ayirici ile. */

.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th {
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
  color: var(--text-3);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-strong);
}
table.tbl td {
  padding: 11px 12px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: middle;
}
table.tbl tbody tr:first-child td { border-top: 0; }
table.tbl tbody tr:last-child td { border-top: 0; }
table.tbl tbody tr:hover td { background: var(--surface-2); }
table.tbl td strong, table.tbl td b { color: var(--text); font-weight: 600; }
table.tbl .rowacts { display: flex; gap: 6px; justify-content: flex-end; }

/* ---------------------------------------------------------------- meter --- */

.meter { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; min-width: 90px; }
.meter > span { display: block; height: 100%; border-radius: 999px; }
.m-ok > span { background: var(--ok); }
.m-warn > span { background: var(--warn); }
.m-crit > span { background: var(--crit); }

/* ----------------------------------------------------------------- misc --- */

.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 13px; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; font-weight: 500; }

.stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat .k { font-size: 11px; color: var(--text-2); }
.stat .v { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }

/* SimpleStat gercegi: ortalanmis, 24px, orta kalinlik, indigo-700 */
.simple-stat {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 24px;
  line-height: 2rem;
  font-weight: 500;
  color: var(--primary-700);
}
html.dark .simple-stat { color: var(--primary-500); }
@media (min-width: 1536px) { .simple-stat { font-size: 30px; line-height: 2.25rem; } }
.stat .n { font-size: 11px; color: var(--text-3); }

.stat-strip { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

.hr { height: 1px; background: var(--border); margin: 16px 0; border: 0; }

/* NeTabs gercegi: 32px aralik, 16px dikey dolgu, 14px semibold,
   etkin sekme primary-600 cizgi + primary-700 yazi. */
/* Sekme çubuğu ile altındaki içerik arasında nefes payı: çizgi kartın
   üst kenarına yapışmasın. Tüm sekmeli ekranlarda (Real-time, Metrics,
   Logs) aynı boşluk. */
.tabs {
  display: flex;
  gap: 32px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.tab {
  padding: 16px 4px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: #4b5563;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.tab:hover { color: var(--text); border-bottom-color: var(--border-strong); }
html.dark .tab { color: #9ca3af; }
html.dark .tab:hover { color: #f3f4f6; border-bottom-color: #374151; }
html.dark .tab.active { color: var(--primary-400); border-bottom-color: var(--primary-400); }

/* --------------------------------------------- izleme monitörleri --- */

/* sayfa başlığı + eylemler (upstream md:flex-row düzeni) */
.page-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 24px;
}
@media (min-width: 720px) { .page-head { flex-direction: row; align-items: center; } }
.page-head h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
.page-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* dashboard sağ üstü: "Data updated every 20 seconds" */
.page-updated { font-size: 13px; color: var(--info); }
.page-desc {
  max-width: 42rem;
  margin: 0 0 24px;
  font-size: 13px;
  color: var(--text-2);
}

/* solda sabit genişlikte değer kartları, sağda ana grafik (xl:flex-row) */
.split { display: flex; flex-direction: column; gap: 16px; }
.split-side { display: flex; flex-direction: column; gap: 16px; }
.split-main { flex: 1; min-width: 0; }
@media (min-width: 1280px) {
  .split { flex-direction: row; align-items: stretch; }
  .split-side { width: 24rem; flex-shrink: 0; }
}
/* gerçekte tek sayı kartı olan dar sütun (TrafficMonitor) */
@media (min-width: 1280px) {
  .split-narrow .split-side { width: 200px; }
  .split-narrow .simple-stat { font-size: 18px; line-height: 1.6rem; }
  .split-narrow .simple-stat + .simple-stat { font-size: 24px; }
}
/* ayar ekranı: solda form, sağda durum kartı */
@media (min-width: 1100px) {
  .split-settings .split-side { width: 20rem; }
  .split-settings .card { height: 100%; }
}

/* trafik listesi satırı: çift yönlü çubuk */
.traffic-row { padding: 9px 0; border-bottom: 1px solid var(--border); }
.traffic-row:last-of-type { border-bottom: 0; }
.tr-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 5px; }
.tr-name { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-val { margin-left: auto; font-size: 12px; color: var(--text-2); flex-shrink: 0; }
.tr-bar { display: flex; height: 6px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.tr-bar .down { background: var(--primary-500); }
.tr-bar .up { background: var(--info); }
.tr-sub { font-size: 11px; margin-top: 4px; }

/* metrik kartı */
.metric { display: flex; flex-direction: column; gap: 10px; }
.metric-val { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.metric-val .dim { font-size: 11px; }
.metric-spark { width: 100%; height: 56px; display: block; }

/* çok satırlı girdi (upstream NeMultiTextInput) */
.hostlist { display: flex; flex-wrap: wrap; gap: 8px; }
.hostchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px 5px 10px;
  font-size: 13px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
}
.chip-x {
  display: grid;
  place-items: center;
  width: 18px; height: 18px;
  padding: 0;
  font-size: 14px;
  line-height: 1;
  color: var(--text-2);
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.chip-x:hover { color: var(--crit); background: var(--surface); }
.hostlist-add { flex: 1 1 12rem; width: auto; padding: 6px 10px; font-size: 13px; }

/* açık/kapalı anahtar */
.switch {
  display: inline-flex;
  align-items: center;
  width: 38px; height: 21px;
  padding: 2px;
  background: var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s;
}
.switch .knob {
  width: 17px; height: 17px;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform .15s;
}
.switch:hover { background: var(--text-3); }

/* otomatik yenileme araç çubuğu */
.page-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tool { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.tool .select { width: auto; padding: 6px 10px; font-size: 13px; }
.progress { flex: 1 1 8rem; min-width: 8rem; height: 4px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--primary-500); }

/* modal */
.modal-back {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(2 6 23 / 55%);
  backdrop-filter: blur(2px);
}
.modal {
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}
.modal-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); }

/* toast */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 70; display: flex; flex-direction: column; gap: 8px; }
.toast {
  min-width: 260px;
  max-width: 380px;
  padding: 12px 14px;
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary-600);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: slide-in .18s ease-out;
}
.toast.ok { border-left-color: var(--ok); }
.toast.warn { border-left-color: var(--warn); }
.toast.err { border-left-color: var(--crit); }
@keyframes slide-in { from { opacity: 0; transform: translateX(12px); } }

/* grafikler */
.chart { width: 100%; height: 200px; display: block; }
svg.chart { display: block; width: 100%; }
/* Zaman serisi eksen etiketleri (saat / Mbps). viewBox esnemediği için
   preserveAspectRatio="none" kullanılır; yazılar yatayda %14 genişler —
   bu yüzden metin kendi düzenine göre telafi edilir. */
svg.chart .axis-y {
  font-family: var(--font-sans);
  font-size: 11px;
  fill: var(--text-3);
}

.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); padding: 8px 4px 0; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 10px; height: 3px; border-radius: 2px; display: inline-block; }

.bar-row { display: grid; grid-template-columns: 150px 1fr 84px; gap: 12px; align-items: center; padding: 6px 0; font-size: 13px; }
.bar-row .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .v { text-align: right; font-weight: 600; font-size: 12px; }

/* responsive */
@media (max-width: 1400px) {
  .g6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .g4, .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span3, .span2 { grid-column: span 2; }
  .gauges { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  :root { --rail: 0px; }
  .rail { transform: translateX(-100%); transition: transform .2s; width: 260px; box-shadow: var(--shadow-lg); }
  body.nav-open .rail { transform: none; }
  .main { margin-left: 0; }
  .rail-toggle { display: inline-flex; }
  .g2, .g3, .g4, .g6 { grid-template-columns: minmax(0, 1fr); }
  .span2, .span3 { grid-column: span 1; }
  .gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { padding: 0 14px; }
  .topbar-slogan { display: none; }
  .view { padding: 16px; }
  .bar-row { grid-template-columns: 110px 1fr 70px; }
}

@media print {
  .rail, .topbar-actions, .rail-toggle { display: none; }
  .main { margin-left: 0; }
}

/* ------------------------------------- izleme: gercek bilesenler (2.24.1) --- */

/* daire grafik + lejant yan yana (gerçekte BasicPieChart lejantı sağda) */
.traffic-top { margin-bottom: 14px; }
.traffic-top .pie-wrap {
  flex-direction: row;
  align-items: center;
  gap: 28px;
}
.traffic-top .pie { flex-shrink: 0; }
.traffic-top .pie-legend {
  flex: 1;
  min-width: 0;
  gap: 4px;
  align-content: center;
}

/* BasicPieChart — TrafficCard'in ust yarisi */
.pie-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pie { width: 168px; height: 168px; display: block; }
.pie-legend { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 6px; }
.pie-legend li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.pie-legend i { width: 9px; height: 9px; border-radius: 2px; flex-shrink: 0; }
.pie-legend span { flex: 1; min-width: 0; }
.pie-legend b { font-size: 12px; font-weight: 600; flex-shrink: 0; }

/* NeTable + NePaginator + filtre */
.dt { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.dt-filter { position: relative; max-width: 24rem; }
.dt-in { padding-left: 34px; font-size: 13px; }
.dt-ico {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}
.dt-scroll {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}
/* NePaginator — solda "18 of 60" + Rows, sağda dört düğme */
.dt-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
}
.dt-foot-left { display: inline-flex; align-items: center; gap: 16px; }
.tool.rows { gap: 6px; font-size: 12px; }
.tool.rows .select { width: auto; padding: 3px 8px; font-size: 12px; }
.dt-pages { display: inline-flex; gap: 6px; }
.pg {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}
.pg:hover { color: var(--text); background: var(--border); }

/* saatlik sütun grafik — "Recent traffic" */
svg.bars { display: block; width: 100%; height: 420px; }
svg.bars .axis text {
  font-family: var(--font-sans);
  font-size: 9px;
  fill: var(--text-3);
}

/* NeTable card-breakpoint: dar ekranda tablo karta donusur ve data-label
   baslik olarak kullanilir (upstream NeTable card-breakpoint davranisi) */
@media (max-width: 720px) {
  .dt-tbl thead { display: none; }
  .dt-tbl, .dt-tbl tbody, .dt-tbl tr, .dt-tbl td { display: block; width: 100%; }
  .dt-tbl tr {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    padding: 4px 0;
  }
  .dt-tbl td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    padding: 8px 14px;
    text-align: right;
  }
  .dt-tbl tr td:last-child { border-bottom: 0; }
  .dt-tbl td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-3);
    text-align: left;
    flex-shrink: 0;
  }
}


/* dar form (Ping latency monitor) */
.form-narrow { max-width: 32rem; }

/* uyarı bildirimi (Netify) */
.alert {
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
}
.alert-warn {
  color: var(--warn);
  border-color: color-mix(in srgb, var(--warn) 40%, transparent);
  background: color-mix(in srgb, var(--warn) 8%, transparent);
}

/* ========================================================== ortak araclar === */
/*
 * app.js'in bütün ekranlarda kullandığı, bu dosyada daha önce tanımsız olan
 * temel sınıflar. Hepsi gerçek arayüzdeki Tailwind sınıflarına karşılık gelir:
 * grid = flex/grid + gap-4, btn = NeButton, chip = NeBadge.
 */

/* ızgara */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.span3 { grid-column: span 3; }
.span-full, .col-span-full { grid-column: 1 / -1; }
.wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.uppercase { text-transform: uppercase; letter-spacing: .06em; }

/* düğmeler — NeButton: 8px köşe, 1px kenar, 13px */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-sm { padding: 5px 10px; font-size: 12.5px; }
.btn-icon { width: 34px; height: 34px; padding: 0; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-primary { color: #fff; background: var(--primary-600); border-color: var(--primary-600); }
.btn-primary:hover { background: var(--primary-500); }
.btn-danger { color: #fff; background: var(--crit); border-color: var(--crit); }
.btn-danger:hover { opacity: .9; background: var(--crit); }

/* rozetler — NeBadge */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.chip i {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  background: currentColor;
  border-radius: 50%;
}
.chip-ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); border-color: transparent; }
.chip-warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); border-color: transparent; }
.chip-crit { color: var(--crit); background: color-mix(in srgb, var(--crit) 12%, transparent); border-color: transparent; }
.chip-info { color: var(--info); background: color-mix(in srgb, var(--info) 12%, transparent); border-color: transparent; }
.chip-idle { color: var(--text-3); }

/* form girdileri */
.input, .select {
  width: 100%;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  outline: none;
}
.input::placeholder { color: var(--text-3); }
.input:focus, .select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-500) 25%, transparent);
}

/* tek satırlık kod kutusu */
.code {
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text);
  word-break: break-all;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* boş durum */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 28px 16px;
  font-size: 13px;
  color: var(--text-3);
  text-align: center;
}
.empty strong { font-size: 14px; font-weight: 600; color: var(--text-2); }

/* hidden özniteliği her zaman gizlemeli. Tarayıcının varsayılan
   [hidden] { display: none } kuralı, yazar stilleri (display:flex vb.)
   tarafından yenilir; bu yüzden açıkça sabitlenir. */
[hidden] { display: none !important; }

/* ürün sözcüğü — product-wordmark.py: O N C A - SARP */
.wordmark { display: inline-flex; align-items: baseline; gap: 6px; }
.wordmark b { font-size: 14px; font-weight: 700; letter-spacing: .2em; color: var(--text); }
.wordmark i { font-style: normal; font-size: 13px; font-weight: 500; letter-spacing: .2em; color: var(--ok); }

/* donanım satırı */
.hw { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); }
.hw-ico {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--primary-500);
  background: var(--surface-2);
  border-radius: 8px;
}

/* log görünümü */
.log {
  max-height: 520px;
  overflow: auto;
  padding: 4px 0;
  font-family: var(--font-mono);
  font-size: 12px;
}
.log-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid var(--border);
  color: var(--text-2);
}
.log-line:first-child { border-top: 0; }
.log-ts, .log-host { color: var(--text-3); white-space: nowrap; }
.log-msg { color: var(--text); word-break: break-word; }
.log-tag {
  padding: 1px 7px;
  font-size: 11px;
  border-radius: 4px;
  white-space: nowrap;
}
.t-info { color: var(--info); background: color-mix(in srgb, var(--info) 14%, transparent); }
.t-ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.t-warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.t-crit { color: var(--crit); background: color-mix(in srgb, var(--crit) 14%, transparent); }

/* log araç çubuğu — arama kutusu esner */
.dt-filter.grow { flex: 1 1 16rem; max-width: 32rem; }

/* açık/kapalı anahtar — açık kip */
.switch.on { background: var(--primary-600); }
.switch.on .knob { transform: translateX(17px); }

/* form ızgarası — Report Details */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px 20px;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 12px; font-weight: 600; color: var(--text-2); }
.field small { font-size: 11px; line-height: 1.5; color: var(--text-3); }
.field .input[disabled], .field .input[readonly] { color: var(--text-3); background: var(--surface-2); cursor: default; }
.field.span2 { grid-column: span 2; }
@media (max-width: 640px) { .field.span2 { grid-column: span 1; } }
/* ayrıntı satırındaki ikincil açıklama */
.rows > .row .v .sub {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-3);
}

/* 5651 yıllık imza ızgarası */
.sig-year {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px 28px;
  margin-top: 16px;
}
/* 7 sütun = bir hafta; her ayın gün sayısına göre son satır boş kalır.
   Kutu yüksekliği sabit — ızgaradaki en uzun ay yüksekliği diğerlerine bulaştırmasın. */
.sig-col { display: flex; flex-direction: column; gap: 6px; }
.sig-label { font-size: 11px; font-weight: 600; color: var(--text-2); }
.sig-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 13px;
  gap: 4px;
  align-content: start;
}
.sig {
  display: block;
  width: 100%;
  height: 13px;
  border-radius: 3px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.sig-signed { background: var(--ok); border-color: transparent; }
.sig-unsigned { background: var(--crit); border-color: transparent; }
.sig-today { background: var(--warn); border-color: transparent; }
/* log yok: yalnız kesikli çerçeve, dolgu yok */
.sig-missing { background: transparent; border-style: dashed; }
/* kayıt aralığı dışı: boş hücre */
.sig-none { background: transparent; border-color: transparent; }
.sig-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 11.5px;
  color: var(--text-2);
}
.sig-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sig-legend .sig { width: 12px; height: 12px; }

/* ============================================================== dashboard ===
 * Gerçek dashboard-v2 düzeni: tek kart, satır ayırıcılarıyla bölünmüş.
 * Renkler ve ölçüler ekran görüntüsünden birebir.
 */

.dash-card { padding: 20px 22px 22px; }
.dash-label { margin-bottom: 14px; font-size: 13px; color: var(--text-2); }
.dash-hr { height: 1px; margin: 18px 0; background: var(--border-strong); }

/* TRAFFIC HISTORY — başlık + zaman aralığı düğmeleri */
.dash-hist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.dash-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-2);
}
.dash-title .ico { color: var(--info); }
.dash-range { display: inline-flex; gap: 6px; }
.dash-range button {
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.dash-range button:hover { color: var(--text); border-color: var(--text-3); }
.dash-range button.active { color: #fff; background: var(--info); border-color: var(--info); }

/* indirme / yükleme grafiği çifti */
.dash-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 900px) { .dash-charts { grid-template-columns: minmax(0, 1fr); } }
.dash-series-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; font-size: 13px; }
.dash-series-head .arrow { font-size: 15px; font-weight: 700; line-height: 1; }
.dash-series-head.down .arrow { color: var(--chart-down); }
.dash-series-head.up .arrow { color: var(--chart-up); }
.dash-series-head .k { color: var(--text-2); }
.dash-series-head b { font-weight: 600; color: var(--text); }
.dash-series-head .sub { font-size: 11px; color: var(--text-3); }
.dash-plot { height: 84px; }
.dash-plot svg { display: block; width: 100%; height: 100%; }

/* halka göstergeler — Download / Upload / CPU / Memory / Disk */
.dash-gauges {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 1100px) { .dash-gauges { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .dash-gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dash-gauge { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.dash-donut { display: block; flex-shrink: 0; }
.dash-gauge-cap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}
.dash-gauge-sub { font-size: 11px; color: var(--text-3); }
/* gösterge etiketindeki yeşil nokta (gerçekte grup durum rengi) */
.dash-stat-dot {
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  background: var(--ok);
  border-radius: 50%;
}
/* bilgi simgesi — ekran görüntüsündeki ⓘ */
.dash-info {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  font-style: normal;
  color: var(--text-3);
  border: 1px solid currentColor;
  border-radius: 50%;
  cursor: help;
}
.dash-info:hover { color: var(--text-2); }

/* bilgi şeritleri — Peak / Line / Ping / Jitter / … */
.dash-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  font-size: 13px;
}
.dash-stat { display: inline-flex; align-items: baseline; gap: 6px; }
.dash-stat .k { color: var(--text-2); }
.dash-stat b { font-weight: 600; color: var(--text); }
.dash-stat .sub { font-size: 12px; color: var(--text-3); }
/* sağ altta "device list" + "Test now" */
.dash-tail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding-left: 12px;
}
.dash-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  font-size: 12px;
  color: var(--info);
  background: none;
  border: 0;
  cursor: pointer;
}
.dash-link:hover { text-decoration: underline; }

/* WAN satırı */
.dash-wan {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 26px;
  font-size: 13px;
}
.dash-wan .dash-stat b.mono { font-family: var(--font-mono); }

/* alt iki sütun — en yoğun cihazlar / 5651 */
.dash-cols { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; }
@media (max-width: 900px) { .dash-cols { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.dash-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-2);
}
.dash-col-title.busy .ico { color: var(--violet); }
.dash-col-title.legal .ico { color: var(--ok); }

/* sıralı liste: 1  192.168.1.160            30.5 Mbps */
.dash-list { display: grid; gap: 8px; font-size: 13.5px; }
.dash-row {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: baseline;
  gap: 12px;
}
.dash-row .idx { color: var(--text-3); font-size: 12.5px; }
.dash-row .ip { font-family: var(--font-mono); font-weight: 600; color: var(--text); }
.dash-row .v { font-weight: 600; color: var(--text); white-space: nowrap; }

/* 5651 satırları: etiket + kalın değer, ikincil metin gri */
.dash-kv { display: grid; gap: 9px; font-size: 13.5px; }
.dash-kv-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.dash-kv-row .k { color: var(--text-2); }
.dash-kv-row b { font-weight: 600; color: var(--text); }
.dash-kv-row .sub { font-size: 11.5px; color: var(--text-3); }
.dash-kv-row .ok { color: var(--ok); font-weight: 600; }
.dash-kv-row .link { font-size: 11.5px; color: var(--info); }
.dash-kv-row .link:hover { text-decoration: underline; }
.dash-spin {
  display: inline-grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border: 1.5px dashed var(--ok);
  border-radius: 50%;
  vertical-align: -2px;
}
