/* ============================================================
   PRISMA — Global Design System
   Dipakai bersama oleh semua halaman dashboard (prisma.html,
   pos-analytics.html, tracer-study.html, monitoring/*, dst).
   Jangan duplikasi style di sini ke dalam <style> per halaman —
   cukup link file ini, lalu override token via data-theme atau
   inline style="--accent:...".
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* ── Neutral palette ── */
  --white:       #ffffff;
  --off-white:   #f8f8f6;
  --surface:     #f2f2ef;
  --border:      #e4e4e0;
  --border-soft: #eeeeeb;
  --border-2:    #d4d4d0;
  --ink:         #111110;
  --ink-2:       #2c2c2a;
  --muted:       #6b6b67;
  --subtle:      #9c9c98;

  /* ── Status colors (tetap sama di semua tema) ── */
  --blue:        #1d4ed8;
  --blue-bg:     #eff6ff;
  --blue-border: #bfdbfe;
  --green:       #166534;
  --green-bg:    #f0fdf4;
  --green-border:#bbf7d0;
  --red:         #dc2626;
  --red-bg:      #fef2f2;
  --red-border:  #fecaca;
  --yellow:      #d97706;
  --yellow-bg:   #fffbeb;
  --yellow-border:#fed7aa;
  --indigo:      #4338ca;
  --indigo-bg:   #eef2ff;
  --indigo-border:#c7d2fe;

  /* ── Brand accent (DEFAULT — override lewat data-theme) ── */
  --accent:        var(--ink);
  --accent-2:      var(--ink-2);
  --accent-bg:     var(--surface);
  --accent-border: var(--border);

  /* ── Typography ── */
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* ── Radius & spacing ── */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* ── Layout ── */
  --max-width: 1160px;
  --page-pad: 48px;
}

/* ── Theme presets: tambahkan data-theme="..." di <body> ── */
body[data-theme="blue"]   { --accent: var(--blue);   --accent-2: #1e40af; --accent-bg: var(--blue-bg);   --accent-border: var(--blue-border); }
body[data-theme="green"]  { --accent: #059669;        --accent-2: #047857; --accent-bg: var(--green-bg);  --accent-border: var(--green-border); }
body[data-theme="indigo"] { --accent: var(--indigo);  --accent-2: #3730a3; --accent-border: var(--indigo-border); --accent-bg: var(--indigo-bg); }
body[data-theme="yellow"] { --accent: var(--yellow);  --accent-2: #b45309; --accent-bg: var(--yellow-bg); --accent-border: var(--yellow-border); }

/* ============================================================
   RESET & BASE
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--off-white);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--page-pad); }
.main      { max-width: var(--max-width); margin: 0 auto; padding: 40px var(--page-pad); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.grid-6 { display: grid; grid-template-columns: repeat(6,1fr); gap: 10px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.page-section { margin-bottom: 32px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--page-pad);
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
}
.navbar-content {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navbar-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-logo {
  width: 24px; height: 24px;
  background: var(--ink);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: white;
}
.brand-name { font-size: 13.5px; font-weight: 700; color: var(--ink); letter-spacing: 0.02em; }
.brand-sep  { color: var(--subtle); margin: 0 2px; font-size: 13px; }
.brand-page { font-size: 13px; color: var(--muted); font-weight: 500; }

.navbar-nav { display: flex; gap: 24px; }
.navbar-nav a {
  color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 500;
  transition: color 0.2s; padding: 4px 0;
}
.navbar-nav a:hover { color: var(--ink); }
.navbar-nav a.active { color: var(--ink); border-bottom: 2px solid var(--ink); padding-bottom: 2px; }

.btn-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  text-decoration: none; padding: 6px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: all 0.2s;
}
.btn-back:hover { color: var(--ink); background: var(--off-white); border-color: var(--border-2); }

/* ============================================================
   HERO
   ============================================================ */
.hero { background: var(--white); border-bottom: 1px solid var(--border); padding: 64px var(--page-pad) 56px; }
.hero-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--subtle); margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 18px;
}
.hero h1 em { font-style: italic; color: var(--muted); }
.hero-desc { font-size: 0.9375rem; color: var(--muted); line-height: 1.75; max-width: 520px; margin: 0 auto; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-band { background: var(--off-white); border-bottom: 1px solid var(--border); padding: 24px var(--page-pad); }
.stats-inner { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-inner.cols-6 { grid-template-columns: repeat(6, 1fr); }
.stat-item { padding: 0 28px; border-right: 1px solid var(--border); }
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { border-right: none; }
.stat-item.text-left { text-align: left; }
.stat-num {
  font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700;
  color: var(--ink); line-height: 1; margin-bottom: 5px;
}
.stat-label { font-size: 11px; color: var(--subtle); }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.section-head h2 { font-size: 13.5px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.icon-badge {
  width: 26px; height: 26px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.section-tag { font-size: 11px; font-weight: 600; color: var(--subtle); letter-spacing: 0.06em; text-transform: uppercase; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px 22px; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--border-2); box-shadow: 0 4px 16px rgba(0,0,0,0.05); transform: translateY(-1px); }
.card-label { font-size: 11px; font-weight: 600; color: var(--subtle); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.card-value { font-size: 1.75rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; line-height: 1; margin-bottom: 6px; }
.card-sub { font-size: 12px; color: var(--subtle); }
.card-change { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; margin-top: 4px; }
.card-change.up, .card-change.positive { color: var(--green); }
.card-change.down, .card-change.negative { color: var(--red); }
.card-change.warn, .card-change.warning { color: var(--yellow); }
.card-change.neutral { color: var(--subtle); }

.kpi-box {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 16px 18px; text-align: center; transition: border-color 0.2s, box-shadow 0.2s;
}
.kpi-box:hover { border-color: var(--border-2); box-shadow: 0 3px 12px rgba(0,0,0,0.04); }
.kpi-icon { font-size: 16px; margin-bottom: 8px; }
.kpi-label { font-size: 10.5px; font-weight: 600; color: var(--subtle); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 5px; }
.kpi-value { font-size: 1.3rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }

.mini-card { background: var(--off-white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; text-align: center; }
.mini-label { font-size: 10.5px; font-weight: 600; color: var(--subtle); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 5px; }
.mini-val { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.mini-val.green { color: var(--green); }
.mini-val.yellow { color: var(--yellow); }
.mini-val.red { color: var(--red); }

/* ============================================================
   PROGRESS / METER
   ============================================================ */
.progress-track { width: 100%; height: 5px; background: var(--surface); border-radius: 4px; overflow: hidden; margin-top: 14px; }
.progress-fill { height: 100%; border-radius: 4px; transition: width 0.6s ease; }
.progress-fill.green  { background: #22c55e; }
.progress-fill.yellow { background: #eab308; }
.progress-fill.red    { background: #ef4444; }
.progress-fill.blue   { background: #3b82f6; }
.progress-fill.ink    { background: var(--ink); }
.progress-fill.accent { background: var(--accent); }

.metric-row { display: flex; align-items: center; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--border-soft); }
.metric-row:last-child { border-bottom: none; }
.metric-label { flex: 1; font-size: 13px; color: var(--muted); }
.metric-bar { flex: 2; height: 5px; background: var(--surface); border-radius: 4px; overflow: hidden; }
.metric-val, .metric-value { font-size: 13px; font-weight: 600; color: var(--ink); width: 64px; text-align: right; }

/* ============================================================
   TABLE
   ============================================================ */
.table-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; padding: 10px 16px; font-size: 11px; font-weight: 700;
  color: var(--subtle); text-transform: uppercase; letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border); background: var(--off-white);
}
td { padding: 11px 16px; font-size: 13px; color: var(--ink); border-bottom: 1px solid var(--border-soft); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--off-white); }

/* ============================================================
   BADGES
   ============================================================ */
.badge { display: inline-block; font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 4px; }
.badge.green  { background: var(--green-bg);  color: var(--green);  border: 1px solid var(--green-border); }
.badge.yellow { background: var(--yellow-bg); color: var(--yellow); border: 1px solid var(--yellow-border); }
.badge.red    { background: var(--red-bg);    color: var(--red);    border: 1px solid var(--red-border); }
.badge.blue   { background: var(--blue-bg);   color: var(--blue);   border: 1px solid var(--blue-border); }
.badge.indigo { background: var(--indigo-bg); color: var(--indigo); border: 1px solid var(--indigo-border); }
.badge.neutral{ background: var(--surface);   color: var(--muted);  border: 1px solid var(--border); }
.badge.primary{ background: var(--ink); color: white; }

/* ============================================================
   TABS
   ============================================================ */
.tab-nav { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 18px; flex-wrap: wrap; }
.tab-btn {
  font-size: 12.5px; font-weight: 500; padding: 8px 16px; border: none; background: none;
  color: var(--muted); cursor: pointer; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-family: var(--font-sans); transition: color 0.2s, background 0.2s;
}
.tab-btn:hover { color: var(--ink); background: var(--off-white); }
.tab-btn.active { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--ink); margin-bottom: -1px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn 0.2s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   INSIGHT BOX
   ============================================================ */
.insight-box {
  background: var(--off-white); border: 1px solid var(--border); border-left: 3px solid var(--ink);
  border-radius: var(--radius-md); padding: 16px 18px; margin-top: 16px;
}
.insight-box h4 { font-size: 12.5px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.insight-box p { font-size: 12.5px; color: var(--muted); line-height: 1.65; }

/* ============================================================
   ALERT STRIP
   ============================================================ */
.alert-strip { background: var(--red-bg); border: 1px solid var(--red-border); border-radius: var(--radius-md); padding: 12px 16px; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.alert-strip .alert-icon { font-size: 14px; }
.alert-strip p { font-size: 12.5px; color: var(--red); font-weight: 500; }

/* ============================================================
   FORM CONTROLS (slider, select, button)
   ============================================================ */
input[type="range"] {
  width: 100%; height: 5px; background: var(--surface); border-radius: 4px;
  outline: none; -webkit-appearance: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px;
  background: var(--ink); border-radius: 50%; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

select {
  width: 100%; padding: 10px 14px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  color: var(--ink); font-size: 13px; font-weight: 500; font-family: var(--font-sans);
  outline: none; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239c9c98'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 14px;
  padding-right: 40px;
}
select:focus { border-color: var(--ink); }

.btn, .btn-run {
  display: inline-block; width: auto; padding: 10px 24px;
  background: var(--ink); color: white; border: none; border-radius: var(--radius-md);
  font-size: 13px; font-weight: 600; font-family: var(--font-sans);
  cursor: pointer; transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none; text-align: center;
}
.btn:hover, .btn-run:hover { background: var(--ink-2); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn:disabled, .btn-run:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn.full, .btn-run.full { width: 100%; }
.control-group .btn { width: 100%; }

.btn-secondary {
  display: inline-block; padding: 10px 24px; background: transparent; color: var(--ink);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  font-size: 13px; font-weight: 600; font-family: var(--font-sans);
  cursor: pointer; text-decoration: none; transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: var(--border-2); background: var(--off-white); }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section { text-align: center; background: var(--ink); border-radius: var(--radius-lg); padding: 56px var(--page-pad); margin-bottom: 24px; }
.cta-section h2 { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 700; margin-bottom: 14px; color: white; letter-spacing: -0.02em; }
.cta-section p { color: rgba(255,255,255,0.6); margin-bottom: 28px; max-width: 540px; margin-left: auto; margin-right: auto; font-size: 14px; line-height: 1.7; }
.btn-cta {
  display: inline-block; padding: 12px 32px; background: white; color: var(--ink);
  border: none; border-radius: var(--radius-md); font-size: 13.5px; font-weight: 700;
  font-family: var(--font-sans); cursor: pointer; transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}
.btn-cta:hover { background: var(--off-white); transform: translateY(-1px); }

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.loading-spinner {
  width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white; border-radius: 50%;
  animation: spin 0.8s linear infinite; display: inline-block; vertical-align: middle; margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--white); border-top: 1px solid var(--border); padding: 22px var(--page-pad); }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-brand { font-size: 12.5px; font-weight: 700; color: var(--subtle); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 12.5px; color: var(--subtle); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { font-size: 12px; color: var(--subtle); }

/* ============================================================
   LEGACY / COMPAT ALIASES
   Supaya halaman lama (prisma.html, monitoring/*) bisa migrasi ke
   global.css ini TANPA perlu mengubah markup HTML-nya. Halaman BARU
   sebaiknya pakai nama class kanonik di atas, bukan yang di bawah ini.
   ============================================================ */

/* monitoring/css/styles.css — nama variabel lama */
:root {
  --color-text-primary: var(--ink);
  --color-text-secondary: var(--muted);
  --color-text-tertiary: var(--subtle);
  --color-text-success: var(--green);
  --color-text-warning: var(--yellow);
  --color-text-danger: var(--red);
  --color-text-info: var(--blue);
  --color-background-primary: var(--white);
  --color-background-secondary: var(--off-white);
  --color-background-success: var(--green-bg);
  --color-background-warning: var(--yellow-bg);
  --color-background-danger: var(--red-bg);
  --color-border-tertiary: var(--border);
  --color-border-secondary: var(--border-2);
  --border-radius-md: var(--radius-md);
  --border-radius-lg: var(--radius-lg);
}

/* prisma.html — topbar (alias .navbar) */
.topbar { background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 0 var(--page-pad); height: 60px; position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; justify-content: space-between; }
.topbar-brand { display: flex; align-items: center; gap: 10px; }
.topbar-logo { width: 28px; height: 28px; background: var(--ink); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: white; }
.topbar-name { font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: 0.08em; }
.topbar-sep { color: var(--border); margin: 0 2px; font-size: 18px; font-weight: 300; }
.topbar-page { font-size: 13px; color: var(--muted); font-weight: 500; }
.topbar-back { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 6px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); transition: all 0.2s; }
.topbar-back:hover { color: var(--ink); border-color: var(--border-2); background: var(--off-white); }

/* prisma.html — page-header (alias .hero versi center) */
.page-header { background: var(--white); border-bottom: 1px solid var(--border); padding: 56px var(--page-pad) 48px; text-align: center; }
.header-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--subtle); margin-bottom: 20px; }
.header-eyebrow::before, .header-eyebrow::after { content: ''; display: block; width: 24px; height: 1px; background: var(--border); }
.page-header h1 { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); margin-bottom: 14px; }
.page-header .subtitle { font-size: 1rem; color: var(--muted); font-weight: 400; max-width: 520px; margin: 0 auto; line-height: 1.7; }
.content-wrap { padding: 32px 0 16px; }

/* prisma.html — .section (alias gabungan page-section + card) */
.section { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 32px; margin-bottom: 12px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--border-soft); flex-wrap: wrap; gap: 10px; }
.section-title { display: flex; align-items: center; gap: 12px; }
.section-icon { width: 36px; height: 36px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.section-header h2 { font-size: 1.05rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.section-meta { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--subtle); text-transform: uppercase; background: var(--surface); border: 1px solid var(--border); padding: 3px 10px; border-radius: var(--radius-sm); }

/* prisma.html — grid auto-fit (beda dari grid-2/3/4/6 yang fixed-column) */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 16px; }
.grid.grid-2 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.grid.grid-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* prisma.html — simulator controls */
.control-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 20px; }
.control-label { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.control-value { color: var(--ink); font-weight: 700; }

/* prisma.html — progress 3-level + status modifiers */
.progress-container { margin-top: 14px; }
.progress-bar { width: 100%; height: 4px; background: var(--surface); border-radius: 100px; overflow: hidden; }
.progress-bar .progress-fill { border-radius: 100px; }
.progress-fill.success { background: #059669; }
.progress-fill.warning { background: #d97706; }
.progress-fill.danger  { background: #dc2626; }
.progress-fill.default { background: var(--ink); }

/* prisma.html — tabs (alias .tab-nav) & tab-content (alias .tab-pane) */
.tabs { display: flex; gap: 2px; margin-bottom: 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.2s ease; }

/* monitoring/dashboard.html — top-bar dengan tombol aksi */
.top-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.top-bar h1 { font-size: 1.1rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.top-bar .meta { font-size: 12px; color: var(--subtle); margin-top: 2px; }
.top-bar button { background: var(--white); border: 1px solid var(--border); padding: 6px 14px; border-radius: var(--radius-md); cursor: pointer; font-size: 12px; font-family: var(--font-sans); color: var(--muted); transition: all 0.2s; }
.top-bar button:hover { background: var(--off-white); border-color: var(--border-2); color: var(--ink); }

/* monitoring/dashboard.html — tombol tab tunggal (.tab, beda dari .tab-btn) */
.tab { font-size: 13px; padding: 8px 16px; cursor: pointer; border-radius: 6px 6px 0 0; color: var(--muted); border: none; background: none; font-family: var(--font-sans); font-weight: 500; transition: all 0.2s; }
.tab:hover { background: var(--off-white); color: var(--ink); }
.tab.active { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--ink); margin-bottom: -1px; background: transparent; }

/* monitoring/dashboard.html — KPI grid dgn status modifier */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.kpi { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 18px; }
.kpi .label { font-size: 11.5px; color: var(--subtle); margin-bottom: 6px; font-weight: 500; }
.kpi .value { font-size: 1.5rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; line-height: 1; }
.kpi .sub { font-size: 11px; color: var(--subtle); margin-top: 4px; }
.kpi.warn .value { color: var(--yellow); }
.kpi.danger .value { color: var(--red); }
.kpi.ok .value { color: var(--green); }

/* monitoring/dashboard.html — tabel tanpa wrapper */
.surveyor-table, .detail-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.surveyor-table th, .detail-table th { text-align: left; padding: 6px 8px; font-weight: 600; font-size: 11px; color: var(--subtle); border-bottom: 1px solid var(--border); text-transform: uppercase; letter-spacing: 0.06em; }
.surveyor-table td, .detail-table td { padding: 8px 8px; color: var(--ink); border-bottom: 1px solid var(--border-soft); font-size: 12.5px; }
.surveyor-table tr:last-child td, .detail-table tr:last-child td { border-bottom: none; }
.surveyor-table tr:hover td, .detail-table tr:hover td { background: var(--off-white); }

/* monitoring/dashboard.html — bar charts */
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.bar-label { font-size: 12px; color: var(--muted); width: 96px; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { flex: 1; height: 6px; background: var(--surface); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; transition: width 0.3s ease; }
.bar-fill.red { background: #E24B4A; }
.bar-fill.amber { background: #d97706; }
.bar-fill.teal { background: #059669; }
.bar-val { font-size: 12px; color: var(--muted); width: 34px; text-align: right; font-weight: 500; }

/* monitoring/dashboard.html — flag list */
.flag-list { display: flex; flex-direction: column; gap: 8px; }
.flag-item { display: flex; justify-content: space-between; align-items: center; }
.flag-name { font-size: 12.5px; color: var(--ink); }
.flag-count { font-size: 12.5px; font-weight: 600; color: var(--muted); }

/* monitoring/dashboard.html — section row + see-all */
.section-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.see-all { font-size: 12px; color: var(--blue); cursor: pointer; transition: color 0.2s; font-weight: 500; }
.see-all:hover { color: #1e40af; }

/* monitoring/dashboard.html — profile grid */
.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.profile-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; text-align: center; cursor: pointer; transition: all 0.2s; }
.profile-card:hover { border-color: var(--border-2); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.profile-card .p-name { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.06em; }
.profile-card .p-count { font-size: 1.6rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.profile-card .p-pct { font-size: 11px; color: var(--subtle); margin-top: 4px; }
.p-count.valid  { color: #059669; }
.p-count.review { color: #d97706; }
.p-count.drop   { color: #dc2626; }

/* monitoring/dashboard.html — score chips */
.score-chip { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.score-chip.high { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
.score-chip.mid { background: var(--yellow-bg); color: var(--yellow); border: 1px solid var(--yellow-border); }
.score-chip.low { background: var(--red-bg); color: var(--red); border: 1px solid var(--red-border); }

/* monitoring/dashboard.html — fraud meter */
.fraud-meter { margin-bottom: 20px; }
.meter-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.meter-name { font-size: 12.5px; color: var(--ink); width: 144px; flex-shrink: 0; }
.meter-track { flex: 1; height: 6px; background: var(--surface); border-radius: 4px; overflow: hidden; }
.meter-fill { height: 100%; border-radius: 4px; transition: width 0.4s ease; }
.meter-fill.low-risk  { background: #059669; }
.meter-fill.mid-risk  { background: #d97706; }
.meter-fill.high-risk { background: #dc2626; }
.meter-pct { font-size: 12px; font-weight: 600; width: 38px; text-align: right; }
.meter-pct.low-risk  { color: #059669; }
.meter-pct.mid-risk  { color: #d97706; }
.meter-pct.high-risk { color: #dc2626; }

/* monitoring/index.html — marketing features grid (alias grid-3 + card) */
.features { background: var(--white); border-bottom: 1px solid var(--border); padding: 72px var(--page-pad); }
.features-inner { max-width: var(--max-width); margin: 0 auto; }
.section-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--subtle); margin-bottom: 10px; }
.features h2 { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 48px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { padding: 28px 28px; border-radius: var(--radius-lg); background: var(--off-white); border: 1px solid var(--border); transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s; }
.feature-card:hover { background: var(--white); border-color: var(--border-2); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.feature-icon { width: 36px; height: 36px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 16px; margin-bottom: 16px; }
.feature-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 10px; color: var(--ink); letter-spacing: -0.01em; }
.feature-card p { color: var(--muted); line-height: 1.65; font-size: 13.5px; }

/* btn-primary/btn-secondary nama lengkap (dipakai monitoring/index.html) */
.btn-primary { display: inline-block; background: var(--ink); color: white; padding: 10px 24px; border-radius: var(--radius-md); text-decoration: none; font-size: 13.5px; font-weight: 600; letter-spacing: 0.01em; transition: background 0.2s, transform 0.2s, box-shadow 0.2s; border: none; cursor: pointer; font-family: var(--font-sans); }
.btn-primary:hover { background: var(--ink-2); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.cta-section .btn-primary { background: white; color: var(--ink); }
.cta-section .btn-primary:hover { background: var(--off-white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .navbar, .hero, .stats-band, .main, .site-footer, .topbar, .page-header, .features, .top-bar { padding-left: 24px; padding-right: 24px; }
  .stats-inner { grid-template-columns: repeat(2,1fr); gap: 20px; }
  .stat-item { border-right: none; padding: 0; }
  .two-col { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(3,1fr); }
  .navbar-nav { gap: 16px; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .grid, .grid.grid-2, .grid.grid-3 { grid-template-columns: 1fr; }
  .control-group { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .grid-4, .grid-6, .kpi-grid { grid-template-columns: 1fr; }
  .navbar-content { flex-direction: column; gap: 10px; padding: 10px 0; height: auto; }
  .hero h1 { font-size: 1.75rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}
