:root {
  --bg-primary: #1a1a2e;
  --bg-secondary: #16213e;
  --bg-card: #0f3460;
  --text-primary: #eaeaea;
  --text-secondary: #a0a0a0;
  --accent: #e94560;
  --success: #00d26a;
  --warning: #ffb830;
  --info: #00adb5;
  --border: #2a2a4a;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  flex: 1;
}

.card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
}

.card h2 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--info);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.stat-healthy .stat-value {
  color: var(--success);
}

.stat-unhealthy .stat-value {
  color: var(--accent);
}

.stat-info .stat-value {
  color: var(--info);
}

.stat-warning .stat-value {
  color: var(--warning);
}

.status-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-healthy,
.status-running {
  background: var(--success);
  color: #000;
}

.status-unhealthy,
.status-stopped {
  background: var(--accent);
  color: #fff;
}

.status-paused {
  background: var(--warning);
  color: #000;
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

th {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
}

tr:hover {
  background: var(--bg-secondary);
}

.mono {
  font-family: "Monaco", "Menlo", monospace;
  font-size: 0.9rem;
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
}

.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  background: var(--info);
  color: #fff;
}

.btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 5px 12px;
  font-size: 0.8rem;
}

.btn-secondary {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card);
}

footer {
  width: 100%;
  text-align: center;
  margin-top: auto;
  padding: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.8rem;
}

footer a {
  color: var(--info);
  text-decoration: none;
}

.auto-refresh {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.toggle {
  position: relative;
  width: 40px;
  height: 22px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border);
  border-radius: 22px;
  transition: 0.3s;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-primary);
  border-radius: 50%;
  transition: 0.3s;
}

.toggle input:checked + .toggle-slider {
  background-color: var(--success);
}

.toggle input:checked + .toggle-slider:before {
  transform: translateX(18px);
}
