/* ─── Dashboard (kiosk/TV overview) ─────────────────────────
 * Extends css/style.css. Loaded only by dashboard.html.
 */

#dash-map {
  flex: 1 1 auto;
  min-height: 0;
  border-right: 4px solid var(--gold2);
  background: #1a3d25;
}
.dash-sidebar {
  flex: 0 0 480px;
}

/* Reuse the same green-tinted retro tile look as the explorer map
   (base rule lives in style.css; #dash-map just needs the same tiles) */

/* Permanent on-map labels (no hover on a wall display) */
.dash-tooltip {
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.3;
  background: rgba(10, 34, 20, 0.92) !important;
  color: var(--text-light) !important;
  border: 2px solid var(--gold2) !important;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}
.dash-tooltip::before { border-top-color: var(--gold2) !important; }
.dash-tooltip-sub { color: var(--green-bright); font-size: 13px; }

/* Stat tile grid */
.dash-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px 4px;
}
.dash-stat-tile {
  background: var(--panel-bg2);
  border: 3px solid var(--panel-border);
  padding: 8px 6px;
  text-align: center;
}
.dash-stat-val {
  font-family: var(--font-pixel);
  font-size: 17px;
  color: var(--green-mid);
  text-shadow: 1px 1px 0 rgba(255,255,255,0.3);
}
.dash-stat-val.dash-stat-warn { color: var(--red); }
.dash-stat-tile-wide { grid-column: 1 / -1; }
.dash-stat-lbl {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--text-dim);
  margin-top: 5px;
  letter-spacing: 0.5px;
}
.dash-meta {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-dim);
  font-style: italic;
  padding: 6px 12px 10px;
}

/* Hottest-site callouts (current vs. all-time, side by side) */
.dash-hottest-row { display: flex; gap: 0; }
.dash-hottest-col { flex: 1 1 0; min-width: 0; }
.dash-hottest {
  padding: 12px;
  text-align: center;
  font-family: var(--font-mono);
}
.dash-hottest-name {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--text-dark);
}
.dash-hottest-val {
  font-family: var(--font-pixel);
  font-size: 30px;
  margin: 10px 0 4px;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.25);
}
.dash-hottest-sub {
  font-size: 18px;
  color: var(--text-dim);
}

/* Device table */
.dash-table-scroll { max-height: none; }
.dash-device-tbl th:first-child,
.dash-device-tbl td.dash-status-cell {
  width: 24px;
  padding-left: 10px;
  padding-right: 0;
}
.status-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #000;
}
.status-dot.online  { background: #2db84c; box-shadow: 0 0 4px #2db84c; }
.status-dot.offline { background: #999; }

/* Per-device 24h sparkline (window ends at that device's own last reading) */
.dash-spark-cell { padding: 2px 4px !important; }
.dash-spark { display: block; margin: 0 auto; }
.dash-spark-empty {
  font-family: var(--font-mono);
  font-size: 13px;
  fill: var(--text-dim);
}

/* Live badge pulse on each refresh */
#refresh-badge { color: var(--green-bright); transition: color 0.2s, text-shadow 0.2s; }
.dash-pulse {
  color: var(--gold) !important;
  text-shadow: 0 0 8px var(--gold);
}
