:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #1a1a24;
  --bg-tertiary: #242438;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --accent-error: #ef4444;
  --border-primary: rgba(255, 255, 255, 0.08);
  --border-secondary: rgba(255, 255, 255, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3),
    0 10px 10px -5px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3),
    0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    sans-serif;
  background: linear-gradient(135deg, var(--bg-primary) 0%, #0f0f1a 100%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  min-height: 100vh;
  padding: 2rem 1rem;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(16, 185, 129, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(239, 68, 68, 0.03) 0%,
      transparent 50%
    );
}

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

.status-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-lg);
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.status-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
}

.status-banner.pending {
  border-color: rgba(245, 158, 11, 0.3);
  background: linear-gradient(
    135deg,
    var(--bg-secondary) 0%,
    rgba(245, 158, 11, 0.05) 100%
  );
}

.status-banner.up {
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(
    135deg,
    var(--bg-secondary) 0%,
    rgba(16, 185, 129, 0.05) 100%
  );
}

.status-banner.down {
  border-color: rgba(239, 68, 68, 0.3);
  background: linear-gradient(
    135deg,
    var(--bg-secondary) 0%,
    rgba(239, 68, 68, 0.05) 100%
  );
}

.status-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  transition: all 0.5s ease;
  flex-shrink: 0;
}

.status-banner.pending .status-icon {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
}

.status-banner.up .status-icon {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

.status-banner.down .status-icon {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.1);
}

.status-icon svg {
  width: 20px;
  height: 20px;
  transition: all 0.5s ease;
}

.banner-content {
  flex: 1;
}

.banner-title {
  margin: 0 0 4px 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.banner-subtitle {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.status-banner.pending .banner-title {
  color: var(--accent-warning);
}

.status-banner.up .banner-title {
  color: var(--accent-success);
}

.status-banner.down .banner-title {
  color: var(--accent-error);
}

main {
  margin-bottom: 4rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    var(--text-secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 3rem;
  font-weight: 300;
}

section {
  margin-bottom: 3rem;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

h2::before {
  content: "";
  width: 4px;
  height: 24px;
  background: linear-gradient(
    135deg,
    var(--accent-success),
    var(--accent-warning)
  );
  border-radius: 2px;
}

.component-list {
  display: grid;
  gap: 16px;
}

.component {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-secondary);
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.component::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
}

.component:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-primary);
}

.component-info {
  flex: 1;
}

.component-info h3 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.component-info p {
  margin: 0 0 8px 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.component-info a {
  color: #60a5fa;
  font-size: 0.8125rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.component-info a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.status-badge {
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.status-badge.unknown {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border-color: var(--border-secondary);
}

.status-badge.up {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-success);
  border-color: rgba(16, 185, 129, 0.2);
}

.status-badge.down {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-error);
  border-color: rgba(239, 68, 68, 0.2);
}

footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-secondary);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-secondary);
  border-top: 2px solid var(--accent-warning);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

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

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@media (max-width: 768px) {
  .page {
    padding: 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  .status-banner {
    padding: 16px;
    gap: 12px;
  }

  .status-icon {
    width: 40px;
    height: 40px;
  }

  .status-icon svg {
    width: 16px;
    height: 16px;
  }

  .component {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .component-info {
    width: 100%;
  }

  .status-badge {
    align-self: flex-end;
  }
}

@media (max-width: 480px) {
  .status-banner {
    flex-direction: column;
    text-align: center;
  }

  h2 {
    font-size: 1.25rem;
  }
}
