:root {
  --primary: #0B3D66;
  --secondary: #1B7A8C;
  --accent: #E8A33D;
  --bg: #F7F9FA;
  --text: #1A1D21;
  --card-bg: #FFFFFF;
  --border: #E1E5E8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ---------- Header / Nav ---------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: var(--primary);
  color: white;
  flex-wrap: wrap;
}

.logo {
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a {
  color: white;
  text-decoration: none;
  margin-left: 24px;
  font-size: 0.95rem;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  border-bottom: 2px solid var(--accent);
}

/* ---------- Page content ---------- */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

h1 { font-size: 1.8rem; margin-bottom: 4px; }
.subtitle { color: #555; margin-top: 0; margin-bottom: 24px; }

/* ---------- Chart grid ---------- */
.chart-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.chart-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  grid-column: span 12;              /* .full  = whole width */
}

.chart-card.half   { grid-column: span 6; }   /* two per row */
.chart-card.third  { grid-column: span 4; }   /* three per row */

.chart-card h3 {
  margin-top: 0;
  font-size: 1.05rem;
  color: var(--primary);
}

/* Make Plotly figures fill their card responsively */
.chart-card .plotly-graph-div {
  width: 100% !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .chart-card.half,
  .chart-card.third {
    grid-column: span 12;   /* stack everything on tablet/mobile */
  }
}

/* ---------- Placeholder ("dalam pengembangan") slots ---------- */
.placeholder-block {
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 32px 20px;
  text-align: center;
  color: #888;
  background: #FAFBFC;
}

.placeholder-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.placeholder-block p {
  margin: 0;
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  color: #666;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.site-footer .updated { font-size: 0.75rem; color: #999; }
