:root {
  --bg: #07111d;
  --bg-2: #0b1524;
  --panel: rgba(12, 23, 39, 0.94);
  --panel-soft: rgba(10, 18, 33, 0.74);
  --line: rgba(110, 138, 183, 0.14);
  --text: #ecf3ff;
  --muted: #8ca0c0;
  --green: #2ad97a;
  --red: #ff6269;
  --amber: #ffbe5c;
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.34);
  --radius: 22px;
  --font: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --display: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}
html[data-theme="light"] {
  --bg: #eef4fb;
  --bg-2: #dfe9f6;
  --panel: rgba(255, 255, 255, 0.96);
  --panel-soft: rgba(247, 250, 255, 0.88);
  --line: rgba(90, 120, 168, 0.16);
  --text: #14233b;
  --muted: #5c7395;
  --shadow: 0 20px 48px rgba(59, 87, 128, 0.12);
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  font-size: 13px;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(50, 106, 255, 0.16), transparent 24%),
    radial-gradient(circle at top right, rgba(42, 217, 122, 0.08), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
body { overflow: hidden; }
button, input { font: inherit; }
.demo-shell { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: 100vh; }
.demo-sidebar {
  padding: 18px 12px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 20, 36, 0.98), rgba(10, 22, 40, 0.96));
  display: flex;
  flex-direction: column;
}
html[data-theme="light"] .demo-sidebar {
  background: linear-gradient(180deg, rgba(246, 249, 254, 0.98), rgba(236, 243, 252, 0.96));
}
.demo-brand {
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: -0.03em;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
}
.demo-brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(42, 217, 122, 0.08);
}
.demo-nav { display: grid; gap: 8px; margin-bottom: auto; }
.demo-nav-item {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.demo-nav-item.active { color: var(--text); background: rgba(17, 32, 55, 0.96); border-color: var(--line); }
html[data-theme="light"] .demo-nav-item.active { background: rgba(229, 238, 250, 0.96); }
.demo-nav-item.muted span:last-child { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; }
.demo-account {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(12, 21, 37, 0.9);
  display: grid;
  gap: 10px;
}
html[data-theme="light"] .demo-account { background: rgba(255,255,255,0.92); }
.demo-eyebrow {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.demo-account-name { font-size: 0.96rem; font-weight: 700; }
.demo-role {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(17, 29, 49, 0.9);
  font-size: 0.72rem;
}
html[data-theme="light"] .demo-role { background: rgba(240,245,252,0.96); }
.demo-account-meta { color: var(--muted); font-size: 0.8rem; line-height: 1.45; }
.demo-account-actions {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.demo-main { padding: 20px 18px 24px; display: grid; gap: 16px; }
.demo-topbar { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; }
.demo-hero, .demo-panel, .demo-side-panel, .demo-widget {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.demo-hero {
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  background: radial-gradient(circle at right, rgba(67, 133, 255, 0.15), transparent 34%), linear-gradient(180deg, rgba(7, 23, 44, 0.96), rgba(7, 18, 35, 0.96));
}
html[data-theme="light"] .demo-hero {
  background: radial-gradient(circle at right, rgba(67, 133, 255, 0.12), transparent 34%), linear-gradient(180deg, rgba(255,255,255,0.98), rgba(240,246,255,0.96));
}
.demo-hero h1 { margin: 0 0 8px; font-size: 2.2rem; letter-spacing: -0.05em; line-height: 0.96; }
.demo-hero p, .demo-sub, .demo-side-copy { margin: 0; color: var(--muted); line-height: 1.5; }
.demo-hero-actions, .demo-toolbar, .demo-service-actions, .demo-form-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.demo-hero-actions {
  align-items: center;
  justify-content: flex-end;
}
.demo-btn {
  border-radius: 12px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  color: var(--text);
  cursor: default;
  background: rgba(12, 21, 37, 0.92);
}
html[data-theme="light"] .demo-btn { background: rgba(255,255,255,0.92); }
.demo-btn-primary { border: 0; background: linear-gradient(135deg, #3f56ff, #248fff); }
.demo-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.demo-widget { padding: 14px; display: grid; gap: 7px; min-height: 105px; }
.demo-widget strong { font-size: 1.52rem; line-height: 1; font-weight: 650; }
.demo-widget span { color: var(--muted); font-size: 0.82rem; }
.demo-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
.demo-panel { padding: 18px; display: grid; gap: 16px; }
.demo-panel-head, .demo-section-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.demo-title { margin: 0 0 6px; font-size: 1.12rem; font-weight: 700; }
.demo-control, .demo-form input {
  min-width: 0;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(10, 20, 36, 0.92);
  color: var(--text);
}
html[data-theme="light"] .demo-control,
html[data-theme="light"] .demo-form input { background: rgba(255,255,255,0.92); }
.demo-control.muted { color: var(--muted); }
.demo-control.wide { display: flex; align-items: center; gap: 8px; }
.demo-monitor-list {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel-soft);
}
.demo-monitor-row {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.demo-monitor-row:last-child { border-bottom: 0; }
.demo-monitor-main { display: flex; gap: 12px; align-items: flex-start; }
.demo-dot {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 5px;
  flex: 0 0 auto;
}
.demo-dot::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.06;
}
.demo-dot.up { color: var(--green); background: var(--green); }
.demo-dot.down { color: var(--red); background: var(--red); }
.demo-dot.warning { color: var(--amber); background: var(--amber); }
.demo-monitor-summary { display: grid; gap: 5px; min-width: 0; }
.demo-monitor-name { font-size: 0.95rem; font-weight: 650; }
.demo-monitor-meta, .demo-monitor-last { color: var(--muted); font-size: 0.79rem; }
.demo-monitor-center {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-width: 0;
}
.demo-state-badge, .demo-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(17, 29, 49, 0.9);
  font-size: 0.75rem;
  font-weight: 450;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}
html[data-theme="light"] .demo-state-badge,
html[data-theme="light"] .demo-tag { background: rgba(240,245,252,0.96); }
.demo-state-badge.up { color: var(--green); border-color: rgba(31,192,107,0.2); }
.demo-state-badge.warning { color: var(--amber); border-color: rgba(255,176,32,0.2); }
.demo-state-badge.down { color: var(--red); border-color: rgba(255,82,95,0.2); }
.demo-tag-ssl.ssl-warn { color: var(--amber); border-color: rgba(255,190,92,0.22); }
.demo-tag-ssl.ssl-expired { color: var(--red); border-color: rgba(255,98,105,0.22); }
.demo-monitor-services {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-left: 10px;
  margin-left: 6px;
  border-left: 1px solid rgba(110, 138, 183, 0.12);
}
.demo-service-row {
  display: grid;
  grid-template-columns: minmax(138px, 1fr) minmax(136px, 0.82fr) minmax(78px, 0.5fr) minmax(126px, 0.72fr) 132px;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(110, 138, 183, 0.12);
  border-radius: 12px;
  background: rgba(10, 18, 33, 0.26);
}
html[data-theme="light"] .demo-service-row { background: rgba(244, 248, 255, 0.82); }
.demo-service-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.demo-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.demo-service-bars-wrap { min-width: 0; }
.demo-pct { display: grid; gap: 2px; margin-top: 2px; }
.demo-pct span { font-size: 0.86rem; font-weight: 620; }
.demo-pct small, .demo-service-info, .demo-service-check span, .demo-agent-foot { color: var(--muted); }
.demo-service-info, .demo-service-check { font-size: 0.79rem; }
.demo-service-check { display: grid; gap: 2px; }
.demo-service-check strong { font-size: 0.8rem; font-weight: 500; color: var(--text); }
.demo-service-actions {
  display: inline-flex;
  gap: 4px;
  justify-self: end;
  min-width: 118px;
  padding: 3px;
  border: 1px solid rgba(110, 138, 183, 0.12);
  border-radius: 10px;
  background: rgba(10, 18, 33, 0.34);
}
.demo-service-actions button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--text);
}
.demo-agent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.demo-agent-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: radial-gradient(circle at right top, rgba(50, 108, 255, 0.08), transparent 26%), linear-gradient(180deg, rgba(9, 19, 35, 0.96), rgba(8, 17, 31, 0.96));
}
html[data-theme="light"] .demo-agent-card {
  background: radial-gradient(circle at right top, rgba(50, 108, 255, 0.06), transparent 26%), linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,255,0.96));
}
.demo-agent-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.demo-agent-head h4 { margin: 0; font-size: 1rem; }
.demo-state-pill {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(17, 29, 49, 0.9); font-size: 0.75rem; font-weight: 700;
}
.demo-state-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
html[data-theme="light"] .demo-state-pill { background: rgba(240,245,252,0.96); }
.demo-state-pill.up { color: var(--green); }
.demo-state-pill.stale { color: var(--amber); }
.demo-agent-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.demo-agent-kpi { padding: 11px 12px; border-radius: 16px; border: 1px solid var(--line); background: rgba(17, 31, 53, 0.55); display: grid; gap: 5px; }
html[data-theme="light"] .demo-agent-kpi { background: rgba(246,249,255,0.92); }
.demo-agent-kpi span { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; }
.demo-agent-kpi strong { font-size: 1.06rem; }
.demo-side-col { display: grid; gap: 16px; }
.demo-side-panel { padding: 16px; }
.demo-side-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.demo-side-title { font-size: 1rem; font-weight: 650; }
.demo-side-value { font-family: var(--display); font-size: 1.32rem; font-weight: 650; letter-spacing: -0.02em; }
.demo-detail-bars {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 5px;
  align-items: end;
  min-height: 36px;
  margin-top: 16px;
}
.demo-detail-bars span {
  height: 28px;
  border-radius: 999px;
  background: rgba(92, 110, 142, 0.3);
  display: block;
}
.demo-detail-bars span.up { background: rgba(42, 217, 122, 0.95); }
.demo-detail-bars span.down { background: rgba(255, 98, 105, 0.95); }
.demo-detail-bars span.mixed { background: linear-gradient(180deg, rgba(42, 217, 122, 0.95), rgba(255, 98, 105, 0.95)); }
.demo-detail-bars span.empty { background: rgba(92, 110, 142, 0.3); }
.demo-recent-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.demo-recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 18, 33, 0.32);
}
html[data-theme="light"] .demo-recent-item {
  background: rgba(247, 250, 255, 0.9);
}
.demo-recent-item div {
  display: grid;
  gap: 4px;
}
.demo-recent-item strong {
  font-size: 0.88rem;
  font-weight: 650;
}
.demo-recent-item span {
  color: var(--muted);
  font-size: 0.76rem;
}
.demo-recent-item em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
}
.demo-recent-item em.up { color: var(--green); }
.demo-recent-item em.warning { color: var(--amber); }
.demo-recent-item em.down { color: var(--red); }
.demo-form { margin-top: 14px; display: grid; gap: 10px; }
.demo-form label { display: grid; gap: 6px; font-size: 0.88rem; color: var(--muted); }
.demo-flag {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  display: inline-block;
  flex: 0 0 auto;
  background-size: cover;
  background-position: center;
}
.demo-flag.nl { background-image: url('https://flagcdn.com/w40/nl.png'); }
@media (max-width: 1300px) {
  .demo-topbar, .demo-content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .demo-shell { grid-template-columns: 1fr; }
  .demo-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .demo-hero, .demo-panel-head, .demo-section-head, .demo-monitor-row, .demo-service-row { grid-template-columns: 1fr; display: grid; }
  .demo-agent-grid { grid-template-columns: 1fr; }
}
