@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-main: #0b0f19;
  --bg-card: rgba(18, 24, 38, 0.85);
  --border-card: rgba(255, 255, 255, 0.08);
  --glow-online: rgba(34, 197, 94, 0.25);
  --glow-degraded: rgba(245, 158, 11, 0.25);
  --glow-offline: rgba(239, 68, 68, 0.25);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.12) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(16, 185, 129, 0.08) 0px, transparent 50%);
  background-attachment: fixed;
  color: #f1f5f9;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease-in-out;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 35px -8px rgba(0, 0, 0, 0.6);
}

.pulse-online {
  box-shadow: 0 0 15px var(--glow-online);
  animation: pulse-green 2s infinite;
}

.pulse-degraded {
  box-shadow: 0 0 15px var(--glow-degraded);
  animation: pulse-yellow 2s infinite;
}

.pulse-offline {
  box-shadow: 0 0 15px var(--glow-offline);
  animation: pulse-red 2s infinite;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

@keyframes pulse-yellow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

@keyframes pulse-red {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Gauge circle animations */
.gauge-svg circle {
  transition: stroke-dashoffset 0.8s ease;
}

/* Uptime bar block */
.uptime-block {
  height: 28px;
  border-radius: 3px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.uptime-block:hover {
  transform: scaleY(1.2);
  opacity: 0.9;
}
