:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --border: #2a2d3a;
  --text: #e4e6eb;
  --text-muted: #8b8fa3;
  --accent: #6c63ff;
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #eab308;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

header { margin-bottom: 2rem; }
header h1 { font-size: 2rem; color: var(--accent); }
header .subtitle { color: var(--text-muted); font-size: 0.95rem; }

h2 {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin: 2rem 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.healthy   { background: var(--green); }
.status-dot.unhealthy { background: var(--red); }
.status-dot.unreachable { background: var(--yellow); }

.service-name { font-weight: 600; }
.service-status { color: var(--text-muted); font-size: 0.85rem; }

.config-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.4rem 1rem;
}
.config-key { color: var(--text-muted); font-size: 0.9rem; }
.config-val { font-family: monospace; font-size: 0.9rem; }

.model-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
}
.model-card .model-name { font-weight: 600; font-size: 0.95rem; }
.model-card .model-meta { color: var(--text-muted); margin-top: 0.3rem; }

input[type="text"] {
  width: 100%;
  padding: 0.7rem 1rem;
  margin-bottom: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
}
input[type="text"]:focus { border-color: var(--accent); }

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  body { padding: 1rem; }
  .grid { grid-template-columns: 1fr; }
}
