/* =========================================================
   OPTIMA-HUB TALENTA — style.css
   Design tokens: Navy (profesionalisme & transportasi),
   Putih (keterbacaan), Emas & Hijau (indikator keberhasilan).
   Tipografi: Poppins (heading) + Inter (body).
   ========================================================= */

:root{
  --navy-900:#0B2340;
  --navy-800:#0F2C4E;
  --navy-700:#123A6B;
  --navy-600:#1B4A83;
  --navy-500:#2A5D9E;
  --gold:#C9A227;
  --gold-soft:#F4E7C1;
  --green:#2E7D32;
  --green-soft:#E4F3E5;
  --red:#B3261E;
  --red-soft:#FBE7E5;
  --amber:#946200;
  --amber-soft:#FBF0D8;

  --bg:#F4F6FA;
  --surface:#FFFFFF;
  --surface-alt:#F8FAFD;
  --border:#E3E8F0;
  --text-900:#0E1D33;
  --text-700:#33455E;
  --text-500:#66748C;
  --text-400:#8B97AC;

  --radius-lg:20px;
  --radius-md:16px;
  --radius-sm:10px;
  --shadow-soft:0 10px 30px rgba(11,35,64,.08);
  --shadow-pop:0 16px 40px rgba(11,35,64,.14);

  --font-head:'Poppins', 'Segoe UI', sans-serif;
  --font-body:'Inter', 'Segoe UI', sans-serif;

  --sidebar-w:264px;
}

*,*::before,*::after{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  font-family:var(--font-body);
  background:var(--bg);
  color:var(--text-900);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
h1,h2,h3,h4{font-family:var(--font-head);margin:0;color:var(--navy-900);}
p{margin:0;}
button{font-family:inherit;}
a{color:inherit;}
.hidden{display:none !important;}
input:focus-visible,button:focus-visible,select:focus-visible,a:focus-visible{
  outline:3px solid var(--gold);
  outline-offset:2px;
}
@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms !important; transition-duration:.001ms !important;}
}

/* ---------- shared buttons / fields ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:13px 20px;border-radius:var(--radius-sm);border:none;
  font-weight:600;font-size:14.5px;cursor:pointer;transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
  min-height:48px;
}
.btn:active{transform:scale(.98);}
.btn-primary{background:var(--navy-700);color:#fff;box-shadow:0 8px 20px rgba(18,58,107,.28);}
.btn-primary:hover{background:var(--navy-600);}
.btn-secondary{background:var(--surface);color:var(--navy-700);border:1.5px solid var(--border);}
.btn-secondary:hover{border-color:var(--navy-500);}
.btn-block{width:100%;}
.btn-back{
  background:none;border:none;color:var(--navy-700);font-weight:600;font-size:14px;
  cursor:pointer;padding:8px 0;margin-bottom:14px;display:inline-flex;align-items:center;gap:6px;
}

.field-label{display:block;font-size:13px;font-weight:600;color:var(--text-700);margin:14px 0 6px;}
.field-input{
  width:100%;padding:13px 15px;border-radius:var(--radius-sm);border:1.5px solid var(--border);
  font-size:15px;font-family:var(--font-body);background:var(--surface-alt);color:var(--text-900);
  min-height:48px;transition:border-color .15s ease, background .15s ease;
}
.field-input:focus{border-color:var(--navy-500);background:#fff;outline:none;}
.field-select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366748C' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:16px;padding-right:40px;}

/* =========================================================
   LOGIN SCREEN
   ========================================================= */
.login-screen{
  min-height:100vh;min-height:100dvh;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 55%, #1B4A83 100%);
  padding:24px;position:relative;overflow:hidden;
}
.login-bg-pattern{
  position:absolute;inset:0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(201,162,39,.18) 0, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(255,255,255,.08) 0, transparent 45%);
  pointer-events:none;
}
.login-card{
  position:relative;width:100%;max-width:420px;background:var(--surface);
  border-radius:24px;padding:32px 28px 28px;box-shadow:var(--shadow-pop);
}
.login-brand{display:flex;align-items:center;gap:12px;margin-bottom:22px;}
.brand-mark{
  width:44px;height:44px;border-radius:12px;background:var(--navy-800);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.brand-name{font-family:var(--font-head);font-weight:800;font-size:15px;color:var(--navy-900);letter-spacing:.2px;}
.brand-sub{font-size:11.5px;color:var(--text-500);margin-top:2px;}
.login-title{font-size:24px;font-weight:700;}
.login-desc{color:var(--text-500);font-size:14px;margin-top:8px;line-height:1.55;}
.login-form{margin-top:10px;}
.login-error{
  background:var(--red-soft);color:var(--red);font-size:13px;padding:10px 12px;
  border-radius:var(--radius-sm);margin-top:14px;line-height:1.4;
}
.login-form .btn{margin-top:20px;}
.login-demo{margin-top:26px;padding-top:20px;border-top:1px solid var(--border);}
.login-demo-label{font-size:12.5px;color:var(--text-500);font-weight:600;margin-bottom:10px;}
.demo-grid{display:flex;flex-wrap:wrap;gap:8px;}
.demo-chip{
  padding:9px 14px;border-radius:999px;border:1.5px solid var(--border);background:var(--surface-alt);
  font-size:12.5px;font-weight:600;color:var(--navy-700);cursor:pointer;transition:all .15s ease;
}
.demo-chip:hover{background:var(--navy-700);color:#fff;border-color:var(--navy-700);}
.login-hint{font-size:12px;color:var(--text-500);line-height:1.6;margin-top:12px;}

/* =========================================================
   APP SHELL
   ========================================================= */
.app{display:flex;min-height:100vh;min-height:100dvh;}

.sidebar{
  width:var(--sidebar-w);flex-shrink:0;background:var(--navy-900);
  display:flex;flex-direction:column;position:fixed;top:0;left:0;bottom:0;z-index:60;
  transform:translateX(-100%);transition:transform .25s ease;
}
.sidebar.open{transform:translateX(0);}
.sidebar-brand{display:flex;align-items:center;gap:10px;padding:22px 22px 18px;}
.sidebar-brand-name{font-family:var(--font-head);color:#fff;font-weight:800;font-size:14.5px;letter-spacing:.4px;}
.sidebar-brand-sub{font-family:var(--font-head);color:var(--gold);font-weight:700;font-size:11.5px;letter-spacing:1.5px;margin-top:1px;}
.sidebar-nav{flex:1;overflow-y:auto;padding:8px 12px;}
.nav-item{
  display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:12px;
  color:rgba(255,255,255,.68);text-decoration:none;font-size:14px;font-weight:500;
  cursor:pointer;margin-bottom:2px;transition:background .15s ease, color .15s ease;border:none;background:none;width:100%;text-align:left;
}
.nav-item svg{flex-shrink:0;opacity:.85;}
.nav-item:hover{background:rgba(255,255,255,.06);color:#fff;}
.nav-item.active{background:var(--navy-700);color:#fff;box-shadow:inset 3px 0 0 var(--gold);}
.sidebar-footer{padding:16px;border-top:1px solid rgba(255,255,255,.08);}
.sidebar-user{color:#fff;font-size:13px;margin-bottom:12px;}
.sidebar-user strong{display:block;font-size:14px;}
.sidebar-user span{color:rgba(255,255,255,.55);font-size:12px;}
.btn-logout{
  display:flex;align-items:center;gap:8px;width:100%;padding:11px 12px;border-radius:10px;
  background:rgba(255,255,255,.06);color:#fff;border:none;font-size:13px;font-weight:600;cursor:pointer;
}
.btn-logout:hover{background:rgba(255,255,255,.12);}

.sidebar-overlay{
  position:fixed;inset:0;background:rgba(10,20,40,.5);z-index:50;
  opacity:0;pointer-events:none;transition:opacity .2s ease;
}
.sidebar-overlay.show{opacity:1;pointer-events:auto;}

.main-wrap{flex:1;min-width:0;display:flex;flex-direction:column;}

.topbar{
  position:sticky;top:0;z-index:30;background:rgba(244,246,250,.92);backdrop-filter:blur(8px);
  display:flex;align-items:center;gap:14px;padding:14px 18px;border-bottom:1px solid var(--border);
}
.btn-hamburger{
  background:var(--surface);border:1px solid var(--border);border-radius:10px;width:42px;height:42px;
  display:flex;align-items:center;justify-content:center;color:var(--navy-800);cursor:pointer;flex-shrink:0;
}
.topbar-title{flex:1;min-width:0;}
.topbar-title h1{font-size:17px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.topbar-title p{font-size:12px;color:var(--text-500);margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.role-badge{
  background:var(--gold-soft);color:var(--amber);font-size:11.5px;font-weight:700;
  padding:7px 12px;border-radius:999px;white-space:nowrap;
}

.content{padding:18px 16px 100px;max-width:1200px;width:100%;margin:0 auto;}
.page{animation:fadeIn .25s ease;}
@keyframes fadeIn{from{opacity:0;transform:translateY(6px);}to{opacity:1;transform:translateY(0);}}

/* =========================================================
   CARDS / GRIDS
   ========================================================= */
.card-grid{display:grid;grid-template-columns:1fr;gap:12px;margin-bottom:16px;}
.card-grid-3{grid-template-columns:1fr;}
@media (min-width:640px){
  .card-grid{grid-template-columns:repeat(2,1fr);}
}
@media (min-width:1000px){
  .card-grid{grid-template-columns:repeat(4,1fr);}
  .card-grid-3{grid-template-columns:repeat(3,1fr);}
}

.stat-card{
  background:var(--surface);border-radius:var(--radius-md);padding:18px;box-shadow:var(--shadow-soft);
  border:1px solid var(--border);position:relative;overflow:hidden;
}
.stat-card::before{
  content:"";position:absolute;top:0;left:0;width:4px;height:100%;background:var(--navy-600);
}
.stat-card.accent-gold::before{background:var(--gold);}
.stat-card.accent-green::before{background:var(--green);}
.stat-card.accent-red::before{background:var(--red);}
.stat-card-label{font-size:12.5px;color:var(--text-500);font-weight:600;margin-bottom:6px;}
.stat-card-value{font-family:var(--font-head);font-size:26px;font-weight:800;color:var(--navy-900);}
.stat-card-note{font-size:11.5px;color:var(--text-400);margin-top:6px;}

.grid-2col{display:grid;grid-template-columns:1fr;gap:16px;margin-bottom:16px;}
@media (min-width:900px){.grid-2col{grid-template-columns:1fr 1fr;}}

.panel{
  background:var(--surface);border-radius:var(--radius-lg);padding:20px;box-shadow:var(--shadow-soft);
  border:1px solid var(--border);margin-bottom:16px;
}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px;flex-wrap:wrap;}
.panel-head h2{font-size:16px;font-weight:700;}
.panel-tag{background:var(--surface-alt);color:var(--text-500);font-size:11.5px;font-weight:600;padding:5px 10px;border-radius:999px;}
.panel-desc{font-size:13px;color:var(--text-500);margin-bottom:14px;line-height:1.5;}

/* =========================================================
   GAUGE (signature element — Talent Readiness Index)
   ========================================================= */
.gauge-wrap{display:flex;flex-direction:column;align-items:center;gap:10px;padding:6px 0;}
.gauge-svg{display:block;}
.gauge-score{font-family:var(--font-head);font-weight:800;font-size:15px;fill:var(--navy-900);}
.gauge-label{font-size:11px;fill:var(--text-500);}
.gauge-caption{font-weight:700;font-size:13px;padding:6px 14px;border-radius:999px;}
.tri-strategis{color:var(--green);background:var(--green-soft);}
.tri-operasional{color:var(--navy-700);background:#E5EEF9;}
.tri-penguatan{color:var(--amber);background:var(--amber-soft);}
.tri-intervensi{color:var(--red);background:var(--red-soft);}

/* =========================================================
   BAR CHART (lightweight, no external lib)
   ========================================================= */
.bar-chart{display:flex;flex-direction:column;gap:12px;}
.bar-row{display:grid;grid-template-columns:100px 1fr 46px;align-items:center;gap:10px;}
.bar-row-label{font-size:12.5px;color:var(--text-700);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.bar-track{height:12px;background:var(--surface-alt);border-radius:999px;overflow:hidden;}
.bar-fill{height:100%;border-radius:999px;background:linear-gradient(90deg, var(--navy-600), var(--navy-700));transition:width .6s ease;}
.bar-value{font-size:12px;color:var(--text-500);text-align:right;font-weight:600;}

.bar-chart-compare .bar-track{height:10px;margin-bottom:4px;}
.bar-compare-item{margin-bottom:14px;}
.bar-compare-item .bar-row-label{grid-column:1 / -1;margin-bottom:6px;}

/* ranked list */
.ranked-list{display:flex;flex-direction:column;gap:10px;}
.ranked-item{
  display:flex;align-items:center;gap:12px;padding:12px;border-radius:var(--radius-sm);background:var(--surface-alt);
}
.ranked-rank{
  width:28px;height:28px;border-radius:8px;background:var(--navy-700);color:#fff;font-weight:700;font-size:12.5px;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.ranked-body{flex:1;min-width:0;}
.ranked-title{font-size:13.5px;font-weight:600;color:var(--text-900);}
.ranked-sub{font-size:11.5px;color:var(--text-500);margin-top:2px;}
.ranked-badge{font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px;flex-shrink:0;}

/* notif list */
.notif-list{display:flex;flex-direction:column;gap:10px;}
.notif-item{display:flex;gap:12px;padding:13px;border-radius:var(--radius-sm);background:var(--surface-alt);border-left:3px solid var(--navy-600);}
.notif-item.severity-high{border-left-color:var(--red);}
.notif-item.severity-mid{border-left-color:var(--gold);}
.notif-text{font-size:13px;color:var(--text-700);line-height:1.5;}
.notif-text strong{color:var(--text-900);}

/* =========================================================
   INTEGRASI DATA
   ========================================================= */
.integrasi-grid{display:grid;grid-template-columns:1fr;gap:10px;}
@media (min-width:640px){.integrasi-grid{grid-template-columns:1fr 1fr;}}
.integrasi-item{
  display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 14px;
  border-radius:var(--radius-sm);background:var(--surface-alt);border:1px solid var(--border);
}
.integrasi-name{font-size:13px;font-weight:600;color:var(--text-900);}
.status-pill{font-size:11px;font-weight:700;padding:5px 10px;border-radius:999px;white-space:nowrap;}
.status-belum{background:var(--red-soft);color:var(--red);}
.status-proses{background:var(--amber-soft);color:var(--amber);}
.status-sebagian{background:#E5EEF9;color:var(--navy-700);}
.status-penuh{background:var(--green-soft);color:var(--green);}

.upload-box{
  border:2px dashed var(--border);border-radius:var(--radius-md);padding:32px 18px;text-align:center;
  background:var(--surface-alt);margin:16px 0;cursor:pointer;transition:border-color .15s ease;
}
.upload-box:hover, .upload-box.dragover{border-color:var(--navy-500);}
.upload-box svg{margin-bottom:10px;}
.upload-box p{font-size:13.5px;color:var(--text-500);margin-bottom:14px;}

.empty-state{
  text-align:center;padding:28px 16px;color:var(--text-500);font-size:13.5px;background:var(--surface-alt);
  border-radius:var(--radius-sm);line-height:1.6;
}
.upload-summary{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px;}
.upload-summary span{background:var(--green-soft);color:var(--green);font-size:12px;font-weight:700;padding:6px 12px;border-radius:999px;}

/* =========================================================
   TABLES
   ========================================================= */
.table-wrap{overflow-x:auto;border-radius:var(--radius-sm);border:1px solid var(--border);}
.data-table{width:100%;border-collapse:collapse;font-size:13px;min-width:560px;}
.data-table th{
  background:var(--navy-900);color:#fff;text-align:left;padding:12px 14px;font-weight:600;font-size:12px;
  position:sticky;top:0;white-space:nowrap;
}
.data-table td{padding:11px 14px;border-bottom:1px solid var(--border);color:var(--text-700);white-space:nowrap;}
.data-table tr:last-child td{border-bottom:none;}
.data-table tr:hover td{background:var(--surface-alt);}
.search-row{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px;}
.search-row .field-input{flex:1;min-width:180px;margin:0;}
.table-action-btn{
  background:var(--navy-700);color:#fff;border:none;padding:7px 13px;border-radius:8px;
  font-size:12px;font-weight:600;cursor:pointer;
}
.mini-badge{font-size:11px;font-weight:700;padding:4px 9px;border-radius:999px;}

/* =========================================================
   ANALISIS KOMPETENSI
   ========================================================= */
.gap-summary-row{display:grid;grid-template-columns:1fr;gap:10px;margin-bottom:18px;}
@media (min-width:640px){.gap-summary-row{grid-template-columns:repeat(3,1fr);}}
.gap-summary-box{background:var(--surface-alt);border-radius:var(--radius-sm);padding:14px;text-align:center;}
.gap-summary-box .num{font-family:var(--font-head);font-size:22px;font-weight:800;color:var(--navy-900);}
.gap-summary-box .lbl{font-size:11.5px;color:var(--text-500);margin-top:4px;}

.gap-item{
  border:1px solid var(--border);border-radius:var(--radius-sm);padding:14px;margin-bottom:10px;background:var(--surface-alt);
}
.gap-item-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;flex-wrap:wrap;}
.gap-item-name{font-size:13.5px;font-weight:700;color:var(--text-900);}
.gap-badge{font-size:11px;font-weight:700;padding:4px 10px;border-radius:999px;}
.gap-terpenuhi{background:var(--green-soft);color:var(--green);}
.gap-rendah{background:#E5EEF9;color:var(--navy-700);}
.gap-sedang{background:var(--amber-soft);color:var(--amber);}
.gap-tinggi, .gap-kritikal{background:var(--red-soft);color:var(--red);}
.gap-item-rec{font-size:12.5px;color:var(--text-600);margin-top:6px;}
.gap-item-rec strong{color:var(--text-900);}

.risk-note{
  background:var(--red-soft);color:var(--red);padding:13px 14px;border-radius:var(--radius-sm);
  font-size:13px;line-height:1.5;margin-top:14px;
}
.risk-note.low{background:var(--green-soft);color:var(--green);}

.disclaimer-box{
  display:flex;gap:10px;background:var(--amber-soft);border-radius:var(--radius-sm);padding:13px 14px;
  margin-top:6px;align-items:flex-start;
}
.disclaimer-box svg{flex-shrink:0;margin-top:2px;}
.disclaimer-box p{font-size:12.5px;color:var(--amber);line-height:1.5;}

/* =========================================================
   REKOMENDASI PELATIHAN
   ========================================================= */
.rekomendasi-list{display:flex;flex-direction:column;gap:10px;}
.rekomendasi-card{
  border:1px solid var(--border);border-radius:var(--radius-sm);padding:14px;background:var(--surface-alt);
}
.rekomendasi-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:8px;}
.rekomendasi-name{font-weight:700;font-size:13.5px;}
.priority-badge{font-size:11px;font-weight:700;padding:4px 10px;border-radius:999px;white-space:nowrap;}
.priority-1{background:var(--red-soft);color:var(--red);}
.priority-2{background:var(--amber-soft);color:var(--amber);}
.priority-3{background:#E5EEF9;color:var(--navy-700);}
.rekomendasi-training{font-size:13px;color:var(--text-700);margin-bottom:4px;}
.rekomendasi-reason{font-size:12px;color:var(--text-500);}

/* =========================================================
   TALENT PASSPORT
   ========================================================= */
.passport-grid{display:grid;grid-template-columns:1fr;gap:12px;}
@media (min-width:640px){.passport-grid{grid-template-columns:repeat(2,1fr);}}
@media (min-width:1000px){.passport-grid{grid-template-columns:repeat(3,1fr);}}

.passport-card{
  border:1px solid var(--border);border-radius:var(--radius-md);padding:16px;background:var(--surface-alt);
  cursor:pointer;transition:box-shadow .15s ease, transform .15s ease;
}
.passport-card:hover{box-shadow:var(--shadow-soft);transform:translateY(-2px);}
.passport-card-top{display:flex;align-items:center;gap:12px;margin-bottom:10px;}
.avatar-circle{
  width:44px;height:44px;border-radius:50%;background:var(--navy-700);color:#fff;font-weight:700;font-size:15px;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.passport-name{font-weight:700;font-size:13.5px;color:var(--text-900);}
.passport-jabatan{font-size:11.5px;color:var(--text-500);margin-top:2px;}
.passport-meta{display:flex;justify-content:space-between;align-items:center;margin-top:10px;}
.passport-nip{font-size:11.5px;color:var(--text-400);}

.passport-detail-head{display:flex;flex-wrap:wrap;gap:20px;align-items:center;margin-bottom:20px;}
.avatar-circle-lg{
  width:76px;height:76px;border-radius:50%;background:var(--navy-700);color:#fff;font-weight:700;font-size:26px;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.passport-detail-name{font-size:19px;font-weight:800;}
.passport-detail-jabatan{font-size:13.5px;color:var(--text-500);margin-top:3px;}
.passport-detail-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px;}
.tag-pill{font-size:11px;font-weight:600;padding:4px 10px;border-radius:999px;background:#E5EEF9;color:var(--navy-700);}

.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:18px;}
@media (min-width:640px){.info-grid{grid-template-columns:repeat(4,1fr);}}
.info-box{background:var(--surface-alt);border-radius:var(--radius-sm);padding:12px;}
.info-box-label{font-size:11px;color:var(--text-500);margin-bottom:4px;}
.info-box-value{font-size:13px;font-weight:700;color:var(--text-900);}

.qr-box{
  width:110px;height:110px;background:var(--surface-alt);border-radius:var(--radius-sm);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;border:1px dashed var(--border);
}

.section-subtitle{font-size:13.5px;font-weight:700;color:var(--navy-900);margin:18px 0 10px;}
.pill-list{display:flex;flex-wrap:wrap;gap:8px;}
.pill{font-size:12px;padding:6px 12px;border-radius:999px;background:var(--surface-alt);border:1px solid var(--border);color:var(--text-700);}

/* =========================================================
   CHATBOT — TALENTA Assistant
   ========================================================= */
.chatbot-wrap{position:fixed;right:18px;bottom:88px;z-index:80;}
.chatbot-fab{
  width:56px;height:56px;border-radius:50%;background:var(--navy-700);border:none;cursor:pointer;
  display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-pop);position:relative;
}
.chatbot-fab-badge{
  position:absolute;top:-4px;right:-4px;background:var(--gold);color:var(--navy-900);font-size:9.5px;
  font-weight:800;padding:2px 5px;border-radius:6px;
}
.chatbot-panel{
  position:fixed;right:18px;bottom:156px;width:min(360px, calc(100vw - 36px));height:min(520px, calc(100dvh - 220px));
  background:var(--surface);border-radius:20px;box-shadow:var(--shadow-pop);display:flex;flex-direction:column;
  overflow:hidden;border:1px solid var(--border);z-index:81;
}
.chatbot-header{
  background:var(--navy-900);padding:14px 16px;display:flex;align-items:center;justify-content:space-between;
}
.chatbot-title{color:#fff;font-weight:700;font-size:14px;}
.chatbot-status{color:rgba(255,255,255,.65);font-size:11px;margin-top:2px;display:flex;align-items:center;gap:5px;}
.dot-online{width:6px;height:6px;border-radius:50%;background:#4ADE80;display:inline-block;}
.chatbot-close{background:none;border:none;color:#fff;font-size:22px;cursor:pointer;line-height:1;}
.chatbot-messages{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px;background:var(--surface-alt);}
.msg{max-width:82%;padding:10px 13px;border-radius:14px;font-size:13px;line-height:1.5;}
.msg-bot{background:#fff;color:var(--text-700);align-self:flex-start;border-bottom-left-radius:4px;box-shadow:0 2px 8px rgba(0,0,0,.04);}
.msg-user{background:var(--navy-700);color:#fff;align-self:flex-end;border-bottom-right-radius:4px;}
.chatbot-suggestions{display:flex;gap:6px;padding:0 12px 10px;overflow-x:auto;flex-shrink:0;}
.suggestion-chip{
  white-space:nowrap;font-size:11.5px;padding:7px 12px;border-radius:999px;background:var(--surface-alt);
  border:1px solid var(--border);color:var(--navy-700);cursor:pointer;flex-shrink:0;
}
.chatbot-input-row{display:flex;gap:8px;padding:12px;border-top:1px solid var(--border);background:#fff;flex-shrink:0;}
.chatbot-input-row input{
  flex:1;border:1.5px solid var(--border);border-radius:12px;padding:11px 13px;font-size:13.5px;font-family:inherit;background:var(--surface-alt);
}
.chatbot-input-row input:focus{outline:none;border-color:var(--navy-500);background:#fff;}
.chatbot-send{
  width:42px;height:42px;border-radius:12px;background:var(--navy-700);border:none;display:flex;
  align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;
}

/* =========================================================
   WHATSAPP FAB
   ========================================================= */
.fab-whatsapp{
  position:fixed;left:18px;bottom:18px;width:56px;height:56px;border-radius:50%;background:#25D366;
  display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-pop);z-index:80;text-decoration:none;
}

/* =========================================================
   MILESTONE / TIMELINE
   ========================================================= */
.milestone-list{display:flex;flex-direction:column;gap:10px;}
.milestone-item{
  display:flex;align-items:center;gap:12px;padding:13px;border-radius:var(--radius-sm);background:var(--surface-alt);
}
.milestone-dot{width:12px;height:12px;border-radius:50%;flex-shrink:0;background:var(--text-400);}
.milestone-dot.st-selesai{background:var(--green);}
.milestone-dot.st-proses{background:var(--gold);}
.milestone-dot.st-belum{background:var(--text-400);}
.milestone-dot.st-terlambat{background:var(--red);}
.milestone-dot.st-keputusan{background:var(--navy-700);}
.milestone-body{flex:1;}
.milestone-name{font-size:13px;font-weight:600;color:var(--text-900);}
.milestone-status{font-size:11.5px;color:var(--text-500);margin-top:2px;}

/* =========================================================
   NILAI STRATEGIS
   ========================================================= */
.strategis-hero{
  background:linear-gradient(135deg, var(--navy-900), var(--navy-700));
  border-radius:var(--radius-lg);padding:28px 22px;color:#fff;margin-bottom:18px;position:relative;overflow:hidden;
}
.strategis-hero::after{
  content:"";position:absolute;top:-40px;right:-40px;width:180px;height:180px;border-radius:50%;
  background:radial-gradient(circle, rgba(201,162,39,.25), transparent 70%);
}
.strategis-eyebrow{color:var(--gold);font-weight:700;font-size:12px;letter-spacing:1.5px;text-transform:uppercase;margin-bottom:10px;}
.strategis-hero h2{color:#fff;font-size:21px;font-weight:800;line-height:1.35;margin-bottom:10px;}
.strategis-hero p{color:rgba(255,255,255,.78);font-size:14px;line-height:1.55;max-width:560px;}

.strategis-grid{display:grid;grid-template-columns:1fr;gap:12px;margin-bottom:16px;}
@media (min-width:640px){.strategis-grid{grid-template-columns:repeat(2,1fr);}}
.strategis-card{background:var(--surface);border-radius:var(--radius-md);padding:18px;border:1px solid var(--border);box-shadow:var(--shadow-soft);}
.strategis-card h3{font-size:14px;font-weight:700;margin-bottom:8px;color:var(--navy-900);}
.strategis-card p{font-size:13px;color:var(--text-600);line-height:1.6;}

.roadmap{display:flex;flex-direction:column;gap:0;}
.roadmap-phase{position:relative;padding-left:26px;padding-bottom:22px;border-left:2px solid var(--border);}
.roadmap-phase:last-child{border-left-color:transparent;padding-bottom:0;}
.roadmap-phase::before{
  content:"";position:absolute;left:-7px;top:0;width:12px;height:12px;border-radius:50%;background:var(--gold);
}
.roadmap-phase-title{font-weight:700;font-size:14px;color:var(--navy-900);margin-bottom:8px;}
.roadmap-phase ul{margin:0;padding-left:18px;color:var(--text-600);font-size:13px;line-height:1.9;}

/* =========================================================
   TABS (Kebijakan)
   ========================================================= */
.tab-buttons{display:flex;gap:8px;margin-bottom:14px;flex-wrap:wrap;}
.tab-btn{
  padding:9px 16px;border-radius:999px;border:1.5px solid var(--border);background:var(--surface-alt);
  font-size:12.5px;font-weight:600;color:var(--text-600);cursor:pointer;
}
.tab-btn.active{background:var(--navy-700);color:#fff;border-color:var(--navy-700);}
.tab-panel{display:none;}
.tab-panel.active{display:block;}
.tab-panel ul{margin:0;padding-left:20px;color:var(--text-700);font-size:13.5px;line-height:1.9;}

.policy-text p{font-size:13.5px;color:var(--text-700);line-height:1.7;margin-bottom:10px;}
.policy-text strong{color:var(--text-900);}

.doc-actions{display:flex;gap:10px;flex-wrap:wrap;}

/* =========================================================
   REPORT GENERATOR
   ========================================================= */
.report-grid{display:grid;grid-template-columns:1fr;gap:12px;}
@media (min-width:640px){.report-grid{grid-template-columns:repeat(2,1fr);}}
.report-card{
  border:1px solid var(--border);border-radius:var(--radius-md);padding:16px;background:var(--surface-alt);
  cursor:pointer;transition:box-shadow .15s ease;
}
.report-card:hover{box-shadow:var(--shadow-soft);}
.report-card-icon{
  width:38px;height:38px;border-radius:10px;background:var(--navy-700);display:flex;align-items:center;
  justify-content:center;margin-bottom:10px;font-size:17px;
}
.report-card h3{font-size:13.5px;font-weight:700;margin-bottom:4px;}
.report-card p{font-size:12px;color:var(--text-500);}
.report-preview-section{margin-bottom:16px;}
.report-preview-section h3{font-size:13.5px;font-weight:700;color:var(--navy-900);margin-bottom:8px;}
.report-preview-section p, .report-preview-section li{font-size:13px;color:var(--text-700);line-height:1.7;}

/* =========================================================
   STAKEHOLDER
   ========================================================= */
.influence-badge{font-size:11px;font-weight:700;padding:4px 9px;border-radius:999px;}
.influence-tinggi{background:var(--red-soft);color:var(--red);}
.influence-sedang{background:var(--amber-soft);color:var(--amber);}
.influence-rendah{background:#E5EEF9;color:var(--navy-700);}

/* =========================================================
   PENGATURAN
   ========================================================= */
.profil-row{display:flex;align-items:center;gap:14px;margin-bottom:18px;}
.profil-info-list{display:flex;flex-direction:column;gap:10px;}
.profil-info-item{display:flex;justify-content:space-between;padding:11px 0;border-bottom:1px solid var(--border);font-size:13px;}
.profil-info-item span:first-child{color:var(--text-500);}
.profil-info-item span:last-child{font-weight:600;color:var(--text-900);}
.log-list{display:flex;flex-direction:column;gap:0;}
.log-item{display:flex;gap:10px;padding:11px 0;border-bottom:1px solid var(--border);}
.log-item:last-child{border-bottom:none;}
.log-dot{width:8px;height:8px;border-radius:50%;background:var(--navy-500);margin-top:5px;flex-shrink:0;}
.log-text{font-size:12.5px;color:var(--text-700);}
.log-time{font-size:11px;color:var(--text-400);margin-top:2px;}

/* =========================================================
   TOAST
   ========================================================= */
.toast{
  position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(100px);
  background:var(--navy-900);color:#fff;padding:13px 22px;border-radius:999px;font-size:13.5px;
  font-weight:600;box-shadow:var(--shadow-pop);z-index:200;transition:transform .3s ease;
}
.toast.show{transform:translateX(-50%) translateY(0);}

/* =========================================================
   BOTTOM NAV (mobile)
   ========================================================= */
.bottom-nav{
  display:flex;position:fixed;left:0;right:0;bottom:0;background:var(--surface);border-top:1px solid var(--border);
  z-index:70;padding:6px 4px calc(6px + env(safe-area-inset-bottom));box-shadow:0 -6px 20px rgba(11,35,64,.06);
}
.bottom-nav-item{
  flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;padding:7px 2px;border:none;background:none;
  color:var(--text-500);font-size:10px;font-weight:600;cursor:pointer;border-radius:10px;
}
.bottom-nav-item.active{color:var(--navy-700);}
.bottom-nav-item svg{opacity:.85;}

/* =========================================================
   RESPONSIVE: DESKTOP SIDEBAR
   ========================================================= */
@media (min-width:960px){
  .sidebar{position:sticky;transform:translateX(0);}
  .sidebar-overlay{display:none;}
  .btn-hamburger{display:none;}
  .bottom-nav{display:none;}
  .content{padding:24px 32px 48px;}
  .main-wrap{margin-left:0;}
}
@media (max-width:959px){
  .content{padding-bottom:96px;}
  .chatbot-wrap{bottom:78px;}
  .fab-whatsapp{bottom:78px;}
}

/* =========================================================
   MISC
   ========================================================= */
::-webkit-scrollbar{width:8px;height:8px;}
::-webkit-scrollbar-thumb{background:#C7D1E0;border-radius:8px;}
::-webkit-scrollbar-track{background:transparent;}
