/* =========================
   DARK MODE DASHBOARD CSS
   (replace your entire style1.css with this)
   ========================= */

   :root {
    --bg: #0b0f19;                 /* page background */
    --bg-alt: #0f172a;             /* subtle section bg */
    --card: #0f172a;               /* card base */
    --card-2: #020617;             /* card depth */
    --accent: #8b5cf6;             /* violet */
    --accent-soft: rgba(139, 92, 246, 0.16);
    --text: #e5e7eb;               /* main text */
    --muted: #9ca3af;              /* secondary text */
    --border: rgba(255, 255, 255, 0.08);
    --radius: 1.25rem;
  }
  
  * { box-sizing: border-box; }
  
  html, body { height: 100%; }
  
  body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
      Roboto, Helvetica, Arial, sans-serif;
    background: radial-gradient(1200px 800px at 20% 0%, rgba(139, 92, 246, 0.12), transparent 55%),
                radial-gradient(900px 600px at 90% 10%, rgba(34, 211, 238, 0.10), transparent 55%),
                var(--bg);
    color: var(--text);
    min-height: 100vh;
  }
  
  /* =========================
     HEADER
     ========================= */
  
  .page-header {
    padding: 1.5rem 1.5rem 0.75rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .page-header h1 {
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0;
  }
  
  .page-header .highlight {
    color: var(--accent);
  }
  
  .subtitle {
    margin-top: 0.6rem;
    font-size: 0.95rem;
    color: var(--muted);
    max-width: 820px;
    line-height: 1.5;
  }
  
  /* =========================
     MAIN LAYOUT
     ========================= */
  
  .page-main {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  
  /* =========================
     CARDS / SECTIONS
     ========================= */
  
  .card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.25rem 1.25rem 1.35rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
  }
  
  .card h2 {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
    font-weight: 650;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #f3f4f6;
  }
  
  .section-desc {
    font-size: 0.92rem;
    color: var(--muted);
    margin: 0 0 0.9rem;
    max-width: 900px;
    line-height: 1.55;
  }
  
  /* status text */
  .status-text {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0.35rem 0 0.75rem;
  }
  
  .status-text strong {
    color: var(--accent);
    font-weight: 650;
  }
  
  /* =========================
     GRID / PANELS
     ========================= */
  
  .grid-two {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .grid-two > * {
    flex: 1 1 320px;
    min-width: 0;
  }
  
  .side-panel {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
  }
  
  /* =========================
     CHART CONTAINERS
     ========================= */
  
  .chart-container {
    position: relative;     /* required for Chart.js responsiveness */
    width: 100%;
    height: 380px;          /* required so canvas isn't 0px tall */
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.06);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.55), rgba(2, 6, 23, 0.35));
    padding: 0.75rem;
    overflow: hidden;
  }
  
  .chart-container.narrow {
    height: 380px;
  }
  
  /* Canvas should fill container */
  canvas {
    width: 100% !important;
    height: 100% !important;
  }
  
  /* =========================
     IFRAME (Observable map)
     ========================= */
  
  iframe {
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
  }
  
  /* =========================
     OPTIONAL: CHIP STYLES (if you re-enable them)
     ========================= */
  
  .stat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.75rem;
  }
  
  .stat-chip {
    font-size: 0.82rem;
    color: var(--muted);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
  }
  
  /* =========================
     TABLE (if you use it later)
     ========================= */
  
  .table-wrapper {
    margin-top: 0.75rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    background: rgba(2, 6, 23, 0.45);
    max-height: 280px;
  }
  
  #expensiveDishesTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    color: var(--text);
  }
  
  #expensiveDishesTable th,
  #expensiveDishesTable td {
    padding: 0.5rem 0.7rem;
    text-align: left;
  }
  
  #expensiveDishesTable th {
    background: rgba(255,255,255,0.06);
    color: #f3f4f6;
    font-weight: 650;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  
  #expensiveDishesTable tbody tr:nth-child(odd) {
    background: rgba(255,255,255,0.02);
  }
  
  #expensiveDishesTable tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.04);
  }
  
  .price-cell {
    text-align: right;
    font-variant-numeric: tabular-nums;
  }
  
  /* subtle scrollbar */
  .table-wrapper::-webkit-scrollbar { width: 8px; }
  .table-wrapper::-webkit-scrollbar-track { background: transparent; }
  .table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.14);
    border-radius: 999px;
  }
  
  /* =========================
     RESPONSIVE
     ========================= */
  
  @media (max-width: 768px) {
    .page-header {
      padding: 1.2rem 1rem 0.4rem;
    }
  
    .page-main {
      padding: 0 1rem 1rem;
    }
  
    .card {
      padding: 1rem 1rem 1.1rem;
    }
  
    .chart-container,
    .chart-container.narrow {
      height: 320px;
      padding: 0.6rem;
    }
  }
  
  /* =========================
   MICRO SECTION: 2 x 2 GRID
   ========================= */

.grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
  }
  
  /* Make each chart box consistent height */
  .grid-2x2 .chart-container {
    height: 380px;
  }
  
  /* Stack on smaller screens */
  @media (max-width: 900px) {
    .grid-2x2 {
      grid-template-columns: 1fr;
    }
  
    .grid-2x2 .chart-container {
      height: 320px;
    }
  }
  