:root {
  --bg-color: #03001e;
  --text-color: #f1f5f9;
  --text-muted: #94a3b8;
  --accent-purple: #7c3aed;
  --accent-blue: #06b6d4;
  --accent-pink: #ec4899;
  --card-bg: rgba(15, 23, 42, 0.45);
  --card-border: rgba(255, 255, 255, 0.08);
  --font-family: 'Plus Jakarta Sans', sans-serif;
  --title-font: 'Outfit', sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-family);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* Background Gradients */
.glass-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(20, 10, 40, 0.5) 0%, rgba(3, 0, 30, 0.95) 100%);
  z-index: -2;
}

.glow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.25;
}

.glow-1 {
  background: var(--accent-purple);
  width: 600px;
  height: 600px;
  top: -150px;
  left: -150px;
  animation: float 20s infinite alternate;
}

.glow-2 {
  background: var(--accent-blue);
  width: 500px;
  height: 500px;
  bottom: -150px;
  right: -150px;
  animation: float 25s infinite alternate-reverse;
}

/* Container */
.container {
  max-width: 1100px;
  width: 90%;
  margin: 40px auto;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Header */
.header {
  text-align: center;
}

.badge {
  display: inline-block;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: #c084fc;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.title {
  font-family: var(--title-font);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 50%, var(--accent-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Grid & Dashboard Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  width: 100%;
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 
              0 0 20px rgba(124, 58, 237, 0.15);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon {
  font-size: 1.5rem;
}

.card-header h3 {
  font-family: var(--title-font);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.card-value {
  font-family: var(--title-font);
  font-size: 1.5rem;
  font-weight: 700;
  word-break: break-all;
  color: #fff;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.card-footer {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
}

/* Footer / Status Area */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulse 2s infinite;
}

.status-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

#uptime {
  font-family: monospace;
  color: #fff;
  font-weight: bold;
}

.timestamp {
  font-size: 0.85rem;
  color: var(--text-muted);
}

#timestamp {
  color: #fff;
}

/* Animations */
@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 30px) scale(1.1); }
  100% { transform: translate(-20px, -50px) scale(0.9); }
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.5; }
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}

.animate-slide-up {
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 600px) {
  .footer {
    flex-direction: column;
    text-align: center;
  }
}
