:root {
  --bg: #1a1a2e;
  --surface: #16213e;
  --text: #eee;
  --text-muted: #888;
  --green: #00d26a;
  --yellow: #ffc107;
  --red: #ff6b6b;
  --gray: #6c757d;
  --border: #333;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, 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: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

#last-updated {
  color: var(--text-muted);
  font-size: 0.875rem;
}

#stale-banner {
  background: var(--red);
  color: #fff;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  align-items: center;
  gap: 0.75rem;
}

#stale-banner:not([hidden]) {
  display: flex;
}

#stale-banner .icon {
  font-size: 1.25rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  text-align: left;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

th {
  background: rgba(255,255,255,0.05);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover {
  background: rgba(255,255,255,0.02);
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.status-up { background: var(--green); }
.status-degraded { background: var(--yellow); }
.status-down { background: var(--red); }
.status-not-deployed, .status-unknown { background: var(--gray); }

.status-cell {
  display: flex;
  align-items: center;
}

.detail-text {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.action-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.1);
  color: var(--text);
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.875rem;
  transition: background 0.2s;
}

.action-btn:hover {
  background: rgba(255,255,255,0.2);
}

.action-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.stale-row td {
  opacity: 0.5;
}

footer {
  margin-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
}

footer a {
  color: var(--text-muted);
}

@media (max-width: 768px) {
  body { padding: 1rem; }
  th, td { padding: 0.75rem 0.5rem; font-size: 0.875rem; }
  .detail-text { display: none; }
}
