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

:root {
  --bg-dark: #080a12;
  --bg-darker: #0a0d17;
  --bg-panel: #111827;
  --text-primary: #eef3ff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.1);
  --cyan: #22d3ee;
  --violet: #5865f2;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', sans-serif;
  background: linear-gradient(135deg, #080a12, #0f1420 50%, #0a0d17);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--cyan);
}

.text-muted {
  color: var(--text-muted);
}

/* Header */
.status-header {
  border-bottom: 1px solid var(--border-color);
  background: rgba(8, 10, 18, 0.8);
  backdrop-filter: blur(10px);
  padding: 40px 0;
  margin-bottom: 40px;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.header-left h1 {
  font-size: 40px;
  font-weight: 900;
  margin-bottom: 8px;
}

.header-left p {
  color: var(--text-secondary);
  font-size: 16px;
}

.header-right {
  display: flex;
  align-items: center;
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
}

.status-operational {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-degraded {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-major {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Main Container */
.status-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.status-main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 32px 80px;
}

/* Summary Section */
.summary-section {
  margin-bottom: 60px;
}

.summary-section h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 24px;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.stat-item {
  padding: 24px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.4);
}

.stat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 32px;
  font-weight: 900;
  color: var(--cyan);
}

/* Services Section */
.services-section {
  margin-bottom: 60px;
}

.services-section h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 24px;
}

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

.service-item {
  padding: 24px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.4);
  transition: var(--transition);
}

.service-item.operational {
  border-left: 4px solid var(--success);
}

.service-item.degraded {
  border-left: 4px solid var(--warning);
}

.service-item.major {
  border-left: 4px solid var(--error);
}

.service-item:hover {
  background: rgba(17, 24, 39, 0.6);
  border-color: var(--cyan);
}

.service-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 16px;
}

.service-header h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}

.service-description {
  font-size: 13px;
  color: var(--text-muted);
}

.service-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.service-status.operational {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.service-status.degraded {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.service-status.major {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
}

.service-chart {
  margin: 16px 0;
}

.uptime-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8px, 1fr));
  gap: 3px;
  height: 32px;
}

.uptime-bar {
  background: var(--success);
  border-radius: 2px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.uptime-bar:hover {
  opacity: 1;
}

.uptime-bar.degraded {
  background: var(--warning);
}

.uptime-bar.down {
  background: var(--error);
}

.service-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* Incidents Section */
.incidents-section {
  margin-bottom: 60px;
}

.incidents-section h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 24px;
}

.incidents-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.incident-item {
  padding: 24px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.4);
  border-left: 4px solid var(--border-color);
}

.incident-item.resolved {
  border-left-color: var(--success);
}

.incident-item.investigating {
  border-left-color: var(--warning);
}

.incident-date {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.incident-content h4 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}

.incident-description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.incident-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 100px 1fr;
  gap: 16px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-time {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.timeline-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.timeline-status.investigating {
  background: rgba(245, 158, 11, 0.2);
  color: var(--warning);
}

.timeline-status.monitoring {
  background: rgba(34, 211, 238, 0.2);
  color: var(--cyan);
}

.timeline-status.resolved {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
}

.timeline-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

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

.empty-state p:first-child {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* Metrics Section */
.metrics-section {
  margin-bottom: 60px;
}

.metrics-section h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 24px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
}

.metric-card {
  padding: 24px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.4);
}

.metric-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
}

.metric-chart {
  height: 200px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 10px 0;
}

.metric-bar {
  flex: 1;
  background: linear-gradient(180deg, #22d3ee, #5865f2);
  border-radius: 2px 2px 0 0;
  min-height: 4px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.metric-bar:hover {
  opacity: 1;
}

.metric-info {
  font-size: 12px;
  color: var(--text-muted);
}

/* Footer */
.status-footer {
  border-top: 1px solid var(--border-color);
  background: rgba(8, 10, 18, 0.8);
  backdrop-filter: blur(10px);
  padding: 60px 32px 32px;
  margin-top: 80px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
  margin-bottom: 40px;
}

.footer-section h4 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
}

.footer-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-section a {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-section a:hover {
  color: var(--cyan);
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .status-main {
    padding: 0 16px 60px;
  }

  .header-left h1 {
    font-size: 28px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }
}
