/* ==========================================================================
   PLN ULTIMATE CORPORATE THEME - ENTERPRISE DASHBOARD
   ========================================================================== */

/* Font sudah dimuat lewat <link> di index.html: IBM Plex Sans + IBM Plex Mono */

:root {
  /* PALET WARNA RESMI PLN (DISEMPURNAKAN) */
  --pln-blue: #007bb5;        /* Biru PLN */
  --pln-cyan: #00a2e9;        /* Cyan PLN */
  --pln-yellow: #f2a900;      /* Kuning PLN */
  --pln-green: #10b981;       /* Aksen status/aktif */

  /* Gradien Premium */
  --corp-gradient: linear-gradient(135deg, #005f8f 0%, #0084c9 100%);
  --icon-gradient: linear-gradient(135deg, #00a2e9 0%, #007bb5 100%);

  /* Tipografi */
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Mode Gelap (Eksekutif) */
  --bg-base: #090e17; 
  --panel: #121923;
  --panel-alt: #1a2332;
  --border: #222e40;
  --border-soft: #17202c;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 15px 35px rgba(0, 162, 233, 0.15);
}

html[data-theme="light"] {
  /* Mode Terang (Bersih & Profesional) */
  --bg-base: #f4f7fb;
  --panel: #ffffff;
  --panel-alt: #f8fafc;
  --border: #e1e8f0;
  --border-soft: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 40px rgba(0, 123, 181, 0.12);
}

/* Base & Typography */
html, body {
  margin: 0; padding: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: all 0.4s ease;
  overflow-x: hidden;
}
* { box-sizing: border-box; }
a { text-decoration: none; }
button { font-family: inherit; border: none; outline: none; }

.app-shell { display: flex; min-height: 100vh; position: relative; }

/* Latar ambient seluruh aplikasi — dua "glow" korporat + blueprint grid
   + watermark motif menara transmisi & petir, supaya tidak terasa polos */
.main-area {
  position: relative;
  flex: 1; display: flex; flex-direction: column;
  background-color: var(--bg-base);
  background-image:
    radial-gradient(circle at 12% -8%, rgba(0, 162, 233, 0.20) 0%, transparent 42%),
    radial-gradient(circle at 92% 8%, rgba(242, 169, 0, 0.10) 0%, transparent 38%),
    radial-gradient(circle at 100% 95%, rgba(0, 123, 181, 0.14) 0%, transparent 40%),
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='680' height='360' viewBox='0 0 680 360'%3E%3Cg opacity='0.05' stroke='%2394a3b8' stroke-width='1.5' fill='none'%3E%3Cg transform='translate(30,20) scale(0.85)'%3E%3Cline x1='30' y1='0' x2='0' y2='140'/%3E%3Cline x1='30' y1='0' x2='60' y2='140'/%3E%3Cline x1='10' y1='40' x2='50' y2='40'/%3E%3Cline x1='4' y1='80' x2='56' y2='80'/%3E%3Cline x1='-4' y1='120' x2='64' y2='120'/%3E%3Cline x1='0' y1='140' x2='-14' y2='140'/%3E%3Cline x1='60' y1='140' x2='74' y2='140'/%3E%3Cline x1='10' y1='20' x2='50' y2='20'/%3E%3C/g%3E%3Cg transform='translate(200,60) scale(0.85)'%3E%3Cline x1='30' y1='0' x2='0' y2='140'/%3E%3Cline x1='30' y1='0' x2='60' y2='140'/%3E%3Cline x1='10' y1='40' x2='50' y2='40'/%3E%3Cline x1='4' y1='80' x2='56' y2='80'/%3E%3Cline x1='-4' y1='120' x2='64' y2='120'/%3E%3Cline x1='0' y1='140' x2='-14' y2='140'/%3E%3Cline x1='60' y1='140' x2='74' y2='140'/%3E%3Cline x1='10' y1='20' x2='50' y2='20'/%3E%3C/g%3E%3Cg transform='translate(390,10) scale(0.85)'%3E%3Cline x1='30' y1='0' x2='0' y2='140'/%3E%3Cline x1='30' y1='0' x2='60' y2='140'/%3E%3Cline x1='10' y1='40' x2='50' y2='40'/%3E%3Cline x1='4' y1='80' x2='56' y2='80'/%3E%3Cline x1='-4' y1='120' x2='64' y2='120'/%3E%3Cline x1='0' y1='140' x2='-14' y2='140'/%3E%3Cline x1='60' y1='140' x2='74' y2='140'/%3E%3Cline x1='10' y1='20' x2='50' y2='20'/%3E%3C/g%3E%3Cg transform='translate(570,50) scale(0.85)'%3E%3Cline x1='30' y1='0' x2='0' y2='140'/%3E%3Cline x1='30' y1='0' x2='60' y2='140'/%3E%3Cline x1='10' y1='40' x2='50' y2='40'/%3E%3Cline x1='4' y1='80' x2='56' y2='80'/%3E%3Cline x1='-4' y1='120' x2='64' y2='120'/%3E%3Cline x1='0' y1='140' x2='-14' y2='140'/%3E%3Cline x1='60' y1='140' x2='74' y2='140'/%3E%3Cline x1='10' y1='20' x2='50' y2='20'/%3E%3C/g%3E%3C/g%3E%3Cg opacity='0.06' fill='%2300a2e9'%3E%3Cpath d='M120 40 L94 100 L114 100 L98 155 L148 88 L126 88 Z'/%3E%3Cpath d='M330 200 L304 260 L324 260 L308 315 L358 248 L336 248 Z'/%3E%3Cpath d='M500 30 L474 90 L494 90 L478 145 L528 78 L506 78 Z'/%3E%3Cpath d='M630 210 L604 270 L624 270 L608 325 L658 258 L636 258 Z'/%3E%3C/g%3E%3Cg opacity='0.04' stroke='%2394a3b8' stroke-width='1' fill='none'%3E%3Cline x1='60' y1='180' x2='230' y2='150'/%3E%3Cline x1='260' y1='150' x2='420' y2='180'/%3E%3Cline x1='450' y1='180' x2='600' y2='150'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, auto, auto, 42px 42px, 42px 42px, 680px 360px;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0, center top;
  background-attachment: fixed, fixed, fixed, local, local, local;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat, repeat;
}
html[data-theme="light"] .main-area {
  background-image:
    radial-gradient(circle at 12% -8%, rgba(0, 162, 233, 0.10) 0%, transparent 42%),
    radial-gradient(circle at 92% 8%, rgba(242, 169, 0, 0.07) 0%, transparent 38%),
    radial-gradient(circle at 100% 95%, rgba(0, 123, 181, 0.08) 0%, transparent 40%),
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='680' height='360' viewBox='0 0 680 360'%3E%3Cg opacity='0.06' stroke='%23007bb5' stroke-width='1.5' fill='none'%3E%3Cg transform='translate(30,20) scale(0.85)'%3E%3Cline x1='30' y1='0' x2='0' y2='140'/%3E%3Cline x1='30' y1='0' x2='60' y2='140'/%3E%3Cline x1='10' y1='40' x2='50' y2='40'/%3E%3Cline x1='4' y1='80' x2='56' y2='80'/%3E%3Cline x1='-4' y1='120' x2='64' y2='120'/%3E%3Cline x1='0' y1='140' x2='-14' y2='140'/%3E%3Cline x1='60' y1='140' x2='74' y2='140'/%3E%3Cline x1='10' y1='20' x2='50' y2='20'/%3E%3C/g%3E%3Cg transform='translate(200,60) scale(0.85)'%3E%3Cline x1='30' y1='0' x2='0' y2='140'/%3E%3Cline x1='30' y1='0' x2='60' y2='140'/%3E%3Cline x1='10' y1='40' x2='50' y2='40'/%3E%3Cline x1='4' y1='80' x2='56' y2='80'/%3E%3Cline x1='-4' y1='120' x2='64' y2='120'/%3E%3Cline x1='0' y1='140' x2='-14' y2='140'/%3E%3Cline x1='60' y1='140' x2='74' y2='140'/%3E%3Cline x1='10' y1='20' x2='50' y2='20'/%3E%3C/g%3E%3Cg transform='translate(390,10) scale(0.85)'%3E%3Cline x1='30' y1='0' x2='0' y2='140'/%3E%3Cline x1='30' y1='0' x2='60' y2='140'/%3E%3Cline x1='10' y1='40' x2='50' y2='40'/%3E%3Cline x1='4' y1='80' x2='56' y2='80'/%3E%3Cline x1='-4' y1='120' x2='64' y2='120'/%3E%3Cline x1='0' y1='140' x2='-14' y2='140'/%3E%3Cline x1='60' y1='140' x2='74' y2='140'/%3E%3Cline x1='10' y1='20' x2='50' y2='20'/%3E%3C/g%3E%3Cg transform='translate(570,50) scale(0.85)'%3E%3Cline x1='30' y1='0' x2='0' y2='140'/%3E%3Cline x1='30' y1='0' x2='60' y2='140'/%3E%3Cline x1='10' y1='40' x2='50' y2='40'/%3E%3Cline x1='4' y1='80' x2='56' y2='80'/%3E%3Cline x1='-4' y1='120' x2='64' y2='120'/%3E%3Cline x1='0' y1='140' x2='-14' y2='140'/%3E%3Cline x1='60' y1='140' x2='74' y2='140'/%3E%3Cline x1='10' y1='20' x2='50' y2='20'/%3E%3C/g%3E%3C/g%3E%3Cg opacity='0.08' fill='%23007bb5'%3E%3Cpath d='M120 40 L94 100 L114 100 L98 155 L148 88 L126 88 Z'/%3E%3Cpath d='M330 200 L304 260 L324 260 L308 315 L358 248 L336 248 Z'/%3E%3Cpath d='M500 30 L474 90 L494 90 L478 145 L528 78 L506 78 Z'/%3E%3Cpath d='M630 210 L604 270 L624 270 L608 325 L658 258 L636 258 Z'/%3E%3C/g%3E%3Cg opacity='0.05' stroke='%23007bb5' stroke-width='1' fill='none'%3E%3Cline x1='60' y1='180' x2='230' y2='150'/%3E%3Cline x1='260' y1='150' x2='420' y2='180'/%3E%3Cline x1='450' y1='180' x2='600' y2='150'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, auto, auto, 42px 42px, 42px 42px, 680px 360px;
}

/* Animasi Halus & Mewah */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.fade-in-up { animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* ---------- Sidebar Corporate Modern ---------- */
.sidebar {
  width: 290px; flex-shrink: 0;
  background-color: var(--panel);
  background-image: radial-gradient(circle at 0% 100%, rgba(0, 162, 233, 0.08) 0%, transparent 55%);
  background-repeat: no-repeat;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 28px 20px; position: sticky; top: 0; height: 100vh;
  box-shadow: 4px 0 24px rgba(0,0,0,0.02);
  z-index: 10;
}
.sidebar-brand { 
  display: flex; align-items: center; gap: 16px; 
  margin-bottom: 32px; padding: 0 10px; 
}
.pln-logo { 
  height: 46px; width: auto; 
  object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05));
}
.sidebar-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.sidebar-brand-text strong { 
  font-size: 17px; color: var(--pln-blue); 
  font-weight: 800; letter-spacing: -0.3px; 
}
.sidebar-brand-text span { 
  font-family: var(--font-mono);
  font-size: 10.5px; color: var(--text-tertiary); 
  font-weight: 500; text-transform: uppercase; letter-spacing: 1.5px; margin-top: 3px;
}
.sidebar-rule {
  height: 1px; background: var(--border); margin: 0 4px 20px 4px;
}

/* Sidebar Menu */
.nav-home, .nav-item {
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: left; background: transparent;
  color: var(--text-secondary); padding: 13px 16px; margin-bottom: 4px;
  cursor: pointer; font-size: 14px; border-radius: 10px; font-weight: 600;
  position: relative;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-home:hover, .nav-item:hover {
  background: var(--panel-alt); color: var(--pln-blue);
}
.nav-item::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 0; border-radius: 0 3px 3px 0;
  background: var(--pln-yellow); transition: height 0.25s ease;
}
.nav-item.nav-item-active {
  background: var(--corp-gradient);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(0, 123, 181, 0.25);
}
.nav-item.nav-item-active::before { height: 60%; }
.nav-item.nav-item-active .nav-no, 
.nav-item.nav-item-active .nav-icon { color: rgba(255,255,255,0.9); }

.nav-no { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-tertiary); width: 20px; font-weight: 600; }
.nav-icon { display: flex; opacity: 0.9; }
.nav-label { flex: 1; letter-spacing: -0.1px; }

/* ---------- Main Area ---------- */
.content-header { padding: 45px 50px 15px 50px; }
.content-header .crumb { 
  font-family: var(--font-mono);
  font-size: 11px; color: var(--pln-blue); font-weight: 600; 
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px;
}
.content-header h2 { 
  font-size: 30px; margin: 0 0 10px 0; color: var(--text-primary); 
  font-weight: 700; letter-spacing: -0.5px;
}
.content-header .subtitle { color: var(--text-secondary); font-size: 15px; margin: 0 0 30px 0; font-weight: 400;}
.content-header-rule { height: 1px; background: var(--border); width: 100%; margin-bottom: 30px; }
.page-inner { padding: 0 50px 50px 50px; }

/* ---------- Hero Section (Halaman Muka) ---------- */
.hero-panel {
  position: relative;
  background: var(--corp-gradient);
  border-radius: 20px; padding: 46px 50px; margin-bottom: 28px;
  color: #fff; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
/* Pola blueprint di sudut hero — jejak visual "sistem proteksi" */
.hero-grid-lines {
  position: absolute; inset: 0; opacity: 0.55; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 88% 12%, #000 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(circle at 88% 12%, #000 0%, transparent 60%);
}
/* Aksen Geometris Mewah */
.hero-panel::after {
  content: ''; position: absolute; right: -50px; top: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,169,0,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  color: #fff; background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 7px 14px; border-radius: 30px; margin-bottom: 22px;
  text-transform: uppercase; letter-spacing: 1.2px;
}
.hero-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--pln-yellow); flex-shrink: 0;
}
.hero-content h1 { 
  font-size: 36px; margin: 0 0 16px 0; font-weight: 700; 
  letter-spacing: -0.8px; line-height: 1.22;
}
.hero-content p { font-size: 15.5px; color: rgba(255,255,255,0.85); line-height: 1.7; font-weight: 400; margin: 0;}

/* Strip statistik nyata (dihitung dari jumlah kategori & tautan) */
.hero-stat-strip {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 34px;
  margin-top: 32px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.hero-stat { display: flex; flex-direction: column; gap: 4px; }
.hero-stat-value {
  font-family: var(--font-mono); font-size: 24px; font-weight: 600; color: #fff; line-height: 1;
}
.hero-stat-label {
  font-size: 12px; color: rgba(255,255,255,0.7); font-weight: 500; letter-spacing: 0.2px;
}

/* Menu Grid (Halaman Muka) */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.menu-card {
  background: var(--panel); border: 1px solid var(--border);
  padding: 26px; border-radius: 16px; cursor: pointer;
  display: flex; flex-direction: column; gap: 16px; text-align: left;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.menu-card:hover {
  transform: translateY(-4px);
  border-color: var(--pln-blue);
  box-shadow: var(--shadow-lg);
  background: var(--panel);
}
.menu-card-top { display: flex; align-items: center; justify-content: space-between; }
.menu-no { font-family: var(--font-mono); font-size: 13px; color: var(--text-tertiary); font-weight: 500; }
.menu-icon {
  color: #fff; background: var(--icon-gradient);
  padding: 12px; border-radius: 12px; display: flex;
  box-shadow: 0 6px 12px rgba(0, 162, 233, 0.2);
}
.menu-card h3 { font-size: 17px; font-weight: 700; margin: 0; color: var(--text-primary); letter-spacing: -0.2px;}
.menu-card-bottom {
  margin-top: 10px; display: flex; align-items: center; justify-content: space-between;
  color: var(--text-secondary); font-weight: 500; font-size: 13px;
}
.menu-count { font-family: var(--font-mono); }
.menu-card:hover .menu-card-bottom { color: var(--pln-blue); }

/* ---------- KARTU LINK CORPORATE PREMIUM (Menu Di Dalam) ---------- */
.link-group-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); 
  gap: 18px; 
}

.link-card-btn {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 22px 24px;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
/* Garis Emas PLN di Bawah Kartu */
.link-card-btn::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 3px;
  background: var(--pln-yellow); transition: width 0.35s ease;
}
.link-card-btn .btn-text-col { display: flex; flex-direction: column; gap: 7px; padding-right: 16px; z-index: 2; min-width: 0; }
.link-card-btn .link-tag {
  display: inline-flex; align-self: flex-start;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--text-tertiary); background: var(--bg-base);
  border: 1px solid var(--border); padding: 3px 8px; border-radius: 5px;
}
.link-card-btn .btn-text {
  font-weight: 600; font-size: 14.5px;
  letter-spacing: -0.1px; line-height: 1.45;
  overflow-wrap: break-word;
}
.link-card-btn .btn-icon-wrap {
  background: var(--bg-base); border: 1px solid var(--border);
  color: var(--pln-blue);
  padding: 13px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2;
}

/* EFEK HOVER KARTU LINK (Sangat Interaktif) */
.link-card-btn:hover {
  transform: translateY(-4px);
  border-color: var(--pln-blue);
  box-shadow: var(--shadow-lg);
  background: var(--panel);
}
.link-card-btn:hover::after { width: 100%; } /* Garis kuning melebar penuh */
.link-card-btn:hover .btn-text { color: var(--pln-blue); }
.link-card-btn:hover .link-tag { border-color: var(--pln-blue); color: var(--pln-blue); }
.link-card-btn:hover .btn-icon-wrap {
  background: var(--icon-gradient);
  border-color: transparent;
  color: #fff;
  transform: rotate(-10deg) scale(1.1);
  box-shadow: 0 8px 16px rgba(0, 123, 181, 0.3);
}

/* ---------- Theme Toggle (Bawah Sidebar) ---------- */
.theme-toggle {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: var(--bg-base); border: 1px solid var(--border);
  color: var(--text-secondary); padding: 14px 16px; margin-top: auto;
  cursor: pointer; font-size: 13.5px; border-radius: 12px; font-weight: 600;
  transition: 0.25s ease;
}
.theme-toggle:hover { 
  border-color: var(--pln-blue); color: var(--pln-blue); 
  box-shadow: 0 4px 12px rgba(0, 123, 181, 0.1);
}
.theme-toggle-icon { display: flex; }

/* ---------- Responsive Layar HP & Tablet ---------- */
@media (max-width: 992px) {
  .link-group-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .content-header, .page-inner { padding-left: 30px; padding-right: 30px; }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed; left: 0; top: 0; z-index: 40;
    transform: translateX(-100%); box-shadow: 10px 0 40px rgba(0,0,0,0.5);
  }
  .sidebar.sidebar-open { transform: translateX(0); }
  .sidebar-overlay.show {
    display: block; position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(5px); z-index: 30;
  }
  /* Topbar Mobile Modern */
  .topbar {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 24px; border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.8); backdrop-filter: blur(12px);
    position: sticky; top: 0; z-index: 20;
  }
  html[data-theme="dark"] .topbar { background: rgba(9, 14, 23, 0.85); }
  
  .content-header { padding: 30px 20px 15px 20px; }
  .page-inner { padding: 0 20px 40px 20px; }
  .hero-panel { padding: 30px 24px; border-radius: 16px;}
  .hero-content h1 { font-size: 26px; }
  .hero-stat-strip { gap: 24px; }
  .link-group-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   AUTENTIKASI ADMIN (LOGIN / STATUS / LOGOUT)
   ========================================================================== */

/* Tombol pemicu login (saat belum masuk) */
.btn-login-trigger {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; background: var(--panel-alt); border: 1px solid var(--border);
  color: var(--text-secondary); padding: 12px 16px; margin-bottom: 20px;
  border-radius: 10px; font-weight: 600; font-size: 13px; cursor: pointer;
  transition: 0.25s;
}
.btn-login-trigger:hover {
  border-color: var(--pln-blue); color: var(--pln-blue);
  box-shadow: 0 4px 12px rgba(0, 123, 181, 0.1);
}

/* Status saat sudah login sebagai admin */
.admin-status {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: rgba(16, 185, 129, 0.1); border: 1px solid var(--pln-green);
  padding: 10px 12px; margin-bottom: 20px; border-radius: 10px;
}
.admin-status-badge {
  display: flex; align-items: center; gap: 8px;
  color: var(--pln-green); font-weight: 600; font-size: 12px;
  font-family: var(--font-mono); letter-spacing: 0.2px;
}
.btn-logout {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 7px;
  background: transparent; color: var(--pln-green); cursor: pointer;
  transition: 0.2s;
  flex-shrink: 0;
}
.btn-logout:hover { background: var(--pln-green); color: #fff; }

/* ==========================================================================
   MODAL LOGIN — dua panel: visual (kiri) + form (kanan)
   ========================================================================== */
.login-modal-content {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  width: 100%; max-width: 720px;
  background: var(--panel);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  overflow: hidden;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes loginShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}
.login-shake { animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1), loginShake 0.45s ease 0.05s; }

.login-close {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: #fff;
  font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: 0.2s;
}
.login-close:hover { background: rgba(255,255,255,0.25); transform: rotate(90deg); }
html[data-theme="light"] .login-close {
  background: rgba(255,255,255,0.35);
}

/* --- Panel kiri: visual / brand --- */
.login-visual {
  position: relative;
  background: var(--corp-gradient);
  padding: 44px 34px;
  display: flex; flex-direction: column; align-items: flex-start;
  color: #fff; overflow: hidden;
}
.login-visual-pattern {
  position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 75%);
}
.login-visual::after {
  content: ''; position: absolute; left: -60px; bottom: -80px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,169,0,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.login-badge-wrap {
  position: relative;
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px; z-index: 2;
}
.login-badge-core {
  position: relative; z-index: 2;
  width: 64px; height: 64px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--pln-yellow);
  backdrop-filter: blur(4px);
}
.login-badge-ring {
  position: absolute; inset: 0; border-radius: 18px;
  border: 1.5px solid rgba(242,169,0,0.55);
  animation: loginPulse 2.6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.login-badge-ring-b { animation-delay: 1.3s; }
@keyframes loginPulse {
  0% { transform: scale(1); opacity: 0.9; }
  75%, 100% { transform: scale(1.9); opacity: 0; }
}

.login-visual-eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--pln-yellow); margin-bottom: 12px; z-index: 2;
}
.login-visual-title {
  font-size: 25px; font-weight: 800; line-height: 1.25; letter-spacing: -0.5px;
  margin: 0 0 14px 0; z-index: 2; position: relative;
}
.login-visual-desc {
  font-size: 13.5px; line-height: 1.65; color: rgba(255,255,255,0.8);
  margin: 0; z-index: 2; position: relative; max-width: 240px;
}

/* --- Panel kanan: form --- */
.login-form-panel {
  padding: 44px 38px;
  display: flex; flex-direction: column; gap: 18px;
  background: var(--panel);
}
.login-form-head { margin-bottom: 4px; }
.login-form-eyebrow {
  display: block; font-size: 11px; font-weight: 800; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--pln-blue); margin-bottom: 8px;
}
.login-form-head h4 {
  margin: 0; font-size: 21px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.3px;
}

.login-field { display: flex; flex-direction: column; gap: 8px; }
.login-field label { font-size: 12.5px; color: var(--text-secondary); font-weight: 700; }

.login-input-wrap {
  position: relative;
  display: flex; align-items: center;
  background: var(--bg-base);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  transition: 0.25s;
}
.login-input-wrap:focus-within {
  border-color: var(--pln-blue);
  box-shadow: 0 0 0 4px rgba(0, 123, 181, 0.15);
}
.login-input-icon {
  display: flex; align-items: center; justify-content: center;
  color: var(--text-tertiary); padding-left: 14px; flex-shrink: 0;
}
.login-input-wrap:focus-within .login-input-icon { color: var(--pln-blue); }
.login-input-wrap input {
  width: 100%; background: transparent; border: none; outline: none;
  color: var(--text-primary); font-family: inherit; font-size: 14px;
  padding: 13px 12px;
}
.login-input-toggle {
  background: transparent; border: none; cursor: pointer;
  color: var(--text-tertiary); padding: 0 14px; display: flex; align-items: center;
  transition: 0.2s;
}
.login-input-toggle:hover { color: var(--pln-blue); }

.login-error {
  display: none; align-items: center; gap: 8px;
  color: #ef4444; font-size: 12.5px; font-weight: 700; margin: 0;
  background: rgba(239, 68, 68, 0.1); padding: 10px 12px; border-radius: 10px;
}

.login-submit {
  margin-top: 6px; padding: 14px 20px; border-radius: 12px; border: none;
  background: var(--corp-gradient); color: #fff; font-weight: 700; font-size: 14.5px;
  cursor: pointer; box-shadow: 0 10px 20px rgba(0, 123, 181, 0.3);
  transition: 0.25s;
}
.login-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(0, 123, 181, 0.4); }
.login-submit:active { transform: translateY(0); }

.login-cancel {
  background: transparent; border: none; cursor: pointer;
  color: var(--text-tertiary); font-size: 13px; font-weight: 600;
  padding: 4px; text-align: center; transition: 0.2s;
}
.login-cancel:hover { color: var(--text-secondary); }

@media (max-width: 640px) {
  .login-modal-content { grid-template-columns: 1fr; max-width: 92vw; }
  .login-visual { padding: 30px 26px; }
  .login-visual-desc { max-width: none; }
  .login-badge-wrap { margin-bottom: 18px; }
  .login-form-panel { padding: 30px 26px; }
}

/* ==========================================================================
   MODE ADMIN & MODAL POP-UP (CORPORATE STYLE)
   ========================================================================== */
.header-actions { display: flex; gap: 10px; margin-top: 15px; }
.btn-action {
  padding: 10px 18px; border-radius: 8px; font-weight: 700; font-size: 13px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: 0.3s;
}
.btn-add { background: var(--pln-blue); color: #fff; border: none; box-shadow: 0 4px 10px rgba(0, 123, 181, 0.3); }
.btn-add:hover { background: #005f8f; transform: translateY(-2px); }
.btn-export { background: #10b981; color: #fff; border: none; box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3); }
.btn-export:hover { background: #059669; transform: translateY(-2px); }

/* Tombol Edit & Delete di dalam Kartu */
.card-admin-actions {
  position: absolute; top: 10px; left: 10px; display: flex; gap: 6px;
  opacity: 0; transition: 0.3s; z-index: 10;
}
.link-card-btn:hover .card-admin-actions { opacity: 1; }
.btn-icon-admin {
  width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; color: #fff;
}
.btn-edit { background: var(--pln-yellow); }
.btn-delete { background: #ef4444; }

/* Modal Pop-up (Glassmorphism) */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(9, 14, 23, 0.8); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; z-index: 100;
  animation: fadeIn 0.3s ease;
}
.modal-content {
  background: var(--panel); width: 100%; max-width: 450px;
  border-radius: 20px; border: 1px solid var(--border);
  box-shadow: 0 25px 50px rgba(0,0,0,0.5); overflow: hidden;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-header {
  padding: 20px 25px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.modal-header h3 { margin: 0; color: var(--pln-blue); font-size: 18px; font-weight: 800; }
.btn-close { background: transparent; color: var(--text-tertiary); font-size: 20px; cursor: pointer; border: none; }
.modal-body { padding: 25px; display: flex; flex-direction: column; gap: 15px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 13px; color: var(--text-secondary); font-weight: 600; }
.form-group input, .form-group textarea {
  background: var(--bg-base); border: 1px solid var(--border);
  color: var(--text-primary); padding: 12px 15px; border-radius: 10px;
  font-family: inherit; font-size: 14px; outline: none; transition: 0.3s;
}
.form-group input:focus { border-color: var(--pln-blue); box-shadow: 0 0 0 3px rgba(0, 123, 181, 0.2); }
.modal-footer { padding: 20px 25px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
.btn-cancel { background: transparent; color: var(--text-secondary); padding: 10px 15px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-weight: 600;}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
