/* styles.css */
:root {
  --bg1: #0b1220;
  --bg2: #121827;
  --accent: #00d4ff;
  --muted: #9aa6b2;
}

html,body {
  height: 100%;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg, var(--bg1), var(--bg2));
  color: #e6eef6;
}

.panel {
  max-width: 1100px;
  margin: 28px auto;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 12px;
  box-shadow: 0 6px 30px rgba(0,0,0,0.5);
}

h1 { margin: 0; font-size: 1.8rem; }
.sub { color: var(--muted); margin: 6px 0 18px; }

.top-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.left { flex: 1; }
.right { width: 320px; }

.gauge-wrap { position: relative; width: 300px; margin: 6px; }
.speed-text {
  position: absolute;
  left: 0; right: 0;
  top: 56px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.controls { margin-top: 8px; display:flex; gap:8px; align-items:center; }
.controls button, .controls input[type="checkbox"] {
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.03);
  color: var(--accent);
  cursor: pointer;
}

.controls button:hover { filter: brightness(1.1); }

.stats { background: rgba(255,255,255,0.02); padding: 12px; border-radius: 8px; }
.stat-row { display:flex; justify-content:space-between; padding:8px 6px; border-bottom: 1px solid rgba(255,255,255,0.02); }
.stat-row:last-child { border-bottom: none; }

.chart-area { margin-top: 18px; padding: 10px; background: rgba(0,0,0,0.05); border-radius: 8px; }
.footer { margin-top: 14px; display:flex; gap:8px; align-items:center; }
.footer input { flex:1; padding:8px; border-radius:8px; border: none; background: rgba(255,255,255,0.02); color: #fff; }
.footer button { padding:8px 12px; border-radius:8px; border:none; cursor:pointer; background:var(--accent); color:#00171a; font-weight:700; }

.note { font-size: 12px; color: var(--muted); margin-left: 8px; }
