/* =========================================================
   BASE
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #020617;
  --card: #0f172a;
  --accent: #38bdf8;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: rgba(148, 163, 184, 0.4);
  --radius: 1rem;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.7);
  --max-width: 1200px;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* =========================================================
   LAYOUT
   ========================================================= */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

#main-content {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =========================================================
   PAGE HEADING
   ========================================================= */

.dashboard-heading {
  padding: 0.75rem 0 0.5rem;
  text-align: center;
}

.dashboard-heading h1 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent);
}

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

.dashboard {
  flex: 1;
}

.dashboard-container {
  height: 100%;
}

.dashboard-grid {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 2.5fr);
  gap: 2rem;
  align-items: center;
}

/* LEFT PANEL */
.dashboard-left {
  height: 80%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Alerts */
.alert-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}

.alert-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--accent);
}

.alert-message {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Buttons */
.dashboard-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link-card {
  padding: 1.1rem 1.25rem;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  text-align: center;
}

.link-card:hover {
  border-color: var(--accent);
}

/* RIGHT PANEL (Radar) */
.dashboard-radar {
  height: 80%;
  align-self: center;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: var(--shadow);
}

.dashboard-radar iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  padding: 0.5rem 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* =========================================================
   MOBILE FALLBACK
   ========================================================= */

@media (max-width: 900px) {
  html,
  body {
    overflow-y: auto;
  }

  #main-content {
    height: auto;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-left,
  .dashboard-radar {
    height: auto;
  }

  .dashboard-radar {
    min-height: 45vh;
  }
}

/* =========================================================
   WEATHER SNAPSHOT CARD (NEAL-STYLE)
   ========================================================= */

.weather-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
  color: var(--text);
}

/* Inner overlay for readability */
.weather-card-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(4px);
}

/* Icon */
.weather-icon {
  font-size: 2.2rem;
  line-height: 1;
}

/* Text */
.weather-condition {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.weather-description {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Weather backgrounds (mirrors NEAL Weather hero logic) */

.weather-clear {
  background:
    radial-gradient(circle at top, #0f172a, #0369a1 55%, #020617);
}

.weather-cloudy {
  background:
    radial-gradient(circle at top, #1e293b, #020617 65%);
}

.weather-rain {
  background:
    radial-gradient(circle at top, #1d4ed8, #020617 65%);
}

.weather-storm {
  background:
    radial-gradient(circle at top, #4c1d95, #020617 65%);
}

.weather-snow {
  background:
    radial-gradient(circle at top, #93c5fd, #020617 65%);
}
.weather-fog {
  background:
    radial-gradient(circle at top, #6b7280, #020617 65%);
}

