*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --border: #2a2d3e;
  --text: #e2e8f0;
  --muted: #8892a4;
  --accent: #4f8ef7;
  --green: #3ecf8e;
  --yellow: #f6c843;
  --red: #f46a6a;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
}

header, footer {
  padding: 1rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

h1 { margin: 0; font-size: 1.25rem; color: var(--accent); }
h2 { margin: 0; font-size: 0.95rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
p { margin: .35rem 0 0; color: var(--muted); }

button {
  background: var(--border);
  border: 1px solid var(--border);
  color: var(--text);
  padding: .45rem .8rem;
  border-radius: 8px;
  cursor: pointer;
}
button:hover { background: var(--accent); border-color: var(--accent); color: white; }

main { max-width: 1180px; padding: 1.5rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.card, .table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.card { padding: 1rem 1.25rem; }
.card-label { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .45rem; }
.card-value { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.progress-wrap { height: 7px; background: var(--border); border-radius: 999px; overflow: hidden; margin-top: .7rem; }
.progress-bar { height: 100%; width: 0; background: var(--green); transition: width .25s ease; }
.progress-bar.warn { background: var(--yellow); }
.progress-bar.crit { background: var(--red); }

.section-header { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .75rem; }
.badge { color: var(--yellow); border: 1px solid var(--yellow); border-radius: 999px; padding: .15rem .55rem; font-size: .75rem; }
.hidden { display: none; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; color: var(--muted); background: #141722; font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; }
th, td { padding: .7rem .9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: rgba(255,255,255,.03); }
.loading { text-align: center; color: var(--muted); }
.status-running, .status-up { color: var(--green); }
.status-exited, .status-dead { color: var(--red); }
.status-paused { color: var(--yellow); }
footer { border-top: 1px solid var(--border); border-bottom: 0; color: var(--muted); font-size: .8rem; }
