/* PR Equivalent — tasarım sistemi
   Koyu, düşük kontrastlı zemin + tek vurgu rengi (teal).
   Rakamlar büyük, tabular; kartlar ince çizgili, yumuşak gölgeli. */

:root {
  --bg: #070b10;
  --bg-soft: #0b1118;
  --surface: rgba(255, 255, 255, 0.028);
  --surface-2: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e9f0f6;
  --muted: #96a9b8;
  --muted-2: #7f92a6;
  --accent: #2dd4bf;
  --accent-soft: rgba(45, 212, 191, 0.12);
  --accent-line: rgba(45, 212, 191, 0.38);
  --indigo: #6d7cff;
  --warn: #fbbf24;
  --danger: #f87171;
  --ok: #34d399;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.85);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* zemin ışıması */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 460px at 12% -8%, rgba(45, 212, 191, 0.16), transparent 62%),
    radial-gradient(760px 420px at 88% -14%, rgba(109, 124, 255, 0.14), transparent 60%),
    radial-gradient(700px 500px at 50% 120%, rgba(45, 212, 191, 0.06), transparent 65%);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #6ee7d7; }

/* ---------- üst bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px 28px;
  background: rgba(7, 11, 16, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(140%);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--accent), #14b8a6);
  color: #05201d;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 18px -8px rgba(45, 212, 191, 0.9);
}
.brand-mark-lg { width: 42px; height: 42px; border-radius: 12px; font-size: 15px; }
.brand-name {
  font-weight: 650;
  letter-spacing: -0.01em;
  font-size: 16px;
  color: var(--text);
}

.nav { display: flex; gap: 4px; margin-left: 6px; }
.nav a {
  padding: 7px 12px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 14px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.is-active { background: var(--surface-2); color: var(--text); }

.userbox { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.user-meta { display: flex; flex-direction: column; line-height: 1.25; text-align: right; }
.user-client { font-size: 13px; font-weight: 600; }
.user-mail { font-size: 11.5px; color: var(--muted); }
.userbox form { margin: 0; }

/* ---------- yerleşim ---------- */
.page {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 34px 28px 56px;
}

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 12px;
}
.footer-note { color: var(--muted-2); }

/* ---------- başlık alanı ---------- */
.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 6px 0 26px;
  flex-wrap: wrap;
}
.hero-sm { margin-bottom: 20px; }
.hero h1 {
  margin: 4px 0 6px;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.sub { margin: 0; color: var(--muted); max-width: 62ch; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- KPI kutuları (büyük rakamlar) ---------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.kpi-grid-4 { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }

.kpi {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    var(--bg-soft);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.kpi::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

.kpi-accent {
  border-color: var(--accent-line);
  background:
    radial-gradient(420px 160px at 8% 0%, rgba(45, 212, 191, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)),
    var(--bg-soft);
  box-shadow:
    0 26px 60px -28px rgba(45, 212, 191, 0.45),
    var(--shadow);
}

.kpi-label {
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.kpi-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: clamp(26px, 2.9vw, 38px);
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.06;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  min-width: 0;
  overflow-wrap: anywhere;
}
/* aralığın tam hali: büyük rakamın altında, küçük ve sakin */
.kpi-range {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.kpi-accent .kpi-value {
  color: #d9fff9;
  text-shadow: 0 0 34px rgba(45, 212, 191, 0.35);
}
.kpi-dash { color: var(--muted-2); font-weight: 500; margin: 0 2px; }
.kpi-unit { font-size: 0.55em; color: var(--muted); font-weight: 600; margin-left: 2px; }
.kpi-empty { color: var(--muted-2); }
.kpi-hint { font-size: 12px; color: var(--muted); }

/* ---------- kartlar ---------- */
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 18px;
}
.card-danger { border-color: rgba(248, 113, 113, 0.4); }
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.card-head h2, .card h2 { margin: 0; font-size: 16px; letter-spacing: -0.01em; }
.card-hint { font-size: 12px; color: var(--muted); }
.card-head-wrap { flex-wrap: wrap; }
.link-sm { font-size: 13px; color: var(--accent); }

/* ---------- formlar ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
}
.split-sep {
  display: grid;
  place-items: center;
  align-self: stretch;
  color: var(--muted-2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  position: relative;
}
.split-sep::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  background: var(--line);
}
.split-sep span { position: relative; background: var(--bg); padding: 8px 4px; }
/* iki eşit sütun (ayırıcısız) */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 860px) { .split-2 { grid-template-columns: 1fr; } }

.form { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.form > button { margin-top: auto; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; color: var(--muted); }
.field em { font-style: normal; color: var(--muted-2); }

input[type="text"], input[type="email"], input[type="password"], input[type="search"], textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  font: inherit;
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
input:focus, textarea:focus {
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }

/* dosya bırakma alanı */
.file-drop {
  position: relative;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r);
  background: rgba(0, 0, 0, 0.22);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.file-drop:hover { border-color: var(--accent-line); background: rgba(45, 212, 191, 0.04); }
.file-drop.has-file { border-color: var(--accent); background: rgba(45, 212, 191, 0.07); }
.file-drop:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.file-drop-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 26px 16px;
  text-align: center;
  color: var(--muted);
  pointer-events: none;
}
.file-drop-inner strong { color: var(--text); font-size: 14px; font-weight: 600; }

/* ---------- butonlar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.22); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(180deg, #35e0ca, #1fbfa9);
  border-color: transparent;
  color: #04211d;
  font-weight: 700;
  box-shadow: 0 14px 30px -16px rgba(45, 212, 191, 0.95);
}
.btn-primary:hover { filter: brightness(1.06); background: linear-gradient(180deg, #46e6d0, #22c9b2); }

.btn-ghost { background: transparent; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 11px; font-size: 13px; border-radius: 9px; }

/* ---------- tablolar ---------- */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
/* uzun listelerde başlık sabit kalsın: kendi kaydırma kabında */
.table-wrap-scroll { max-height: 70vh; overflow: auto; }
.table-wrap-scroll .table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(11, 17, 24, 0.98);
  backdrop-filter: blur(6px);
}
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left;
  font-size: 10.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 650;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: 13px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  vertical-align: middle;
}
.table tbody tr { transition: background 0.12s ease; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.028); }
.table tbody tr:last-child td { border-bottom: none; }
.cell-title { color: var(--text); max-width: 460px; }
.cell-sub { display: block; font-size: 12px; color: var(--muted-2); }
.ta-r { text-align: right; }
.ta-c { text-align: center; }
.w-40 { width: 44px; }
.mono { font-family: var(--mono); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

/* ---------- rozetler ---------- */
.badge, .pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge-done { background: rgba(52, 211, 153, 0.12); color: #7df0c1; border-color: rgba(52, 211, 153, 0.3); }
.badge-running { background: rgba(45, 212, 191, 0.12); color: var(--accent); border-color: var(--accent-line); }
.badge-pending { background: rgba(251, 191, 36, 0.1); color: var(--warn); border-color: rgba(251, 191, 36, 0.3); }
.badge-failed { background: rgba(248, 113, 113, 0.12); color: #ffb4b4; border-color: rgba(248, 113, 113, 0.35); }
.badge-mock {
  background: rgba(109, 124, 255, 0.14);
  color: #b9c2ff;
  border-color: rgba(109, 124, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  margin-left: 8px;
  vertical-align: 2px;
}
.pill { background: var(--surface-2); color: var(--muted); border-color: var(--line); font-weight: 500; }
.pill-ok { color: #7df0c1; border-color: rgba(52, 211, 153, 0.28); background: rgba(52, 211, 153, 0.1); }
.pill-warn { color: var(--warn); border-color: rgba(251, 191, 36, 0.28); background: rgba(251, 191, 36, 0.1); }

/* ---------- durum / ilerleme ---------- */
.status-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 6px 2px;
}
.spinner {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(45, 212, 191, 0.22);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
  flex: none;
  margin-top: 2px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.status-body { flex: 1; }
.status-line { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.status-line strong { font-size: 15px; }
.status-note { margin: 10px 0 0; font-size: 12.5px; }

.progress {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1fbfa9, var(--accent));
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.55);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- yatay çubuklar (tier dağılımı) ---------- */
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row {
  display: grid;
  grid-template-columns: 190px 1fr 48px;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
}
.bar-label { color: var(--muted); }
.bar {
  height: 9px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(45, 212, 191, 0.55), var(--accent));
}
.bar-value { text-align: right; color: var(--text); }

/* ---------- giriş ekranı ---------- */
.auth-wrap { display: grid; place-items: center; min-height: 62vh; }
.auth-card {
  width: 100%;
  max-width: 404px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(420px 180px at 20% 0%, rgba(45, 212, 191, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  box-shadow: var(--shadow);
}
.auth-head { margin-bottom: 20px; }
.auth-head h1 { margin: 14px 0 6px; font-size: 22px; letter-spacing: -0.02em; }
.auth-foot { font-size: 12px; margin-top: 16px; text-align: center; }

/* ---------- uyarı / bilgi ---------- */
.alert {
  border: 1px solid rgba(248, 113, 113, 0.38);
  background: rgba(248, 113, 113, 0.1);
  color: #ffd9d9;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  margin-bottom: 16px;
}
.empty { color: var(--muted); font-size: 14px; padding: 18px 2px; text-align: center; }
.alert-info {
  border-color: rgba(45, 212, 191, 0.32);
  background: rgba(45, 212, 191, 0.08);
  color: #c8f5ee;
}

/* ---------- filtre araçları ---------- */
.tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.search { max-width: 280px; }
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  user-select: none;
}
.check input {
  appearance: none;
  width: 16px; height: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after {
  content: "";
  position: absolute;
  left: 4px; top: 1px;
  width: 5px; height: 9px;
  border: solid #05201d;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.check:hover { border-color: var(--line-strong); }

/* yönetim: parola gösterimi */
.card-creds { border-color: var(--accent-line); background:
  radial-gradient(420px 180px at 10% 0%, rgba(45,212,191,.14), transparent 70%),
  linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012)); }
.creds { display: flex; gap: 28px; flex-wrap: wrap; }
.creds > div { display: flex; flex-direction: column; gap: 6px; }
.creds code {
  font-family: var(--mono); font-size: 15px; letter-spacing: .02em;
  background: rgba(0,0,0,.45); border: 1px solid var(--line-strong);
  padding: 9px 12px; border-radius: 10px; color: var(--text);
}
.creds-pass { color: #d9fff9 !important; font-weight: 600; }

select {
  width: 100%;
  background: rgba(0,0,0,.35);
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  font: inherit; font-size: 14.5px;
  outline: none;
}
select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- metodoloji ---------- */
.note-card ul.note-list { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; }
.note-card li { margin-bottom: 7px; }
.note-card strong { color: var(--text); }

/* ---------- duyarlı ---------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-sep { padding: 4px 0; }
  .split-sep::before { top: 50%; bottom: auto; left: 0; right: 0; width: auto; height: 1px; }
  .bar-row { grid-template-columns: 120px 1fr 40px; }
  .user-meta { display: none; }
  .page { padding: 22px 16px 40px; }
  .topbar { padding: 10px 16px; gap: 12px; }
}

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

/* ---------- yazdırma (PDF için) ---------- */
@media print {
  .bg-glow, .topbar, .footer, .hero-actions, .tools, .btn { display: none !important; }
  body { background: #fff; color: #111; }
  .card, .kpi { border-color: #ddd; box-shadow: none; background: #fff; }
  .kpi-value, .kpi-accent .kpi-value { color: #111; text-shadow: none; }
}
