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

.row{
  display:flex;
  gap:10px;
  margin-bottom:20px;
}

.charts{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

.alert{
  padding:8px;
  margin:4px 0;
  border-radius:4px;
}

.alert.warn{background:#fff3a0}
.alert.crit{background:#ffb3b3}

/* ===== LOGIN ===== */

.login-page{
  background:linear-gradient(135deg,#1f2933,#0b1220);
  height:100vh;
  display:flex;
  justify-content:center;
  align-items:center;
}

.login-box{
  background:#121826;
  padding:40px;
  width:320px;
  border-radius:10px;
  box-shadow:0 20px 40px rgba(0,0,0,.6);
  color:#fff;
  text-align:center;
}

.login-box h1{
  margin:0;
  font-size:28px;
}

.login-box input{
  width:100%;
  margin:12px 0;
  padding:10px;
  border:none;
  border-radius:6px;
  background:#1f2933;
  color:white;
  outline:none;
}

.login-box input:focus{
  outline:2px solid #3b82f6;
}

.login-box button{
  width:100%;
  padding:10px;
  margin-top:12px;
  border:none;
  border-radius:6px;
  background:#3b82f6;
  color:white;
  font-weight:700;
  cursor:pointer;
}

.login-box button:hover{
  background:#2563eb;
}

.muted{opacity:.6;font-size:13px}

.error{
  color:#ff6b6b;
  margin-top:10px;
}

/* ===== DASHBOARD ===== */

body{
  margin:0;
  background:#0f172a;
  color:#e5e7eb;
  font-family:system-ui, sans-serif;
}

header{
  background:#020617;
  padding:14px 20px;
  display:flex;
  justify-content:space-between;
  border-bottom:1px solid #1e293b;
}

header button{
  background:#ef4444;
  border:none;
  color:white;
  padding:6px 12px;
  border-radius:6px;
  cursor:pointer;
}

.row{
  padding:20px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:16px;
}

.host{
  background:#020617;
  padding:14px;
  border-radius:12px;
  cursor:pointer;
}

.dashboard{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px;
  padding:20px;
}

.panel{
  background:#0f172a;
  border:1px solid #1e293b;
  border-radius:10px;
  height:360px;
  display:flex;
  flex-direction:column;
}

.panel-header{
  padding:10px 14px;
  border-bottom:1px solid #1e293b;
  background:#020617;
  font-weight:600;
}

.chart{
  width:100%;
  height:100%;
}

.placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  color:#64748b;
  font-style:italic;
}

#alerts{
  padding:20px;
}


