/* Status page — fixed midnight theme */

.status-page {
  min-height: 100vh;
  background: #0a0e1a;
  color: #e2e8f0;
  padding: 3rem 1.5rem;
  font-family: var(--font-body, system-ui, sans-serif);
}

.status-container {
  max-width: 720px;
  margin: 0 auto;
}

/* Header */
.status-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.status-header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0 0 0.25rem;
}

.status-header p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}

/* Banner */
.status-banner {
  text-align: center;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.status-banner.operational {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #4ade80;
}

.status-banner.degraded {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

.status-banner.outage {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
}

/* Service card */
.status-service {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.status-service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.status-service-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #f1f5f9;
}

.status-service-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.status-uptime {
  color: #94a3b8;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.up {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}

.status-dot.degraded {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}

.status-dot.down {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}

/* Bar chart */
.status-bars {
  display: flex;
  gap: 1px;
  height: 32px;
  align-items: flex-end;
}

.status-bar {
  flex: 1;
  height: 100%;
  border-radius: 1px;
  min-width: 1px;
  position: relative;
  cursor: default;
}

.status-bar.up { background: #22c55e; }
.status-bar.degraded { background: #f59e0b; }
.status-bar.down { background: #ef4444; }
.status-bar.nodata { background: #1e293b; }

.status-bar:hover { opacity: 0.8; }

.status-bar-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 4px;
  padding: 0.35rem 0.5rem;
  font-size: 0.7rem;
  color: #cbd5e1;
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
}

.status-bar:hover .status-bar-tooltip {
  display: block;
}

/* Timeline labels */
.status-timeline {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  color: #475569;
}

/* Footer */
.status-footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.75rem;
  color: #475569;
}

/* Mobile */
@media (max-width: 600px) {
  .status-page {
    padding: 1.5rem 1rem;
  }

  .status-service {
    padding: 1rem;
  }

  .status-bars {
    height: 24px;
  }
}
