:root {
  --bg: #0f172a;
  --card: rgba(30, 41, 59, 0.418);
  --border: rgba(255, 255, 255, 0.089);
  --text: #e2e8f0;
  --muted: #94a3b8;
}

/* reset */
* {
  margin: 0;
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
}

body {
  background: linear-gradient(180deg, #0f172a 0%, #0a2540 40%, #0c4a6e 100%);
  color: var(--text);
}

/* layout */
.app {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

/* header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.subtitle {
  color: var(--muted);
  font-size: 14px;
}

/* select */
select {
  background: #020617;
  color: white;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 10px;
}

/* dashboard */
.dashboard {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* glass effect */
.card {
  backdrop-filter: blur(16px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  transition: 0.25s;
}

.card:hover {
  transform: translateY(-4px);
}

/* MAIN STATUS */
.main-status {
  border-left: 8px solid currentColor;
  position: relative;
  overflow: hidden;
}

.status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#status {
  font-size: 32px;
  font-weight: bold;
}

/* glow según estado */
.status-verde {
  color: #22c55e;
  text-shadow: 0 0 12px rgba(34, 197, 94, 0.7);
}



.status-amarillo {
  color: #facc15;
  text-shadow: 0 0 12px rgba(250, 204, 21, 0.7);
  animation: pulse 2s infinite;

}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
  }
}
.status-rojo {
  color: #ef4444;
  text-shadow: 0 0 20px rgba(239, 68, 68, 1);
  animation: pulse 1s infinite;
}

.status-rojo.main-status {
  background: rgba(239, 68, 68, 0.1);
}

/* metrics */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
}

.metric {
  text-align: center;
}

.metric span {
  font-size: 24px;
}

.metric p {
  font-size: 24px;
  font-weight: bold;
  transition: 0.3s;
}

.metric small {
  color: var(--muted);
}

/* footer */
.footer {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

/* mobile */
@media (max-width: 600px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
