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

body {
  font-family: 'Spline Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #000000;
  color: #FAFAFA;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 32px;
  width: 32px;
  border-radius: 8px;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: #FAFAFA;
}

.back-link {
  color: rgba(250, 250, 250, 0.6);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #AAEED8;
}

/* Main */
main {
  flex: 1;
  padding: 40px 0;
}

/* Overall Status */
.overall-status {
  text-align: center;
  margin-bottom: 48px;
}

.status-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-icon.operational {
  background-color: rgba(34, 197, 94, 0.2);
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.3);
}

.status-icon.operational::after {
  content: '';
  width: 24px;
  height: 24px;
  background-color: #22C55E;
  border-radius: 50%;
}

.status-icon.degraded {
  background-color: rgba(234, 179, 8, 0.2);
  box-shadow: 0 0 24px rgba(234, 179, 8, 0.3);
}

.status-icon.degraded::after {
  content: '';
  width: 24px;
  height: 24px;
  background-color: #EAB308;
  border-radius: 50%;
}

.status-icon.outage {
  background-color: rgba(239, 68, 68, 0.2);
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.3);
}

.status-icon.outage::after {
  content: '';
  width: 24px;
  height: 24px;
  background-color: #EF4444;
  border-radius: 50%;
}

.status-icon.loading {
  background-color: rgba(250, 250, 250, 0.1);
}

.status-icon.loading::after {
  content: '';
  width: 24px;
  height: 24px;
  border: 2px solid rgba(250, 250, 250, 0.3);
  border-top-color: #FAFAFA;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.overall-status h1 {
  font-size: 1.5rem;
  font-weight: 600;
}

/* Services */
.services {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background-color: rgba(250, 250, 250, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background-color: #000000;
}

.service-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.service-indicator.operational {
  background-color: #22C55E;
}

.service-indicator.degraded {
  background-color: #EAB308;
}

.service-indicator.outage {
  background-color: #EF4444;
}

.service-indicator.unknown {
  background-color: rgba(250, 250, 250, 0.3);
}

.service-name {
  font-weight: 500;
}

.service-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.service-status {
  font-size: 0.875rem;
  color: rgba(250, 250, 250, 0.6);
}

.service-response-time {
  font-size: 0.875rem;
  color: rgba(250, 250, 250, 0.4);
  min-width: 50px;
  text-align: right;
}

/* Last Updated */
.last-updated {
  text-align: center;
  margin-top: 32px;
  font-size: 0.875rem;
  color: rgba(250, 250, 250, 0.4);
}

/* Footer */
footer {
  padding: 24px 0;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(250, 250, 250, 0.3);
}

/* Responsive */
@media (max-width: 480px) {
  .service {
    padding: 14px 16px;
  }

  .service-meta {
    gap: 12px;
  }

  .service-response-time {
    display: none;
  }
}
