:root {
  --bg: #050814;
  --bg-elevated: #0b1021;
  --bg-elevated-soft: #12192e;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.25);
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.6);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0b1220 0, #020617 50%, #000 100%);
  color: var(--text);
}

.page {
  min-height: 100vh;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 32px;
  display: flex;
  flex-direction: column;
}

/* Top bar */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.6)
  );
  border: 1px solid rgba(148, 163, 184, 0.3);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #facc15, #22c55e 60%, #16a34a);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.8);
}

.brand-title {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  font-size: 12px;
  color: #a7f3d0;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
}

/* Layout */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
  gap: 18px;
  margin-top: 10px;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

.left-column,
.right-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Cards */

.card {
  background: linear-gradient(145deg, var(--bg-elevated), var(--bg-elevated-soft));
  border-radius: 18px;
  padding: 16px 18px 18px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.card h2,
.card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.card.highlight {
  padding: 18px 20px;
}

/* Current temp card */

.big-number {
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 44px;
  font-weight: 600;
}

.big-number .unit {
  font-size: 20px;
  color: var(--text-muted);
}

.meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Small stat grid */

.small-grid {
  padding-top: 14px;
}

.small-grid-items {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.small-item {
  background: rgba(15, 23, 42, 0.7);
  border-radius: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.small-item .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.small-item .value {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 500;
}

.muted {
  opacity: 0.6;
}

/* Chart card */

.chart-card {
  padding: 16px 18px 20px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.chip {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #e0f2fe;
}

/* Chart canvas */

#tempChart {
  margin-top: 4px;
}

/* Footer */

.footer {
  margin-top: 18px;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.8);
  padding-top: 8px;
}

.footer .hint {
  opacity: 0.8;
}

@media (max-width: 640px) {
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

