:root {
  --bg-dark: #0f172a;
  --bg-panel: rgba(30, 41, 59, 0.7);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #3b82f6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.glass-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  width: 100%;
}

.header {
  text-align: center;
  margin-bottom: 40px;
}

.header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.overall-status {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  margin-bottom: 32px;
  border-radius: 16px;
  gap: 16px;
  font-size: 1.25rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--success);
}
.overall-status.degraded {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--warning);
}
.overall-status.down {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--danger);
}

.status-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: currentColor;
  position: relative;
}
.status-icon.pulsing::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.service-info h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.service-info p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.service-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.9rem;
}
.status-operational { color: var(--success); }
.status-degraded { color: var(--warning); }
.status-down { color: var(--danger); }

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.indicator.operational { background: var(--success); }
.indicator.degraded { background: var(--warning); }
.indicator.down { background: var(--danger); }

.latency-badge {
  background: rgba(255,255,255,0.05);
  padding: 4px 8px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer {
  text-align: center;
  margin-top: auto;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Admin specific styles */
.admin-login {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 400px;
  margin: 0 auto;
}
.admin-login input {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.2);
  color: white;
  outline: none;
}
.admin-login button {
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: white;
  font-weight: 600;
  cursor: pointer;
}
.admin-login button:hover { background: #2563eb; }

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.metric-card {
  padding: 20px;
  text-align: center;
}
.metric-title {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}
