
:root {
  --bg: #f6f7fb;
  --panel: rgba(255,255,255,.92);
  --line: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --green: #059669;
  --red: #dc2626;
  --shadow: 0 14px 36px rgba(15,23,42,.07);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 10% -10%, #e0f2fe 0, transparent 28%),
    radial-gradient(circle at 100% 0%, #ede9fe 0, transparent 26%),
    var(--bg);
  color: var(--text);
  font: 15px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell { width: min(1240px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 24px; }
.topbar, .quick, section:not(.quick) {
  background: var(--panel);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(229,231,235,.9);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.topbar {
  padding: 28px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.05; margin: 5px 0 10px; letter-spacing: -.035em; }
h2 { margin: 3px 0 0; font-size: 22px; letter-spacing: -.02em; }
h3 { margin: 2px 0 0; font-size: 19px; }
p { color: var(--muted); margin: 0; }
.eyebrow { color: #64748b; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.overall {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 15px; border: 1px solid var(--line); border-radius: 999px; background: white;
}
.pulse { width: 10px; height: 10px; background: #94a3b8; border-radius: 50%; box-shadow: 0 0 0 5px #e2e8f0; }
.overall.good .pulse { background: #10b981; box-shadow: 0 0 0 5px #d1fae5; }
.overall.bad .pulse { background: #ef4444; box-shadow: 0 0 0 5px #fee2e2; }

.quick, section:not(.quick) { margin-top: 20px; padding: 24px; }
.section-title { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:18px; }
.actions { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }

.btn, .link-btn, .icon-btn {
  border: 0; cursor: pointer; font: inherit; transition: .15s ease; text-decoration: none;
}
.btn { padding: 10px 14px; border-radius: 11px; font-weight: 700; }
.btn:hover, .link-btn:hover { transform: translateY(-1px); }
.primary { background:#111827; color:white; }
.secondary { background:white; color:#334155; border:1px solid var(--line); }
.danger-ghost { color:#b91c1c; background:#fff; border:1px solid #fecaca; }

.quick-links { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.quick-link {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:16px; border:1px solid var(--line); border-radius:16px; background:#fff;
  color:var(--text); text-decoration:none; font-weight:800;
}
.quick-link small { display:block; font-weight:500; color:var(--muted); margin-top:2px; }
.quick-link .arrow { font-size:20px; color:#94a3b8; }

.grid { display:grid; grid-template-columns:repeat(2, 1fr); gap:14px; }
.card {
  position:relative; overflow:hidden; background:white; border:1px solid var(--line);
  border-radius:19px; padding:20px;
}
.card::before { content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background:var(--accent,#64748b); }
.card-head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.identity { display:flex; gap:12px; align-items:center; }
.avatar {
  width:44px; height:44px; display:grid; place-items:center; border-radius:13px;
  background:#f8fafc; font-size:24px;
}
.card-title { font-size:20px; font-weight:850; letter-spacing:-.02em; }
.port { color:var(--muted); font-size:12px; margin-top:2px; }
.status {
  display:inline-flex; align-items:center; gap:7px; padding:7px 10px; border-radius:999px;
  font-size:12px; font-weight:800; background:#f1f5f9; color:#64748b;
}
.status::before { content:""; width:7px; height:7px; border-radius:50%; background:#94a3b8; }
.status.online { background:#ecfdf5; color:#047857; }
.status.online::before { background:#10b981; }
.status.offline { background:#fef2f2; color:#b91c1c; }
.status.offline::before { background:#ef4444; }

.meta { margin:18px 0 16px; padding:12px 0; display:grid; grid-template-columns:1fr 1fr; border-top:1px solid #f1f5f9; border-bottom:1px solid #f1f5f9; }
.meta div + div { border-left:1px solid #f1f5f9; padding-left:16px; }
.meta label { display:block; color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.08em; }
.meta strong { display:block; margin-top:3px; font-size:14px; }

.card-links { display:flex; flex-wrap:wrap; gap:8px; }
.link-btn {
  padding:9px 11px; border-radius:10px; background:#f8fafc; border:1px solid #e2e8f0;
  color:#334155; font-size:13px; font-weight:750;
}
.link-btn.featured { color:#fff; background:var(--accent,#334155); border-color:transparent; }
.card-controls { margin-top:14px; padding-top:14px; border-top:1px solid #f1f5f9; display:flex; gap:7px; }
.card-controls button { padding:7px 10px; font-size:12px; }

footer { display:flex; justify-content:space-between; color:#94a3b8; font-size:12px; padding:18px 4px 0; }

dialog {
  width:min(900px, calc(100% - 32px)); max-height:80vh; border:1px solid var(--line);
  border-radius:20px; padding:0; box-shadow:0 30px 80px rgba(15,23,42,.25);
}
dialog::backdrop { background:rgba(15,23,42,.48); backdrop-filter:blur(3px); }
.dialog-head { display:flex; justify-content:space-between; align-items:center; padding:18px 20px; border-bottom:1px solid var(--line); }
.icon-btn { width:36px; height:36px; border-radius:10px; background:#f1f5f9; font-size:22px; }
pre { margin:0; padding:20px; max-height:60vh; overflow:auto; background:#0f172a; color:#cbd5e1; font:12px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.toast {
  position:fixed; right:22px; bottom:22px; max-width:420px; padding:12px 15px; border-radius:12px;
  background:#111827; color:#fff; box-shadow:0 18px 45px rgba(15,23,42,.25); opacity:0; transform:translateY(12px); pointer-events:none; transition:.18s ease;
}
.toast.show { opacity:1; transform:translateY(0); }

@media (max-width: 900px) {
  .quick-links { grid-template-columns:repeat(2,1fr); }
  .grid { grid-template-columns:1fr; }
}
@media (max-width: 650px) {
  .shell { width:min(100% - 18px, 1240px); padding-top:12px; }
  .topbar { padding:20px; border-radius:18px; align-items:flex-start; flex-direction:column; }
  .quick, section:not(.quick) { padding:17px; border-radius:18px; }
  .section-title { align-items:flex-start; flex-direction:column; }
  .actions { justify-content:flex-start; }
  .quick-links { grid-template-columns:1fr; }
  footer { flex-direction:column; gap:5px; }
}


/* Yönetici girişi */
[hidden] { display: none !important; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(440px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 30px; }
.auth-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.auth-brand h1, .auth-card h1 { margin: 2px 0 0; font-size: 26px; }
.auth-mark { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: #111827; color: #fff; font-weight: 800; letter-spacing: -.04em; }
.auth-mark.denied { background: #dc2626; }
.auth-intro { color: var(--muted); margin: 0 0 22px; }
.auth-card form { display: grid; gap: 10px; }
.auth-card label { font-size: 13px; font-weight: 700; margin-top: 4px; }
.auth-card input { width: 100%; border: 1px solid #d1d5db; border-radius: 12px; padding: 12px 13px; font: inherit; background: #fff; color: var(--text); outline: none; }
.auth-card input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 72px; }
.password-toggle { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #2563eb; font-weight: 700; cursor: pointer; padding: 7px; }
.auth-submit { margin-top: 8px; width: 100%; justify-content: center; }
.form-message { margin: 3px 0 0; padding: 10px 12px; border-radius: 10px; background: #fef2f2; color: #b91c1c; font-size: 13px; }
.loader { width: 28px; height: 28px; border: 3px solid #e5e7eb; border-top-color: #2563eb; border-radius: 50%; animation: io-spin .8s linear infinite; margin: 20px auto 10px; }
@keyframes io-spin { to { transform: rotate(360deg); } }
.topbar-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.account { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 14px; }
.account strong, .account span { display: block; }
.account span { color: var(--muted); font-size: 12px; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.compact-btn { padding: 8px 10px; }
@media (max-width: 760px) { .topbar-right { width: 100%; justify-content: stretch; } .account, .overall { width: 100%; } .account { justify-content: space-between; } }
