:root {
  --bg: #0f1117;
  --card: #1a1d27;
  --border: #2a2d38;
  --text: #e0e0e0;
  --muted: #6b7078;
  --accent: #4a9eff;
  --green: #3fb950;
  --red: #f85149;
  --yellow: #d29922;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); }

header { display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--border); }
header h1 { font-size: 1.2rem; font-weight: 600; }

.badge { font-size: 0.7rem; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.badge--online { background: var(--green); color: #000; }
.badge--offline { background: var(--red); color: #000; }

main { max-width: 1000px; margin: 0 auto; padding: 24px 16px; display: flex; flex-direction: column; gap: 24px; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 20px; }
.card h2 { font-size: 1rem; margin-bottom: 16px; color: var(--accent); }

.info-grid { display: flex; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.info-grid > div { color: var(--muted); font-size: 0.85rem; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__label { font-size: 0.75rem; color: var(--muted); }
.stat__value { font-size: 0.8rem; }

.bar { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.bar__fill { height: 100%; width: 0%; transition: width 0.3s ease; border-radius: 4px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 0.75rem; }

.status { font-size: 0.75rem; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.status--running { background: rgba(63,185,80,.15); color: var(--green); }
.status--exited { background: rgba(248,81,73,.15); color: var(--red); }
.status--paused { background: rgba(210,153,34,.15); color: var(--yellow); }

.ports { display: flex; flex-wrap: wrap; gap: 4px; }
.port { font-size: 0.7rem; background: var(--bg); padding: 2px 6px; border-radius: 3px; color: var(--muted); }

.actions { display: flex; gap: 4px; }
.btn { font-size: 0.75rem; padding: 4px 10px; border: 1px solid var(--border); border-radius: 4px; cursor: pointer; background: transparent; color: var(--text); transition: all 0.15s; }
.btn:hover { border-color: var(--accent); }
.btn--danger:hover { border-color: var(--red); }

.muted { color: var(--muted); }

@media (max-width: 600px) {
  header h1 { font-size: 1rem; }
  .stats-grid { grid-template-columns: 1fr; }
}
