/* static/styles.css */
body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  margin: 0;
  background: #f4f6fa;
  color: #0f1724;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
.container {
  max-width: 1400px;
  margin: 18px auto;
  padding: 18px;
}
header {
  background: #ffffff;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 18px;
  box-shadow: 0 4px 18px rgba(12,15,30,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header .left { display:flex; flex-direction:column; }
h1 { margin: 0; font-weight:700; font-size:1.3rem; color:#0b1220; }
.muted.small { color:#64748b; font-size:0.85rem; margin-top:2px; }

.controls { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.control-item { font-weight:600; font-size:0.95rem; display:flex; gap:8px; align-items:center; background:#f8fafc; padding:6px 8px; border-radius:8px; border:1px solid #eef2f7; }
.controls select, .controls input[type="datetime-local"] { padding:6px 8px; border-radius:6px; border:1px solid #e6eef8; background:#fff; font-size:0.95rem; }
.hidden { display:none; }

.cards { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:18px; }
.card { background:#fff; border-radius:10px; padding:12px; flex:1; min-width:160px; box-shadow:0 6px 20px rgba(12,15,30,0.04); border:1px solid #f0f4f9; }
.card .label { font-size:0.85rem; color:#6b7280; }
.card .value { font-size:1.15rem; font-weight:700; margin-top:6px; color:#071437; }

.big-chart-controls { background:#fff; border-radius:10px; padding:12px; margin-bottom:18px; box-shadow:0 6px 20px rgba(12,15,30,0.04); border:1px solid #f0f4f9; }
.metric-toggle { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:8px; color:#374151; }

.charts { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:18px; }
.chart { background:#fff; border-radius:10px; padding:12px; box-shadow:0 6px 20px rgba(12,15,30,0.04); border:1px solid #f0f4f9; }
.chart h3 { margin-top:0; font-size:1rem; margin-bottom:8px; color:#0b1220; }

.panel-list { background:#fff; padding:12px; border-radius:10px; margin:20px 0; box-shadow:0 6px 20px rgba(12,15,30,0.04); border:1px solid #f0f4f9; overflow:auto; }
.panel-list table { width:100%; border-collapse:collapse; font-size:0.92rem; min-width:900px; }
.panel-list th { background:#fbfdff; padding:10px; text-align:left; position: sticky; top: 0; z-index: 1; border-bottom:1px solid #eef2f7; color:#334155; font-weight:700; }
.panel-list td { padding:10px; border-top:1px solid #f3f6fb; vertical-align: middle; color:#0b1220; }

.button {
  padding:8px 12px;
  border-radius:8px;
  background:#2563eb;
  color:white;
  border:none;
  cursor:pointer;
  font-weight:600;
  font-size:0.9rem;
}
.button.small { padding:6px 8px; font-size:0.82rem; border-radius:6px; }

.status-online { color: #0b8457; font-weight:700; }
.status-offline { color: #cc2d2d; font-weight:700; }

.alerts { position: fixed; right: 18px; bottom: 18px; display:flex; flex-direction: column; gap:10px; z-index: 9999; }
.toast {
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  padding: 12px 14px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(12,15,30,0.12);
  border-left: 4px solid #2563eb;
  min-width: 220px;
}
.toast .title { font-weight:800; margin-bottom:6px; color:#071437; }
.toast .body { color:#344154; margin-bottom:6px; }
.toast .time { font-size:0.8rem; color:#6b7280; }

@media (max-width: 900px) {
  .charts { grid-template-columns:1fr; }
  .controls { gap:8px; }
}
