/* ==========================================
   SIRAMA - Global Styles
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-primary: #3B82F6;
  --blue-dark: #2563EB;
  --blue-light: #DBEAFE;
  --blue-soft: #EFF6FF;
  --purple-primary: #8B5CF6;
  --purple-dark: #7C3AED;
  --purple-light: #EDE9FE;
  --green-primary: #10B981;
  --green-light: #D1FAE5;
  --orange-primary: #F59E0B;
  --orange-light: #FEF3C7;
  --red-primary: #EF4444;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --sidebar-width: 220px;
  --topbar-height: 72px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.13);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

body {
  font-family: 'Times New Roman', Times, serif;
  font-size: 12pt;
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.5;
}

/* Ensure all buttons, inputs, selects, textareas inherit Times New Roman, line-height 1.5 */
button, input, select, textarea, optgroup {
  font-family: 'Times New Roman', Times, serif;
  line-height: 1.5;
}

/* Universal Typography: Times New Roman 12pt with 1.5 line spacing */
p, li, td, th, label, .form-control, table, .table, .arsip-content, .buku-agenda-doc, .letter-preview {
  font-family: 'Times New Roman', Times, serif;
  line-height: 1.5;
}

/* Protect FontAwesome icons from font-family override */
i[class*="fa-"], [class^="fa-"], .fa, .fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; outline: none; }
input, textarea, select { outline: none; }

/* ==========================================
   LOGO SHARED
   ========================================== */
.sidebar-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px 20px;
  border-bottom: 1px solid var(--gray-100);
  gap: 12px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  margin-left: 0;
}

.logo-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--blue-dark);
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.logo-sub {
  font-size: 10px;
  color: var(--gray-500);
  line-height: 1.4;
  max-width: 100%;
  text-align: center;
}

/* ==========================================
   LANDING PAGE
   ========================================== */
.landing-body {
  min-height: 100vh;
  background: linear-gradient(135deg, #e8f0fe 0%, #f0e8ff 50%, #e8f5fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Decorative squares top-right */
.bg-decor {
  position: absolute;
  top: 0;
  right: 0;
  width: 260px;
  height: 260px;
  pointer-events: none;
}

.sq {
  position: absolute;
  border-radius: 10px;
  opacity: 0.45;
}

.sq1 {
  width: 80px; height: 80px;
  background: #818cf8;
  top: 20px; right: 60px;
  border-radius: 14px;
  opacity: 0.5;
}
.sq2 {
  width: 50px; height: 50px;
  background: #a78bfa;
  top: 10px; right: 20px;
  border-radius: 10px;
  opacity: 0.4;
}
.sq3 {
  width: 60px; height: 60px;
  background: #60a5fa;
  top: 95px; right: 20px;
  border-radius: 10px;
  opacity: 0.35;
}
.sq4 {
  width: 38px; height: 38px;
  background: #c4b5fd;
  top: 80px; right: 80px;
  border-radius: 8px;
  opacity: 0.4;
}

/* Landing Card */
.landing-card {
  background: white;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  width: 680px;
  min-height: 340px;
  padding: 36px 50px 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.landing-logo {
  display: flex;
  align-items: center;
  position: absolute;
  top: 24px;
  left: 28px;
}

.landing-illustration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  opacity: 0.8;
}

/* Wave bottom of card */
.card-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(219,234,254,0) 0%, rgba(219,234,254,0.7) 100%);
  pointer-events: none;
  border-radius: 0 0 24px 24px;
}

/* Landing Content */
.landing-content {
  text-align: center;
  margin-top: 55px;
  position: relative;
  z-index: 2;
}

.welcome-small {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-700);
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.welcome-big {
  font-size: 54px;
  font-weight: 900;
  color: var(--blue-dark);
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 8px;
}

.welcome-sub {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.welcome-quote {
  display: inline-block;
  background: var(--gray-100);
  border-radius: 20px;
  padding: 8px 22px;
  font-size: 13.5px;
  color: var(--gray-700);
  font-style: italic;
  margin-bottom: 14px;
}

.masuk-label {
  font-size: 12.5px;
  color: var(--gray-500);
  margin-bottom: 14px;
}

.landing-buttons {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-guru, .btn-siswa {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 40px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

.btn-guru {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  box-shadow: 0 4px 15px rgba(59,130,246,0.35);
}

.btn-siswa {
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
  box-shadow: 0 4px 15px rgba(139,92,246,0.35);
}

.btn-guru:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59,130,246,0.45); }
.btn-siswa:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(139,92,246,0.45); }
.btn-guru i, .btn-siswa i { font-size: 18px; }

/* ==========================================
   LOGIN PAGE
   ========================================== */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-guru-body {
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
}

.login-siswa-body {
  background: linear-gradient(135deg, #ede9fe 0%, #f5f3ff 100%);
}

.login-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: min(400px, calc(100vw - 32px));
  padding: 0 0 30px 0;
  overflow: hidden;
}

.login-header {
  padding: 28px 36px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.login-header-guru {
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  border-bottom: 2px solid var(--blue-light);
}

.login-header-siswa {
  background: linear-gradient(135deg, #ede9fe, #f5f3ff);
  border-bottom: 2px solid var(--purple-light);
}

.login-lock-icon {
  font-size: 22px;
  color: var(--blue-dark);
}

.login-header-siswa .login-lock-icon { color: var(--purple-dark); }

.login-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-800);
}

.login-form {
  padding: 20px 32px 0;
}

.login-field {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  background: var(--gray-50);
  transition: border-color 0.2s;
}

.login-field:focus-within {
  border-color: var(--blue-primary);
  background: white;
}

.field-icon {
  padding: 0 12px;
  color: var(--gray-400);
  font-size: 14px;
}

.login-field input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 12px 12px 0;
  font-size: 12pt;
  font-family: 'Times New Roman', Times, serif;
  color: var(--gray-700);
}

.login-field input::placeholder { color: var(--gray-400); }

.login-error {
  background: #FEE2E2;
  border: 1px solid #FECACA;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--red-primary);
  font-size: 11pt;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.btn-login {
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-sm);
  font-size: 13pt;
  font-weight: 700;
  color: white;
  font-family: 'Times New Roman', Times, serif;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  border: none;
}

.btn-login-guru {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}

.btn-login-siswa {
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
  box-shadow: 0 4px 12px rgba(139,92,246,0.3);
}

.btn-login:hover { transform: translateY(-1px); }

.login-back {
  text-align: center;
  margin-top: 18px;
  padding: 0 32px;
}

.login-back a {
  color: var(--blue-primary);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}
.login-back a:hover { color: var(--blue-dark); }

.auth-actions { margin-top: 4px; }
.text-button {
  border: 0;
  padding: 4px;
  color: var(--blue-primary);
  background: transparent;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.text-button:hover { text-decoration: underline; }
.auth-panel {
  margin: 18px 24px 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--gray-200);
}
.auth-panel h3 {
  margin: 0 8px 4px;
  color: var(--gray-800);
  font-size: 15px;
}
.auth-panel .login-form { padding: 12px 8px 0; }
.auth-message {
  margin: 12px 8px 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.45;
}
.auth-message-error { color: #991B1B; background: #FEE2E2; }
.auth-message-success { color: #065F46; background: #D1FAE5; }
.register-card { margin: 24px 0; }

/* ==========================================
   DASHBOARD LAYOUT
   ========================================== */
.dashboard-body {
  background: #F1F5F9;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: white;
  box-shadow: 2px 0 12px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px 20px;
  border-bottom: 1px solid var(--gray-100);
  gap: 12px;
}

/* SIDEBAR NAV */
.sidebar-nav {
  flex: 1;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-nav .nav-item,
.sidebar-nav .nav-group-label,
.sidebar-nav .nav-sub-item,
.sidebar-nav a,
.sidebar-nav span,
.sidebar-footer .nav-logout,
.sidebar-footer .nav-logout span {
  font-weight: 700 !important;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700 !important;
  color: var(--gray-700);
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  text-decoration: none;
}

.nav-item:hover {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.nav-item.active {
  background: var(--blue-primary);
  color: white;
  font-weight: 700 !important;
}

.nav-item i { font-size: 15px; width: 18px; text-align: center; flex-shrink: 0; }

.nav-group { margin-top: 4px; }

.nav-group-label {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 13px;
  font-size: 13.5px;
  font-weight: 700 !important;
  color: var(--gray-700);
  cursor: pointer;
}

.nav-group-label i { font-size: 15px; width: 18px; text-align: center; color: var(--gray-600); flex-shrink: 0; }

.nav-sub-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 13px 7px 24px;
  font-size: 13px;
  font-weight: 700 !important;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  cursor: pointer;
}

.nav-sub-item:hover {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.nav-sub-item.active,
.nav-sub-item.active-sub {
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-weight: 700 !important;
}

.nav-sub-item i { font-size: 13px; width: 16px; text-align: center; flex-shrink: 0; }

/* ── Badge Logo Surat Masuk & Surat Keluar di Sidebar Menu ── */
.nav-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-sub-item .nav-icon-badge i {
  font-size: 11px;
  width: auto;
  line-height: 1;
  text-align: center;
}

/* Surat Masuk - Hijau Segar */
.nav-icon-badge.badge-masuk {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
  box-shadow: 0 1px 2px rgba(5, 150, 105, 0.08);
}

/* Surat Keluar - Merah Elegan */
.nav-icon-badge.badge-keluar {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
  box-shadow: 0 1px 2px rgba(220, 38, 38, 0.08);
}

/* Hover & Active State */
.nav-sub-item:hover .nav-icon-badge.badge-masuk,
.nav-sub-item.active .nav-icon-badge.badge-masuk,
.nav-sub-item.active-sub .nav-icon-badge.badge-masuk {
  background: #059669;
  color: #FFFFFF;
  border-color: #059669;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
  transform: scale(1.06);
}

.nav-sub-item:hover .nav-icon-badge.badge-keluar,
.nav-sub-item.active .nav-icon-badge.badge-keluar,
.nav-sub-item.active-sub .nav-icon-badge.badge-keluar {
  background: #DC2626;
  color: #FFFFFF;
  border-color: #DC2626;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
  transform: scale(1.06);
}

/* ── Logo SVG Surat Masuk & Surat Keluar di Sidebar Menu (Sesuai Gambar Referensi) ── */
.menu-icon-svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  border-radius: 6px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), filter 0.2s ease;
}

.nav-sub-item:hover .menu-icon-svg,
.nav-sub-item.active .menu-icon-svg,
.nav-sub-item.active-sub .menu-icon-svg {
  transform: scale(1.1);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18));
}

/* SIDEBAR FOOTER */
.sidebar-footer {
  padding: 14px 10px;
  border-top: 1px solid var(--gray-100);
}

.nav-logout {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--red-primary);
  cursor: pointer;
  background: #FEF2F2;
  transition: background 0.15s;
  text-decoration: none;
}

.nav-logout:hover { background: #FEE2E2; }
.nav-logout i { font-size: 15px; }

/* TOPBAR */
.topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  height: var(--topbar-height);
  background: white;
  box-shadow: 0 1px 8px rgba(0,0,0,0.07);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 28px;
  z-index: 99;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.notif-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gray-100);
  cursor: pointer;
  font-size: 16px;
  color: var(--gray-600);
  transition: background 0.15s;
}
.notif-btn:hover { background: var(--gray-200); }

.notif-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  background: var(--red-primary);
  color: white;
  font-size: 9px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  position: relative;
  user-select: none;
}
.admin-profile:hover { background: var(--gray-100); }

.admin-avatar {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--blue-primary), var(--purple-primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
}

.admin-info {
  display: flex;
  flex-direction: column;
}

.admin-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.2;
}

.admin-role {
  font-size: 11px;
  color: var(--gray-500);
}

.admin-chevron {
  font-size: 11px;
  color: var(--gray-400);
}

/* MAIN CONTENT */
.main-content {
  margin-left: var(--sidebar-width);
  margin-top: var(--topbar-height);
  padding: 24px 28px;
  min-height: calc(100vh - var(--topbar-height));
}

/* ==========================================
   HERO BANNER
   ========================================== */
.hero-banner {
  background: linear-gradient(120deg, #dbeafe 0%, #ede9fe 60%, #e0f2fe 100%);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  min-height: 110px;
  position: relative;
  overflow: hidden;
}

.hero-text h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--gray-800);
  margin-bottom: 6px;
}

.hero-highlight {
  color: var(--blue-primary);
}

.hero-text p {
  font-size: 13.5px;
  color: var(--gray-600);
}

.hero-illustration {
  flex-shrink: 0;
  opacity: 0.9;
}

/* ==========================================
   STAT CARDS
   ========================================== */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.stat-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 18px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.stat-icon-blue { background: var(--blue-light); color: var(--blue-primary); }
.stat-icon-purple { background: var(--purple-light); color: var(--purple-primary); }
.stat-icon-green { background: var(--green-light); color: var(--green-primary); }
.stat-icon-orange { background: var(--orange-light); color: var(--orange-primary); }

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.stat-label {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
  line-height: 1.3;
}

.stat-number {
  font-size: 26px;
  font-weight: 800;
  color: var(--gray-800);
  line-height: 1.1;
}

.stat-change {
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}

.stat-change.positive { color: var(--green-primary); }
.stat-change.negative { color: var(--red-primary); }

.stat-from {
  font-weight: 400;
  color: var(--gray-400);
  font-size: 10.5px;
}

/* ==========================================
   CHARTS ROW
   ========================================== */
.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}

.chart-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.chart-title {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--gray-800);
}

.chart-select {
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12.5px;
  color: var(--gray-600);
  font-family: 'Times New Roman', Times, serif;
  font-size: 11pt;
  cursor: pointer;
  background: white;
}

.chart-body { position: relative; }

.chart-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  font-size: 12px;
  color: var(--gray-500);
  gap: 6px;
}

.legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

/* Donut */
.donut-body {
  display: flex;
  align-items: center;
  gap: 16px;
}

.donut-wrap {
  position: relative;
  flex-shrink: 0;
  width: 180px;
  height: 180px;
}

.donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.donut-total-label {
  display: block;
  font-size: 11px;
  color: var(--gray-500);
}

.donut-total-num {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-800);
  line-height: 1.2;
}

.donut-total-sub {
  display: block;
  font-size: 11px;
  color: var(--gray-500);
}

.donut-legend { flex: 1; }

.dl-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  font-size: 12px;
}

.dl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dl-label { flex: 1; color: var(--gray-600); }
.dl-val { font-weight: 700; color: var(--gray-800); margin-right: 4px; min-width: 36px; }
.dl-pct { color: var(--gray-400); min-width: 32px; text-align: right; }

/* ==========================================
   BOTTOM ROW
   ========================================== */
.bottom-row {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
}

/* TABLE CARD */
.table-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.table-title {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--gray-800);
}

.lihat-semua {
  font-size: 12.5px;
  color: var(--blue-primary);
  font-weight: 600;
  transition: color 0.2s;
}

.lihat-semua:hover { color: var(--blue-dark); }

.table-wrap { overflow-x: auto; }

.arsip-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.arsip-table th {
  text-align: left;
  padding: 9px 10px;
  background: var(--gray-50);
  color: var(--gray-600);
  font-weight: 600;
  border-bottom: 1.5px solid var(--gray-200);
  white-space: nowrap;
}

.arsip-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  white-space: nowrap;
}

.arsip-table tr:last-child td { border-bottom: none; }
.arsip-table tr:hover td { background: var(--gray-50); }

/* Badges */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.badge-penting { background: #FEF3C7; color: #D97706; }
.badge-segera { background: #DBEAFE; color: #2563EB; }
.badge-biasa { background: #F3F4F6; color: #6B7280; }
.badge-rahasia { background: #EDE9FE; color: #7C3AED; }
.badge-sangat-segera { background: #FEE2E2; color: #DC2626; }
.badge-masuk { background: #DBEAFE; color: #2563EB; }
.badge-keluar { background: #EDE9FE; color: #7C3AED; }
.badge-tersimpan { background: #D1FAE5; color: #059669; }

/* INFO CARD */
.info-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.info-header {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--gray-800);
  margin-bottom: 14px;
}

.info-highlight {
  background: var(--blue-soft);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.info-icon-box {
  width: 36px;
  height: 36px;
  background: var(--blue-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-primary);
  font-size: 16px;
  flex-shrink: 0;
}

.info-highlight-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 2px;
}

.info-highlight-sub {
  font-size: 11.5px;
  color: var(--gray-600);
}

.info-desc {
  font-size: 12.5px;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ==========================================
   PROFIL PERUSAHAAN
   ========================================== */
.breadcrumb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--gray-500);
}

.breadcrumb a {
  color: var(--gray-500);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--blue-primary); }

.bc-sep { color: var(--gray-400); font-size: 11px; }

.bc-current { color: var(--gray-800); font-weight: 600; }

.btn-bantuan {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  background: white;
  transition: background 0.15s, border-color 0.15s;
}

.btn-bantuan:hover { background: var(--gray-50); border-color: var(--gray-300); }

/* Profil Grid */
.profil-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  align-items: start;
}

.profil-form-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.profil-form-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.profil-form-title h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-800);
}

.profil-account-banner {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  border-radius: var(--radius-sm, 8px);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.5;
}

[data-theme="dark"] .profil-account-banner,
body.dark-theme .profil-account-banner {
  background: rgba(30, 58, 138, 0.3) !important;
  border-color: rgba(96, 165, 250, 0.4) !important;
  color: #dbeafe !important;
}

.profil-form-title i { font-size: 20px; }

.alert-info {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 12.5px;
  color: var(--gray-600);
  line-height: 1.5;
}

.alert-info i { color: var(--blue-primary); margin-top: 1px; flex-shrink: 0; }

.profil-form { display: flex; flex-direction: column; gap: 14px; }

.form-group { display: flex; flex-direction: column; gap: 5px; }

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
}

.req { color: var(--red-primary); }

.form-control {
  width: 100%;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  font-size: 12pt;
  font-family: 'Times New Roman', Times, serif;
  color: var(--gray-700);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.form-control:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Logo Upload */
.logo-upload-area {
  display: flex;
  gap: 14px;
  align-items: stretch;
}

.logo-preview-box {
  width: 110px;
  height: 110px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-placeholder-seal {
  display: flex;
  align-items: center;
  justify-content: center;
}

.seal-outer {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a3a8c, #2e5fc2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(26,58,140,0.3);
}

.seal-inner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0c040, #e8a020);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-upload-btn {
  flex: 1;
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  padding: 14px;
  gap: 4px;
  transition: border-color 0.2s, background 0.2s;
}

.logo-upload-btn:hover {
  border-color: var(--blue-primary);
  background: var(--blue-soft);
}

.logo-upload-btn span:first-of-type {
  font-size: 12pt;
  font-weight: 600;
  color: var(--gray-700);
}

.upload-hint {
  font-size: 11pt;
  color: var(--gray-400);
  line-height: 1.5;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 14px;
  margin-top: 6px;
}

.btn-reset {
  flex: 1;
  padding: 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 12pt;
  font-weight: 600;
  color: var(--gray-600);
  background: white;
  font-family: 'Times New Roman', Times, serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s, border-color 0.15s;
}

.btn-reset:hover { background: var(--gray-50); border-color: var(--gray-300); }

.btn-simpan {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 12pt;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark));
  font-family: 'Times New Roman', Times, serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(59,130,246,0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-simpan:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(59,130,246,0.4); }

/* KOP PREVIEW */
.kop-preview-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.kop-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.kop-preview-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-800);
}

.btn-lihat-ukuran {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-600);
  background: white;
  transition: background 0.15s;
}

.btn-lihat-ukuran:hover { background: var(--gray-50); }

.kop-preview-body {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.kop-content {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.kop-logo-area {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kop-seal-placeholder .seal-outer-kop {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a3a8c, #2e5fc2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.seal-inner-kop {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0c040, #e8a020);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kop-text-area { flex: 1; }

.kop-company-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 3px;
}

.kop-address {
  font-size: 10.5px;
  color: var(--gray-600);
  margin-bottom: 2px;
}

.kop-contacts {
  font-size: 10px;
  color: var(--gray-600);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 1px;
}

.kop-divider {
  border-top: 3.5px solid #000000;
  border-bottom: 1px solid #000000;
  height: 2.5px;
  margin-top: 12px;
  margin-bottom: 14px;
  width: 100%;
}
/* ==========================================
   MODAL DIALOG & UKURAN ASLI PREVIEW
   ========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s ease;
  padding: 16px;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal-dialog {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px) scale(0.98);
  transition: all 0.25s ease;
  overflow: hidden;
}
.modal-dialog-lg {
  max-width: 880px;
}
.modal-overlay.active .modal-dialog {
  transform: translateY(0) scale(1);
}
.modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
}
.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 12px;
}
.modal-close-btn {
  background: #F1F5F9;
  border: none;
  font-size: 16px;
  color: #64748B;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.modal-close-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}

/* Tabs switcher in modal */
.modal-tab-group {
  display: flex;
  background: #F1F5F9;
  padding: 3px;
  border-radius: 10px;
  gap: 4px;
}
.modal-tab-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.modal-tab-btn.active {
  background: white;
  color: #2563EB;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* A4 Sheet Container */
.a4-sheet-container {
  background: white;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
  padding: 40px 48px;
  margin: 0 auto;
  max-width: 780px;
  min-height: 480px;
  border: 1px solid #E2E8F0;
}
.a4-kop-wrapper {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 8px;
}
.a4-logo-area {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.a4-text-area {
  flex: 1;
  text-align: center;
}
.a4-company-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #0F172A;
  text-transform: uppercase;
  margin-bottom: 4px;
  line-height: 1.25;
}
.a4-address {
  font-size: 12.5px;
  color: #334155;
  margin-bottom: 3px;
  line-height: 1.4;
}
.a4-contacts {
  font-size: 12px;
  color: #475569;
  line-height: 1.4;
}
.a4-kop-divider-thick {
  border-top: 3.5px solid #000000;
  margin-top: 12px;
}
.a4-kop-divider-thin {
  border-top: 1px solid #000000;
  margin-top: 2.5px;
  margin-bottom: 24px;
}
.a4-sample-body {
  font-size: 13.5px;
  color: #1E293B;
  line-height: 1.6;
}
.a4-watermark-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #EFF6FF;
  color: #2563EB;
  border: 1px dashed #93C5FD;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 20px;
}

/* Tab 2: Logo Full Viewer */
.logo-full-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.logo-full-checkerboard {
  width: 100%;
  min-height: 280px;
  background-color: #ffffff;
  background-image: linear-gradient(45deg, #f1f5f9 25%, transparent 25%),
                    linear-gradient(-45deg, #f1f5f9 25%, transparent 25%),
                    linear-gradient(45deg, transparent 75%, #f1f5f9 75%),
                    linear-gradient(-45deg, transparent 75%, #f1f5f9 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.logo-meta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: white;
  border: 1px solid #E2E8F0;
  padding: 12px 20px;
  border-radius: 10px;
  flex-wrap: wrap;
  gap: 12px;
}
.logo-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #475569;
}
.btn-print-kop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2563EB;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-print-kop:hover {
  background: #1D4ED8;
}
.btn-download-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #059669;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-download-logo:hover {
  background: #047857;
}
.btn-nav-kembali {
  padding: 8px 16px;
  border: 1.5px solid #CBD5E1;
  background: white;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-nav-kembali:hover {
  background: #F1F5F9;
  color: #1E293B;
}

/* ==========================================
   SCROLLBAR
   ========================================== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ==========================================
   RESPONSIVE (basic)
   ========================================== */
@media (max-width: 1200px) {
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .bottom-row { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .logo-text, .nav-item span, .nav-group-label span, .nav-sub-item span:not(.nav-icon-badge), .sidebar-footer span { display: none; }
  .nav-item, .nav-sub-item, .nav-group-label, .nav-logout { justify-content: center; padding: 10px; }
  .nav-sub-item { padding-left: 10px; }
  .nav-icon-badge { display: inline-flex !important; }
  .menu-icon-svg { display: inline-block !important; }
  .charts-row { grid-template-columns: 1fr; }
  .profil-grid { grid-template-columns: 1fr; }
}

/* ==========================================
   POPUP FULLSCREEN OVERLAY (LIHAT UKURAN ASLI)
   ========================================== */
.popup-fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(5px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.popup-fullscreen-box {
  background: #FFFFFF;
  border-radius: 16px;
  width: 100%;
  max-width: 860px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: popupSlideIn 0.22s ease-out;
}

@keyframes popupSlideIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.popup-fullscreen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1.5px solid #E2E8F0;
  background: #FFFFFF;
}

.popup-fullscreen-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-close-popup {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.15s;
}
.btn-close-popup:hover {
  background: #FEE2E2;
  color: #DC2626;
  border-color: #FCA5A5;
}

.btn-print-popup {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 8px;
  background: #2563EB;
  color: #FFFFFF;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-print-popup:hover {
  background: #1D4ED8;
}

.popup-fullscreen-body {
  flex: 1;
  background: #F1F5F9;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  justify-content: center;
}

.a4-paper-preview {
  background: #FFFFFF;
  width: 100%;
  max-width: 720px;
  min-height: 460px;
  padding: 36px 40px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
}

.a4-kop-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.a4-kop-logo {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.a4-kop-details {
  flex: 1;
  text-align: center;
}

.a4-nama-perusahaan {
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.a4-alamat-perusahaan {
  font-size: 12.5px;
  color: #334155;
  margin-bottom: 3px;
  line-height: 1.4;
}

.a4-kontak-perusahaan {
  font-size: 12px;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
}
.a4-kontak-perusahaan .sep {
  color: #94A3B8;
}

.a4-line-thick {
  border-top: 3.5px solid #000000;
  margin-top: 12px;
}

.a4-line-thin {
  border-top: 1px solid #000000;
  margin-top: 2.5px;
  margin-bottom: 24px;
}

.a4-blank-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  border: 1.5px dashed #CBD5E1;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  background: #FAFAFA;
}

.popup-fullscreen-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-top: 1px solid #E2E8F0;
  background: #FFFFFF;
}

/* ==========================================
   USER MENU DROPDOWN & AVATAR
   ========================================== */
.admin-profile {
  position: relative;
  user-select: none;
}

.admin-avatar {
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.admin-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.admin-chevron {
  transition: transform 0.2s ease;
}

.admin-profile.active .admin-chevron {
  transform: rotate(180deg);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 230px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15), 0 4px 12px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--gray-200);
  padding: 8px;
  z-index: 999;
  display: none;
  animation: ddFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top right;
}

.user-dropdown-menu.show {
  display: block;
}

@keyframes ddFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.user-dropdown-header {
  padding: 8px 10px 10px 10px;
}

.user-dd-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dd-role {
  font-size: 11.5px;
  color: var(--gray-500);
  margin-top: 2px;
}

.user-dropdown-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 4px 0;
}

.user-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  background: transparent;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray-700);
  text-align: left;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
}

.user-dropdown-item:hover {
  background: var(--gray-100);
  color: var(--blue-primary);
}

.user-dd-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 15px;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.user-dropdown-item:hover .user-dd-icon {
  background: var(--blue-soft);
  color: var(--blue-primary);
}

.user-dd-label {
  display: flex;
  flex-direction: column;
}

.user-dd-title {
  font-size: 13.5px;
  font-weight: 600;
  color: inherit;
}

.user-dd-sub {
  font-size: 11px;
  color: var(--gray-400);
}

.user-dropdown-danger:hover {
  background: #fef2f2 !important;
  color: #ef4444 !important;
}

.user-dropdown-danger:hover .user-dd-icon {
  background: #fee2e2 !important;
  color: #ef4444 !important;
}

/* ==========================================
   NOTIFICATION DROPDOWN MENU (PERSIS SCREENSHOT)
   ========================================== */
.notif-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: -80px;
  width: 350px;
  max-width: calc(100vw - 24px);
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.14), 0 4px 12px rgba(15, 23, 42, 0.05);
  z-index: 1000;
  display: none;
  animation: notifBoxFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top right;
  overflow: visible;
  text-align: left;
  cursor: default;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.notif-dropdown-menu.show {
  display: flex !important;
  flex-direction: column !important;
}

/* Caret Arrow segitiga ke atas mengarah ke lonceng */
.notif-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 94px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  transform: rotate(45deg);
  border-top: 1px solid #E2E8F0;
  border-left: 1px solid #E2E8F0;
  border-top-left-radius: 2px;
  z-index: 10;
}

/* Header: Pemberitahuan & Tandai semua dibaca */
.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 14px 20px;
  border-bottom: 1px solid #F1F5F9;
  background: #ffffff;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  position: relative;
  z-index: 1;
}

.notif-header-title {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
  letter-spacing: -0.2px;
}

.notif-mark-all-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 12.5px;
  font-weight: 500;
  color: #0284C7;
  cursor: pointer;
  transition: color 0.15s ease;
  font-family: inherit;
}

.notif-mark-all-link:hover {
  color: #0369A1;
  text-decoration: underline;
}

/* Scrollable Container of Items */
.notif-dropdown-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  position: relative;
  z-index: 1;
}

.notif-dropdown-list::-webkit-scrollbar {
  width: 5px;
}

.notif-dropdown-list::-webkit-scrollbar-thumb {
  background: #E2E8F0;
  border-radius: 10px;
}

/* Row Item */
.notif-item-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 20px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
  position: relative;
  background: #ffffff;
  border-bottom: 1px solid #F8FAFC;
}

.notif-item-row:last-child {
  border-bottom: none;
}

.notif-item-row:hover {
  background: #F8FAFC;
}

/* Soft Icon Box */
.notif-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.notif-item-icon.masuk {
  background: #E0F2FE;
  color: #0284C7;
}

.notif-item-icon.keluar {
  background: #F3E8FF;
  color: #9333EA;
}

/* Content */
.notif-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.notif-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.35;
  word-break: break-word;
}

/* Pill Badges */
.notif-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 14px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1px;
  line-height: 1.25;
  margin-top: 1px;
  margin-bottom: 2px;
}

.notif-pill.masuk {
  background: #0284C7;
  color: #ffffff;
}

.notif-pill.keluar {
  background: #7C3AED;
  color: #ffffff;
}

.notif-item-time {
  font-size: 11.5px;
  color: #64748B;
  font-weight: 400;
}

/* Blue Unread Dot on the right */
.notif-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0284C7;
  flex-shrink: 0;
  align-self: center;
  margin-left: auto;
}

/* Footer: Lihat Semua */
.notif-dropdown-footer {
  padding: 13px 20px;
  border-top: 1px solid #F1F5F9;
  text-align: center;
  background: #ffffff;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  position: relative;
  z-index: 1;
}

.notif-view-all-link {
  font-size: 12.5px;
  font-weight: 600;
  color: #0284C7;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.notif-view-all-link:hover {
  color: #0369A1;
  text-decoration: underline;
}

/* Empty State */
.notif-empty-state {
  padding: 34px 20px;
  text-align: center;
  color: #64748B;
}

.notif-empty-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #F1F5F9;
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 20px;
}

.notif-empty-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 4px;
}

.notif-empty-sub {
  font-size: 11.5px;
  color: #64748B;
  line-height: 1.45;
  max-width: 270px;
  margin: 0 auto;
}

@keyframes notifBoxFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(-6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (max-width: 640px) {
  .notif-dropdown-menu {
    right: -60px;
    width: calc(100vw - 24px);
    max-height: 82vh;
  }
  .notif-dropdown-menu::before {
    right: 74px;
  }
}

/* ==========================================
   DARK CYBER MIDNIGHT THEME OVERRIDES
   ========================================== */
[data-theme="dark"] .notif-dropdown-menu,
body.dark-theme .notif-dropdown-menu {
  background: #0B1120 !important;
  border: 1px solid rgba(0, 240, 255, 0.35) !important;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 240, 255, 0.15) !important;
}

[data-theme="dark"] .notif-dropdown-menu::before,
body.dark-theme .notif-dropdown-menu::before {
  background: #0B1120 !important;
  border-top-color: rgba(0, 240, 255, 0.35) !important;
  border-left-color: rgba(0, 240, 255, 0.35) !important;
}

[data-theme="dark"] .notif-dropdown-header,
body.dark-theme .notif-dropdown-header {
  background: #0B1120 !important;
  border-bottom-color: rgba(0, 240, 255, 0.15) !important;
}

[data-theme="dark"] .notif-header-title,
body.dark-theme .notif-header-title {
  color: #F8FAFC !important;
}

[data-theme="dark"] .notif-mark-all-link,
body.dark-theme .notif-mark-all-link {
  color: #00F0FF !important;
}

[data-theme="dark"] .notif-dropdown-list,
body.dark-theme .notif-dropdown-list {
  background: #0B1120 !important;
}

[data-theme="dark"] .notif-item-row,
body.dark-theme .notif-item-row {
  background: #0B1120 !important;
  border-bottom-color: rgba(148, 163, 184, 0.08) !important;
}

[data-theme="dark"] .notif-item-row:hover,
body.dark-theme .notif-item-row:hover {
  background: rgba(0, 240, 255, 0.06) !important;
}

[data-theme="dark"] .notif-item-icon.masuk,
body.dark-theme .notif-item-icon.masuk {
  background: rgba(2, 132, 199, 0.2) !important;
  color: #38BDF8 !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
}

[data-theme="dark"] .notif-item-icon.keluar,
body.dark-theme .notif-item-icon.keluar {
  background: rgba(124, 58, 237, 0.2) !important;
  color: #C084FC !important;
  border: 1px solid rgba(192, 132, 252, 0.35) !important;
}

[data-theme="dark"] .notif-item-title,
body.dark-theme .notif-item-title {
  color: #F8FAFC !important;
}

[data-theme="dark"] .notif-item-time,
body.dark-theme .notif-item-time {
  color: #94A3B8 !important;
}

[data-theme="dark"] .notif-unread-dot,
body.dark-theme .notif-unread-dot {
  background: #00F0FF !important;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.7) !important;
}

[data-theme="dark"] .notif-dropdown-footer,
body.dark-theme .notif-dropdown-footer {
  background: #0B1120 !important;
  border-top-color: rgba(0, 240, 255, 0.15) !important;
}

[data-theme="dark"] .notif-view-all-link,
body.dark-theme .notif-view-all-link {
  color: #00F0FF !important;
}

[data-theme="dark"] .notif-empty-circle,
body.dark-theme .notif-empty-circle {
  background: rgba(148, 163, 184, 0.15) !important;
  color: #64748B !important;
}

[data-theme="dark"] .notif-empty-title,
body.dark-theme .notif-empty-title {
  color: #F8FAFC !important;
}

[data-theme="dark"] .notif-empty-sub,
body.dark-theme .notif-empty-sub {
  color: #94A3B8 !important;
}

/* ==========================================
   USER PROFILE MODAL & AVATAR CROPPER
   ========================================== */
.profile-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.profile-avatar-circle {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  position: relative;
  background: linear-gradient(135deg, var(--blue-primary), var(--purple-primary));
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
  border: 3px solid #ffffff;
}

.profile-avatar-img-wrap {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 40px;
}

.profile-avatar-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2563eb;
  color: white;
  border: 2.5px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.15s, background 0.15s;
}

.profile-avatar-badge:hover {
  transform: scale(1.1);
  background: #1d4ed8;
}

.profile-avatar-hint {
  margin-top: 10px;
  text-align: center;
}

.btn-text-photo {
  background: none;
  border: none;
  color: var(--blue-primary);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  padding: 4px 8px;
}
.btn-text-photo:hover {
  text-decoration: underline;
}

.profile-avatar-hint p {
  font-size: 11.5px;
  color: var(--gray-400);
  margin-top: 2px;
}

.profile-form-group {
  margin-bottom: 16px;
}

.profile-form-group .form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.profile-form-group .form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--gray-300);
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.profile-form-group .form-control:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.profile-form-row {
  display: flex;
  gap: 12px;
}

/* Crop Viewport Box */
.crop-viewport-box {
  width: 340px;
  height: 340px;
  position: relative;
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.crop-viewport-box:active {
  cursor: grabbing;
}

.crop-viewport-box canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.crop-controls-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  width: 100%;
  max-width: 340px;
  flex-wrap: wrap;
  justify-content: center;
}

.crop-btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--gray-100);
  color: var(--gray-700);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}

.crop-btn-icon:hover {
  background: var(--gray-200);
}

.crop-zoom-slider {
  flex: 1;
  min-width: 100px;
  accent-color: var(--blue-primary);
  cursor: pointer;
}

.crop-btn-action {
  padding: 6px 10px;
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: 6px;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: background 0.15s;
}

.crop-btn-action:hover {
  background: var(--gray-200);
}

/* Theme Selection Cards */
.theme-selection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 500px) {
  .theme-selection-grid {
    grid-template-columns: 1fr;
  }
}

.theme-card {
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  background: #ffffff;
}

.theme-card:hover {
  border-color: var(--blue-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.theme-card.active {
  border-color: var(--blue-primary);
  background: #eff6ff;
  box-shadow: 0 0 0 1px var(--blue-primary);
}

.theme-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.theme-icon-sun {
  background: #fef3c7;
  color: #d97706;
}

.theme-icon-moon {
  background: #ede9fe;
  color: #7c3aed;
}

.theme-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
}

.theme-card-desc {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.4;
}

.theme-radio-check {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 18px;
  color: var(--gray-300);
  transition: color 0.15s;
}

.theme-card.active .theme-radio-check {
  color: var(--blue-primary);
}

/* ==========================================================================
   SIRAMA CYBER MIDNIGHT / DARK CYBERPUNK THEME
   Style: UI/UX Interface Design Showcase, Dark Futuristic
   Only activates when data-theme="dark" or body.dark-theme is present!
   ========================================================================== */

[data-theme="dark"],
body.dark-theme {
  --cyber-bg: #060814;
  --cyber-surface: rgba(10, 16, 36, 0.82);
  --cyber-surface-card: rgba(8, 14, 34, 0.88);
  --cyber-cyan: #00f0ff;
  --cyber-magenta: #d946ef;
  --cyber-violet: #8b5cf6;
  --cyber-green: #10b981;
  --cyber-amber: #f59e0b;
  --cyber-red: #ff3366;
  --cyber-blue-soft: rgba(0, 240, 255, 0.12);
  --cyber-border: rgba(0, 240, 255, 0.18);
  --cyber-border-glow: 0 0 15px rgba(0, 240, 255, 0.25);

  --gray-50: #080d22;
  --gray-100: #0d1533;
  --gray-200: rgba(0, 240, 255, 0.15);
  --gray-300: rgba(0, 240, 255, 0.25);
  --gray-400: #94a3b8;
  --gray-500: #cbd5e1;
  --gray-600: #e2e8f0;
  --gray-700: #f1f5f9;
  --gray-800: #f8fafc;
  --blue-soft: rgba(0, 240, 255, 0.12);
  --blue-light: #0d224d;
  --purple-light: rgba(217, 70, 239, 0.15);
  --green-light: rgba(16, 185, 129, 0.15);
  --orange-light: rgba(245, 158, 11, 0.15);

  background-color: #060814 !important;
  background-image: 
    radial-gradient(circle at 18% 18%, rgba(0, 240, 255, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 82% 82%, rgba(217, 70, 239, 0.08) 0%, transparent 45%),
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px) !important;
  background-size: 100% 100%, 100% 100%, 36px 36px, 36px 36px !important;
  background-attachment: fixed !important;
  color: #cbd5e1;
}

/* Base Headings & Typography in Dark Theme */
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6,
body.dark-theme h1, body.dark-theme h2, body.dark-theme h3,
body.dark-theme h4, body.dark-theme h5, body.dark-theme h6,
[data-theme="dark"] .wizard-header h2,
[data-theme="dark"] .step-section-header h3,
[data-theme="dark"] .preview-panel-title,
[data-theme="dark"] .preview-table-header,
[data-theme="dark"] .upload-title,
[data-theme="dark"] .table-title,
[data-theme="dark"] .chart-title,
[data-theme="dark"] .profil-form-title h2,
[data-theme="dark"] .system-card-name,
body.dark-theme .wizard-header h2,
body.dark-theme .step-section-header h3,
body.dark-theme .preview-panel-title,
body.dark-theme .preview-table-header,
body.dark-theme .upload-title,
body.dark-theme .table-title,
body.dark-theme .chart-title,
body.dark-theme .profil-form-title h2,
body.dark-theme .system-card-name {
  color: #f1f5f9 !important;
}

[data-theme="dark"] p,
[data-theme="dark"] .wizard-header p,
[data-theme="dark"] .step-section-header p,
[data-theme="dark"] .system-card-desc,
[data-theme="dark"] .upload-sub,
[data-theme="dark"] .upload-hint,
[data-theme="dark"] .stat-label,
[data-theme="dark"] .stat-from,
[data-theme="dark"] .info-desc,
[data-theme="dark"] .info-highlight-sub,
[data-theme="dark"] .table-count,
[data-theme="dark"] .table-pagination,
body.dark-theme p,
body.dark-theme .wizard-header p,
body.dark-theme .step-section-header p,
body.dark-theme .system-card-desc,
body.dark-theme .upload-sub,
body.dark-theme .upload-hint,
body.dark-theme .stat-label,
body.dark-theme .stat-from,
body.dark-theme .info-desc,
body.dark-theme .info-highlight-sub,
body.dark-theme .table-count,
body.dark-theme .table-pagination {
  color: #94a3b8 !important;
}

[data-theme="dark"] label,
[data-theme="dark"] .form-label,
[data-theme="dark"] .form-group label,
[data-theme="dark"] .form-group-sm label,
body.dark-theme label,
body.dark-theme .form-label,
body.dark-theme .form-group label,
body.dark-theme .form-group-sm label {
  color: #cbd5e1 !important;
}

/* ==========================================================================
   SIDEBAR (CYBER MIDNIGHT GLASS)
   ========================================================================== */
[data-theme="dark"] .sidebar,
body.dark-theme .sidebar {
  background: rgba(6, 10, 26, 0.94) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-right: 1px solid rgba(0, 240, 255, 0.18) !important;
  box-shadow: 4px 0 28px rgba(0, 0, 0, 0.7), inset -1px 0 0 rgba(0, 240, 255, 0.08) !important;
}

[data-theme="dark"] .sidebar-header,
[data-theme="dark"] .sidebar-logo,
body.dark-theme .sidebar-header,
body.dark-theme .sidebar-logo {
  border-bottom: 1px solid rgba(0, 240, 255, 0.15) !important;
  position: relative;
}

/* SIRAMA Logo in Dark Theme */
[data-theme="dark"] .sidebar-logo img,
body.dark-theme .sidebar-logo img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35)) !important;
}

[data-theme="dark"] .sidebar-logo .logo-sub,
body.dark-theme .sidebar-logo .logo-sub {
  color: #94a3b8 !important;
  font-family: 'Inter', -apple-system, sans-serif !important;
  letter-spacing: 0.3px;
  font-size: 11px !important;
}

/* Navigation items in Cyber Typography */
[data-theme="dark"] .nav-item,
[data-theme="dark"] .nav-group-label,
[data-theme="dark"] .nav-sub-item,
body.dark-theme .nav-item,
body.dark-theme .nav-group-label,
body.dark-theme .nav-sub-item {
  color: #94a3b8;
  font-family: 'Inter', -apple-system, sans-serif !important;
  font-size: 13.5px;
  font-weight: 700 !important;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
  border-radius: 8px;
}

[data-theme="dark"] .nav-item:hover,
[data-theme="dark"] .nav-group-label:hover,
[data-theme="dark"] .nav-sub-item:hover,
body.dark-theme .nav-item:hover,
body.dark-theme .nav-group-label:hover,
body.dark-theme .nav-sub-item:hover {
  background: rgba(0, 240, 255, 0.09) !important;
  color: #00f0ff !important;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
}

[data-theme="dark"] .nav-item:hover i,
[data-theme="dark"] .nav-group-label:hover i,
body.dark-theme .nav-item:hover i,
body.dark-theme .nav-group-label:hover i {
  color: #00f0ff !important;
  filter: drop-shadow(0 0 7px rgba(0, 240, 255, 0.85));
}

/* Active Nav Item - Neon Cyan Glow Pill */
[data-theme="dark"] .nav-item.active,
[data-theme="dark"] .nav-sub-item.active,
body.dark-theme .nav-item.active,
body.dark-theme .nav-sub-item.active {
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.22) 0%, rgba(139, 92, 246, 0.16) 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(0, 240, 255, 0.6) !important;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.4), inset 0 0 10px rgba(0, 240, 255, 0.2) !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
}

[data-theme="dark"] .nav-item.active i,
[data-theme="dark"] .nav-sub-item.active i,
body.dark-theme .nav-item.active i,
body.dark-theme .nav-sub-item.active i {
  color: #00f0ff !important;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.95));
}

/* Sleek Glowing Red Logout Button with Cybernetic Brackets */
[data-theme="dark"] .sidebar-footer,
body.dark-theme .sidebar-footer {
  border-top: 1px solid rgba(0, 240, 255, 0.15) !important;
}

[data-theme="dark"] .nav-logout,
body.dark-theme .nav-logout {
  background: rgba(255, 51, 102, 0.08) !important;
  color: #ff3366 !important;
  border: 1px solid rgba(255, 51, 102, 0.35) !important;
  border-radius: 8px;
  font-family: 'Inter', monospace, sans-serif !important;
  letter-spacing: 0.8px;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: 0 0 12px rgba(255, 51, 102, 0.15);
  font-weight: 600;
}

[data-theme="dark"] .nav-logout:hover,
body.dark-theme .nav-logout:hover {
  background: rgba(255, 51, 102, 0.22) !important;
  color: #ffffff !important;
  border-color: #ff3366 !important;
  box-shadow: 0 4px 12px rgba(255, 51, 102, 0.35) !important;
}

[data-theme="dark"] .nav-logout i,
body.dark-theme .nav-logout i {
  color: #ff3366 !important;
  filter: drop-shadow(0 0 6px rgba(255, 51, 102, 0.8));
}

/* ==========================================================================
   TOPBAR & HUD ELEMENTS
   ========================================================================== */
[data-theme="dark"] .topbar,
body.dark-theme .topbar {
  background: rgba(6, 10, 26, 0.88) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(0, 240, 255, 0.16) !important;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.5) !important;
}

/* High-tech notification bell icon with digital pulse ring */
[data-theme="dark"] .notif-btn,
body.dark-theme .notif-btn {
  background: rgba(10, 18, 42, 0.9) !important;
  border: 1px solid rgba(0, 240, 255, 0.38) !important;
  color: #00f0ff !important;
  border-radius: 50% !important;
  position: relative;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25) !important;
  transition: all 0.25s ease;
}

[data-theme="dark"] .notif-btn::after,
body.dark-theme .notif-btn::after {
  display: none !important;
}

[data-theme="dark"] .notif-btn:hover,
body.dark-theme .notif-btn:hover {
  background: rgba(0, 240, 255, 0.18) !important;
  border-color: #00f0ff !important;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.6) !important;
}

/* Cybernetic Avatar Profile */
[data-theme="dark"] .admin-profile,
body.dark-theme .admin-profile {
  background: rgba(10, 18, 42, 0.85) !important;
  border: 1px solid rgba(0, 240, 255, 0.25) !important;
  backdrop-filter: blur(12px) !important;
  border-radius: 30px !important;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.15) !important;
  transition: all 0.25s ease;
}

[data-theme="dark"] .admin-profile:hover,
body.dark-theme .admin-profile:hover {
  border-color: #00f0ff !important;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.45) !important;
}

[data-theme="dark"] .admin-avatar,
body.dark-theme .admin-avatar {
  border: 2px solid #00f0ff !important;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.55) !important;
  background: linear-gradient(135deg, #00f0ff 0%, #7000ff 100%) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .admin-name,
body.dark-theme .admin-name {
  color: #f8fafc !important;
  font-weight: 600;
  font-family: 'Inter', sans-serif !important;
}

[data-theme="dark"] .admin-role,
body.dark-theme .admin-role {
  color: #38bdf8 !important;
  font-weight: 500;
  font-family: 'Inter', sans-serif !important;
}

[data-theme="dark"] .admin-chevron,
body.dark-theme .admin-chevron {
  color: #00f0ff !important;
}

/* Dropdown Menus */
[data-theme="dark"] .user-dropdown-menu,
[data-theme="dark"] .notif-dropdown-menu,
body.dark-theme .user-dropdown-menu,
body.dark-theme .notif-dropdown-menu {
  background: rgba(10, 16, 38, 0.96) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(0, 240, 255, 0.25) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 240, 255, 0.15) !important;
}

[data-theme="dark"] .user-dd-name,
[data-theme="dark"] .notif-title-text,
body.dark-theme .user-dd-name,
body.dark-theme .notif-title-text {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .user-dropdown-divider,
[data-theme="dark"] .notif-item,
body.dark-theme .user-dropdown-divider,
body.dark-theme .notif-item {
  border-bottom: 1px solid rgba(0, 240, 255, 0.1) !important;
}

[data-theme="dark"] .user-dropdown-item:hover,
body.dark-theme .user-dropdown-item:hover {
  background: rgba(0, 240, 255, 0.1) !important;
  color: #00f0ff !important;
}

/* ==========================================================================
   HERO BANNER (HOLOGRAPHIC & GLASSMORPHISM)
   ========================================================================== */
[data-theme="dark"] .hero-banner,
body.dark-theme .hero-banner {
  background: linear-gradient(135deg, rgba(8, 16, 42, 0.92) 0%, rgba(22, 12, 48, 0.92) 100%) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border: 1px solid rgba(0, 240, 255, 0.28) !important;
  border-radius: 16px !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(0, 240, 255, 0.35), 0 0 25px rgba(0, 240, 255, 0.12) !important;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .hero-banner::before,
body.dark-theme .hero-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1.5px;
  background: linear-gradient(90deg, transparent, #00f0ff, #d946ef, transparent);
  opacity: 0.9;
}

[data-theme="dark"] .hero-text h1,
body.dark-theme .hero-text h1 {
  color: #f8fafc !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 700;
}

[data-theme="dark"] .hero-highlight,
body.dark-theme .hero-highlight {
  color: #38bdf8 !important;
}

/* Holographic Envelope Graphic */
[data-theme="dark"] .hero-illustration svg,
body.dark-theme .hero-illustration svg {
  filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.45)) drop-shadow(0 0 20px rgba(217, 70, 239, 0.35)) !important;
}

[data-theme="dark"] .hero-illustration rect[fill="#e8f0fe"],
body.dark-theme .hero-illustration rect[fill="#e8f0fe"] {
  fill: rgba(10, 25, 60, 0.8) !important;
  stroke: #00f0ff !important;
  stroke-width: 1.5px;
}

[data-theme="dark"] .hero-illustration path[stroke="#7cb3f8"],
body.dark-theme .hero-illustration path[stroke="#7cb3f8"] {
  stroke: #00f0ff !important;
  filter: drop-shadow(0 0 6px #00f0ff);
}

[data-theme="dark"] .hero-illustration rect[fill="#ffd580"],
body.dark-theme .hero-illustration rect[fill="#ffd580"] {
  fill: rgba(217, 70, 239, 0.25) !important;
  stroke: #d946ef !important;
  stroke-width: 1.5px;
}

[data-theme="dark"] .hero-illustration rect[fill="#ffc040"],
body.dark-theme .hero-illustration rect[fill="#ffc040"] {
  fill: #d946ef !important;
}

[data-theme="dark"] .hero-illustration rect[fill="white"],
body.dark-theme .hero-illustration rect[fill="white"] {
  fill: rgba(14, 22, 50, 0.9) !important;
  stroke: rgba(0, 240, 255, 0.5) !important;
}

[data-theme="dark"] .hero-illustration rect[fill="#c0cfe8"],
body.dark-theme .hero-illustration rect[fill="#c0cfe8"] {
  fill: #00f0ff !important;
}

/* ==========================================================================
   KPI SUMMARY CARDS (4 TRANSLUCENT FROSTED GLASS PANELS)
   ========================================================================== */
[data-theme="dark"] .stat-card,
body.dark-theme .stat-card {
  background: rgba(10, 16, 36, 0.82) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-radius: 14px !important;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

[data-theme="dark"] .stat-card .stat-label,
body.dark-theme .stat-card .stat-label {
  color: #94a3b8 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

[data-theme="dark"] .stat-card .stat-number,
body.dark-theme .stat-card .stat-number {
  color: #ffffff !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 700;
  font-size: 32px;
}

/* Card 1: Surat Masuk (Bulan Ini) - Electric Cyan */
[data-theme="dark"] .stat-card.stat-blue,
body.dark-theme .stat-card.stat-blue {
  border: 1px solid rgba(0, 240, 255, 0.22) !important;
  border-bottom: 3px solid #00f0ff !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 4px 18px rgba(0, 240, 255, 0.2) !important;
}

[data-theme="dark"] .stat-card.stat-blue:hover,
body.dark-theme .stat-card.stat-blue:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 6px 25px rgba(0, 240, 255, 0.4) !important;
}

[data-theme="dark"] .stat-icon-wrap.stat-icon-blue,
body.dark-theme .stat-icon-wrap.stat-icon-blue {
  background: rgba(0, 240, 255, 0.15) !important;
  color: #00f0ff !important;
  border: 1px solid rgba(0, 240, 255, 0.4) !important;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.35) !important;
}

[data-theme="dark"] .stat-card.stat-blue .stat-number,
body.dark-theme .stat-card.stat-blue .stat-number {
  color: #38bdf8 !important;
}

/* Card 2: Surat Keluar (Bulan Ini) - Magenta */
[data-theme="dark"] .stat-card.stat-purple,
body.dark-theme .stat-card.stat-purple {
  border: 1px solid rgba(217, 70, 239, 0.22) !important;
  border-bottom: 3px solid #d946ef !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 4px 18px rgba(217, 70, 239, 0.2) !important;
}

[data-theme="dark"] .stat-card.stat-purple:hover,
body.dark-theme .stat-card.stat-purple:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 6px 25px rgba(217, 70, 239, 0.4) !important;
}

[data-theme="dark"] .stat-icon-wrap.stat-icon-purple,
body.dark-theme .stat-icon-wrap.stat-icon-purple {
  background: rgba(217, 70, 239, 0.15) !important;
  color: #d946ef !important;
  border: 1px solid rgba(217, 70, 239, 0.4) !important;
  box-shadow: 0 0 15px rgba(217, 70, 239, 0.35) !important;
}

[data-theme="dark"] .stat-card.stat-purple .stat-number,
body.dark-theme .stat-card.stat-purple .stat-number {
  color: #e879f9 !important;
}

/* Card 3: Total Arsip Surat Masuk - Neon Green */
[data-theme="dark"] .stat-card.stat-green,
body.dark-theme .stat-card.stat-green {
  border: 1px solid rgba(16, 185, 129, 0.22) !important;
  border-bottom: 3px solid #10b981 !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 4px 18px rgba(16, 185, 129, 0.2) !important;
}

[data-theme="dark"] .stat-card.stat-green:hover,
body.dark-theme .stat-card.stat-green:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 6px 25px rgba(16, 185, 129, 0.4) !important;
}

[data-theme="dark"] .stat-icon-wrap.stat-icon-green,
body.dark-theme .stat-icon-wrap.stat-icon-green {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #10b981 !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.35) !important;
}

[data-theme="dark"] .stat-card.stat-green .stat-number,
body.dark-theme .stat-card.stat-green .stat-number {
  color: #34d399 !important;
}

/* Card 4: Total Arsip Surat Keluar - Neon Amber/Gold */
[data-theme="dark"] .stat-card.stat-orange,
body.dark-theme .stat-card.stat-orange {
  border: 1px solid rgba(245, 158, 11, 0.22) !important;
  border-bottom: 3px solid #f59e0b !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 4px 18px rgba(245, 158, 11, 0.2) !important;
}

[data-theme="dark"] .stat-card.stat-orange:hover,
body.dark-theme .stat-card.stat-orange:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 6px 25px rgba(245, 158, 11, 0.4) !important;
}

[data-theme="dark"] .stat-icon-wrap.stat-icon-orange,
body.dark-theme .stat-icon-wrap.stat-icon-orange {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #f59e0b !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.35) !important;
}

[data-theme="dark"] .stat-card.stat-orange .stat-number,
body.dark-theme .stat-card.stat-orange .stat-number {
  color: #fbbf24 !important;
}

/* ==========================================================================
   DATA VISUALIZATIONS (CHARTS ROW)
   ========================================================================== */
[data-theme="dark"] .chart-card,
body.dark-theme .chart-card {
  background: rgba(10, 16, 36, 0.82) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(0, 240, 255, 0.2) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(0, 240, 255, 0.18) !important;
  border-radius: 14px !important;
  position: relative;
}

[data-theme="dark"] .chart-card::before,
body.dark-theme .chart-card::before {
  content: '';
  position: absolute;
  top: 0; left: 24px; right: 24px; height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.5), transparent);
}

[data-theme="dark"] .chart-title strong,
body.dark-theme .chart-title strong {
  color: #f1f5f9 !important;
  font-family: 'Inter', sans-serif !important;
  letter-spacing: 0.3px;
}

[data-theme="dark"] .chart-title i,
body.dark-theme .chart-title i {
  color: #00f0ff !important;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.8));
}

[data-theme="dark"] .chart-select,
body.dark-theme .chart-select {
  background: rgba(6, 12, 30, 0.88) !important;
  border: 1px solid rgba(0, 240, 255, 0.25) !important;
  color: #cbd5e1 !important;
  border-radius: 8px;
  font-family: 'Inter', sans-serif !important;
}

[data-theme="dark"] .chart-legend,
body.dark-theme .chart-legend {
  color: #94a3b8 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px;
}

/* Donut Center HUD & Legend */
[data-theme="dark"] .donut-total-num,
body.dark-theme .donut-total-num {
  color: #38bdf8 !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 700;
}

[data-theme="dark"] .donut-total-label,
[data-theme="dark"] .donut-total-sub,
body.dark-theme .donut-total-label,
body.dark-theme .donut-total-sub {
  color: #94a3b8 !important;
  font-family: 'Inter', sans-serif !important;
}

[data-theme="dark"] .dl-item,
body.dark-theme .dl-item {
  border-bottom: 1px solid rgba(0, 240, 255, 0.08) !important;
  color: #cbd5e1 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px;
}

[data-theme="dark"] .dl-dot,
body.dark-theme .dl-dot {
  box-shadow: 0 0 8px currentColor;
}

[data-theme="dark"] .dl-val,
body.dark-theme .dl-val {
  color: #f8fafc !important;
  font-weight: 600;
}

[data-theme="dark"] .dl-pct,
body.dark-theme .dl-pct {
  color: #38bdf8 !important;
}

/* ==========================================================================
   TABLE CARD & INFORMASI SISTEM (BOTTOM ROW)
   ========================================================================== */
[data-theme="dark"] .table-card,
[data-theme="dark"] .info-card,
body.dark-theme .table-card,
body.dark-theme .info-card {
  background: rgba(10, 16, 36, 0.82) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(0, 240, 255, 0.18) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(0, 240, 255, 0.12) !important;
  border-radius: 14px !important;
}

[data-theme="dark"] .table-title strong,
[data-theme="dark"] .info-header strong,
body.dark-theme .table-title strong,
body.dark-theme .info-header strong {
  color: #f1f5f9 !important;
  font-family: 'Inter', sans-serif !important;
}

[data-theme="dark"] .table-title i,
[data-theme="dark"] .info-header i,
body.dark-theme .table-title i,
body.dark-theme .info-header i {
  color: #00f0ff !important;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.8));
}

[data-theme="dark"] .lihat-semua,
body.dark-theme .lihat-semua {
  color: #38bdf8 !important;
  font-family: 'Inter', sans-serif !important;
}

[data-theme="dark"] .info-highlight,
body.dark-theme .info-highlight {
  background: rgba(0, 240, 255, 0.06) !important;
  border: 1px solid rgba(0, 240, 255, 0.22) !important;
  border-radius: 10px;
}

[data-theme="dark"] .info-icon-box,
body.dark-theme .info-icon-box {
  background: rgba(0, 240, 255, 0.15) !important;
  color: #00f0ff !important;
  border: 1px solid rgba(0, 240, 255, 0.4) !important;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
}

[data-theme="dark"] .info-highlight-title,
body.dark-theme .info-highlight-title {
  color: #ffffff !important;
  font-family: 'Inter', sans-serif !important;
}

[data-theme="dark"] .info-highlight-sub,
body.dark-theme .info-highlight-sub {
  color: #38bdf8 !important;
  font-family: 'Inter', sans-serif !important;
}

[data-theme="dark"] .info-desc,
body.dark-theme .info-desc {
  color: #94a3b8 !important;
  font-family: 'Inter', sans-serif !important;
}

/* ==========================================================================
   TABLES & BADGES IN DARK CYBERPUNK
   ========================================================================== */
[data-theme="dark"] table,
[data-theme="dark"] .arsip-table,
[data-theme="dark"] .preview-table,
[data-theme="dark"] .buku-agenda-table,
body.dark-theme table,
body.dark-theme .arsip-table,
body.dark-theme .preview-table,
body.dark-theme .buku-agenda-table {
  color: #cbd5e1 !important;
  background: transparent !important;
}

[data-theme="dark"] th,
body.dark-theme th {
  background: rgba(8, 14, 34, 0.95) !important;
  color: #38bdf8 !important;
  border-bottom: 1px solid rgba(0, 240, 255, 0.25) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px;
}

[data-theme="dark"] td,
body.dark-theme td {
  border-bottom: 1px solid rgba(0, 240, 255, 0.08) !important;
  border-top: none !important;
  color: #cbd5e1 !important;
  background: transparent !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13.5px;
}

[data-theme="dark"] tr:hover td,
body.dark-theme tr:hover td {
  background: rgba(0, 240, 255, 0.05) !important;
}

/* Cyber Badges */
[data-theme="dark"] .badge-masuk,
body.dark-theme .badge-masuk {
  background: rgba(0, 240, 255, 0.15) !important;
  color: #00f0ff !important;
  border: 1px solid rgba(0, 240, 255, 0.45) !important;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.35);
}

[data-theme="dark"] .badge-keluar,
body.dark-theme .badge-keluar {
  background: rgba(217, 70, 239, 0.15) !important;
  color: #d946ef !important;
  border: 1px solid rgba(217, 70, 239, 0.45) !important;
  box-shadow: 0 0 8px rgba(217, 70, 239, 0.35);
}

[data-theme="dark"] .badge-tersimpan,
body.dark-theme .badge-tersimpan {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #10b981 !important;
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.35);
}

[data-theme="dark"] .badge-biasa,
body.dark-theme .badge-biasa {
  background: rgba(148, 163, 184, 0.12) !important;
  color: #94a3b8 !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
}

[data-theme="dark"] .badge-penting,
body.dark-theme .badge-penting {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #f59e0b !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.35);
}

[data-theme="dark"] .badge-segera,
body.dark-theme .badge-segera {
  background: rgba(249, 115, 22, 0.15) !important;
  color: #fb923c !important;
  border: 1px solid rgba(249, 115, 22, 0.45) !important;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.35);
}

[data-theme="dark"] .badge-sangat-segera,
[data-theme="dark"] .badge-rahasia,
body.dark-theme .badge-sangat-segera,
body.dark-theme .badge-rahasia {
  background: rgba(255, 51, 102, 0.15) !important;
  color: #ff3366 !important;
  border: 1px solid rgba(255, 51, 102, 0.45) !important;
  box-shadow: 0 0 8px rgba(255, 51, 102, 0.35);
}

/* ==========================================================================
   INPUTS, FORMS & CONTROLS IN DARK THEME
   ========================================================================== */
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea,
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-control-sm,
[data-theme="dark"] .search-input,
[data-theme="dark"] .filter-select,
[data-theme="dark"] .date-input,
body.dark-theme input,
body.dark-theme select,
body.dark-theme textarea,
body.dark-theme .form-control,
body.dark-theme .form-control-sm,
body.dark-theme .search-input,
body.dark-theme .filter-select,
body.dark-theme .date-input {
  background: rgba(6, 12, 28, 0.88) !important;
  border: 1px solid rgba(0, 240, 255, 0.22) !important;
  color: #e2e8f0 !important;
  transition: all 0.2s ease;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder,
body.dark-theme input::placeholder,
body.dark-theme textarea::placeholder {
  color: #64748b !important;
}

[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus,
body.dark-theme input:focus,
body.dark-theme select:focus,
body.dark-theme textarea:focus {
  border-color: #00f0ff !important;
  background: rgba(8, 16, 36, 0.95) !important;
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.2), 0 0 15px rgba(0, 240, 255, 0.3) !important;
  outline: none !important;
}

/* Cards & Surface Containers across other pages */
[data-theme="dark"] .form-card,
[data-theme="dark"] .wizard-card,
[data-theme="dark"] .step-card,
[data-theme="dark"] .penemuan-card,
[data-theme="dark"] .filter-card,
[data-theme="dark"] .profile-card,
[data-theme="dark"] .sheet-card,
[data-theme="dark"] .card,
[data-theme="dark"] .wizard-header,
[data-theme="dark"] .wizard-body,
[data-theme="dark"] .preview-panel,
[data-theme="dark"] .agenda-form-panel,
[data-theme="dark"] .disposisi-card,
[data-theme="dark"] .profil-form-card,
[data-theme="dark"] .kop-preview-card,
[data-theme="dark"] .filter-bar,
body.dark-theme .form-card,
body.dark-theme .wizard-card,
body.dark-theme .step-card,
body.dark-theme .penemuan-card,
body.dark-theme .filter-card,
body.dark-theme .profile-card,
body.dark-theme .sheet-card,
body.dark-theme .card,
body.dark-theme .wizard-header,
body.dark-theme .wizard-body,
body.dark-theme .preview-panel,
body.dark-theme .agenda-form-panel,
body.dark-theme .disposisi-card,
body.dark-theme .profil-form-card,
body.dark-theme .kop-preview-card,
body.dark-theme .filter-bar {
  background: rgba(10, 16, 36, 0.84) !important;
  border: 1px solid rgba(0, 240, 255, 0.18) !important;
  color: #cbd5e1;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5) !important;
}

/* Modals & Dialogs */
[data-theme="dark"] .modal-dialog,
body.dark-theme .modal-dialog {
  background: rgba(10, 16, 38, 0.96) !important;
  backdrop-filter: blur(20px) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(0, 240, 255, 0.3) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 240, 255, 0.2) !important;
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer,
body.dark-theme .modal-header,
body.dark-theme .modal-footer {
  background: rgba(6, 12, 28, 0.9) !important;
  border-color: rgba(0, 240, 255, 0.15) !important;
}

[data-theme="dark"] .modal-title,
body.dark-theme .modal-title {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .modal-close-btn,
body.dark-theme .modal-close-btn {
  background: rgba(0, 240, 255, 0.1) !important;
  color: #00f0ff !important;
}

/* Modal Pencarian Otomatis Penemuan Kembali (Dark Mode & Typography) */
#modalPencarianOtomatis,
#modalDetailDrive {
  font-family: 'Times New Roman', Times, serif;
}

[data-theme="dark"] #modalPencarianOtomatis .modal-dialog,
body.dark-theme #modalPencarianOtomatis .modal-dialog {
  background: #0A1024 !important;
  border: 1.5px solid rgba(0, 240, 255, 0.35) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 240, 255, 0.2) !important;
}

[data-theme="dark"] #modalPencarianOtomatis label,
body.dark-theme #modalPencarianOtomatis label {
  color: #F1F5F9 !important;
}

[data-theme="dark"] #modalPencarianOtomatis .form-control,
body.dark-theme #modalPencarianOtomatis .form-control {
  background: rgba(15, 23, 42, 0.9) !important;
  border-color: rgba(0, 240, 255, 0.3) !important;
  color: #F8FAFC !important;
}

[data-theme="dark"] #modalPencarianOtomatis .form-control:focus,
body.dark-theme #modalPencarianOtomatis .form-control:focus {
  border-color: #00F0FF !important;
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.25) !important;
}

[data-theme="dark"] #modalPencarianOtomatis .modal-footer,
body.dark-theme #modalPencarianOtomatis .modal-footer {
  background: rgba(8, 16, 36, 0.95) !important;
  border-top-color: rgba(0, 240, 255, 0.2) !important;
}

/* Theme Selection Cards in Modal */
[data-theme="dark"] .theme-card,
body.dark-theme .theme-card {
  background: rgba(6, 12, 28, 0.9) !important;
  border: 1.5px solid rgba(0, 240, 255, 0.2) !important;
}

[data-theme="dark"] .theme-card.active,
body.dark-theme .theme-card.active {
  background: rgba(10, 20, 48, 0.95) !important;
  border-color: #00f0ff !important;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.4), inset 0 0 10px rgba(0, 240, 255, 0.2) !important;
}

[data-theme="dark"] .theme-card-title,
body.dark-theme .theme-card-title {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .theme-card-desc,
body.dark-theme .theme-card-desc {
  color: #94a3b8 !important;
}

/* Buku Agenda Controls */
[data-theme="dark"] .ba-controls-card,
body.dark-theme .ba-controls-card {
  background: #182337 !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="dark"] .ba-tab-group,
body.dark-theme .ba-tab-group {
  background: #111A29 !important;
  border: 1px solid rgba(148, 163, 184, 0.14) !important;
}

[data-theme="dark"] .ba-tab-btn,
body.dark-theme .ba-tab-btn {
  color: #94A3B8 !important;
}

[data-theme="dark"] .ba-tab-btn.active,
body.dark-theme .ba-tab-btn.active {
  background: #1E2D47 !important;
  color: #F1F5F9 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* Stepper */
[data-theme="dark"] .step-item .step-circle,
body.dark-theme .step-item .step-circle {
  background: rgba(6, 12, 28, 0.9);
  color: #94a3b8;
  border: 2px solid rgba(0, 240, 255, 0.25);
}

[data-theme="dark"] .step-item.active .step-circle,
body.dark-theme .step-item.active .step-circle {
  background: rgba(0, 240, 255, 0.2);
  color: #00f0ff;
  border-color: #00f0ff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

[data-theme="dark"] .step-item.active .step-label,
body.dark-theme .step-item.active .step-label {
  color: #00f0ff !important;
  font-weight: 700;
}

[data-theme="dark"] .step-item.completed .step-label,
body.dark-theme .step-item.completed .step-label {
  color: #10b981 !important;
}

/* Breadcrumb */
[data-theme="dark"] .breadcrumb,
[data-theme="dark"] .breadcrumb a,
[data-theme="dark"] .crumb-item,
body.dark-theme .breadcrumb,
body.dark-theme .breadcrumb a,
body.dark-theme .crumb-item {
  color: #94a3b8 !important;
}

[data-theme="dark"] .crumb-item.active,
body.dark-theme .crumb-item.active {
  color: #00f0ff !important;
}

.nav-sub-items { display: none; flex-direction: column; }
.nav-group.expanded .nav-sub-items { display: flex; }
.nav-group.expanded .chevron-icon { transform: rotate(180deg); }
.chevron-icon { margin-left: auto; transition: transform 0.2s; }
/* ================= MJ HEADER & ARSIP STYLES ================= */
.mj-header-container {
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: none !important;
    padding-bottom: 16px;
    margin-bottom: 28px;
    gap: 20px;
}
.mj-header-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 3.5px solid #000000;
    border-bottom: 1px solid #000000;
    height: 2.5px;
}
.mj-logo-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
    padding: 0;
    border-radius: 50%;
}
.mj-logo-wrapper img {
    max-width: 80px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 50%;
}
.mj-logo-inner {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border: 3px solid #f0c040;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffd700;
    font-family: 'Times New Roman', serif;
    font-size: 26px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    letter-spacing: 1px;
}
.mj-header-text {
    flex-grow: 1;
    text-align: center;
    color: #000;
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.5;
}
.mj-header-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 18pt;
    font-weight: bold;
    margin: 0 0 5px 0;
    line-height: 1.5;
}
.mj-header-address, .mj-header-contact {
    font-family: 'Times New Roman', Times, serif;
    font-size: 12pt;
    margin: 2px 0;
    line-height: 1.5;
}
.kop-link-blue,
.mj-header-contact a,
.ba-contact a,
.disp-kop-meta a,
.letter-kop-address a,
#kopEmail a,
#kopWebsite a,
#baEmail a,
#baEmailK a,
#ldEmail a,
#modalLdWeb a {
    color: #0000EE !important;
    text-decoration: underline !important;
}

/* Download Dropdown Component (Pilihan Word & PDF) */
.download-dropdown-wrap {
    position: relative;
    display: inline-block;
}
.download-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: #ffffff;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15), 0 8px 10px -6px rgba(0,0,0,0.1);
    min-width: 205px;
    z-index: 9999;
    padding: 6px 0;
    overflow: hidden;
}
.download-dropdown-menu.show {
    display: block !important;
}
.dropdown-item-download {
    width: 100%;
    text-align: left;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: #1E293B;
    cursor: pointer;
    transition: background 0.15s ease;
    font-family: inherit;
}
.dropdown-item-download:hover {
    background: #F1F5F9;
}
[data-theme="dark"] .download-dropdown-menu,
body.dark-theme .download-dropdown-menu {
    background: #1E293B;
    border-color: rgba(148, 163, 184, 0.25);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.5);
}
[data-theme="dark"] .dropdown-item-download,
body.dark-theme .dropdown-item-download {
    color: #F1F5F9;
}
[data-theme="dark"] .dropdown-item-download:hover,
body.dark-theme .dropdown-item-download:hover {
    background: #334155;
}
.mj-doc-title {
    font-family: 'Times New Roman', Times, serif;
    text-align: center;
    font-size: 16pt;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 5px;
    color: #000;
    line-height: 1.5;
}
.mj-doc-subtitle {
    font-family: 'Times New Roman', Times, serif;
    text-align: center;
    font-size: 14pt;
    font-weight: bold;
    margin-bottom: 24px;
    color: #000;
    line-height: 1.5;
}
.arsip-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 40px;
    margin-bottom: 30px;
    color: #333;
    font-family: 'Times New Roman', Times, serif;
    font-size: 12pt;
    line-height: 1.5;
}
.arsip-section-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 13pt;
    font-weight: bold;
    margin-top: 24px;
    margin-bottom: 12px;
    line-height: 1.5;
}
.arsip-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 12pt;
    line-height: 1.5;
}
.arsip-table th, .arsip-table td {
    border: 1px solid #000;
    padding: 10px 14px;
    text-align: left;
    font-family: 'Times New Roman', Times, serif;
    font-size: 12pt;
    line-height: 1.5;
}
.arsip-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}
.arsip-content {
    font-family: 'Times New Roman', Times, serif;
    font-size: 12pt;
    line-height: 1.5;
}
.arsip-content p {
    font-family: 'Times New Roman', Times, serif;
    font-size: 12pt;
    line-height: 1.5;
    margin-bottom: 12px;
}
.arsip-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 12pt;
    line-height: 1.5;
}
.arsip-content li {
    margin-bottom: 8px;
    line-height: 1.5;
    font-family: 'Times New Roman', Times, serif;
    font-size: 12pt;
}
.arsip-info-box {
    background-color: #e0f2fe;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    font-family: 'Times New Roman', Times, serif;
    font-size: 12pt;
    line-height: 1.5;
}
.arsip-info-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.arsip-info-col {
    flex: 1;
    background-color: #e0f2fe;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    padding: 15px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 12pt;
    line-height: 1.5;
}
.arsip-sub-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 12.5pt;
    font-weight: bold;
    margin-top: 14px;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Klasifikasi Table Specific */
.klasifikasi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.klasifikasi-search {
    flex-grow: 1;
    margin-right: 20px;
    position: relative;
}
.klasifikasi-search input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}
.klasifikasi-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}
.btn-primary {
    background-color: #0ea5e9;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.btn-primary:hover { background-color: #0284c7; }
.klasifikasi-table th { background-color: #f8fafc; border: 1px solid #334155 !important; color: #1E293B; font-weight: 700; text-align: left; padding: 12px 15px; vertical-align: middle; }
.klasifikasi-table td { border: 1px solid #334155 !important; padding: 10px 14px; vertical-align: middle !important; }
.btn-action-edit { color: #0ea5e9; background: none; border: none; cursor: pointer; font-size: 16px; margin-right: 10px; }
.btn-action-delete { color: #ef4444; background: none; border: none; cursor: pointer; font-size: 16px; }
.pagination { display: flex; justify-content: flex-end; align-items: center; gap: 5px; margin-top: 15px; }
.page-btn { padding: 5px 10px; border: 1px solid #ddd; background: white; cursor: pointer; border-radius: 4px; }
.page-btn.active { background: #0ea5e9; color: white; border-color: #0ea5e9; }
.table-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; color: #64748b; font-size: 14px; }

/* ========================================================
   PANDUAN KODE ARSIP & KLASIFIKASI - SOLID TABLE BORDERS
   ======================================================== */
.arsip-table,
.klasifikasi-table,
#tabelPanduanSubjek,
#tabelKlasifikasiLengkap {
  width: 100% !important;
  border-collapse: collapse !important;
  border: 1.5px solid #334155 !important;
  margin-bottom: 20px;
}

.arsip-table th,
.arsip-table td,
.klasifikasi-table th,
.klasifikasi-table td,
#tabelPanduanSubjek th,
#tabelPanduanSubjek td,
#tabelKlasifikasiLengkap th,
#tabelKlasifikasiLengkap td {
  border: 1px solid #334155 !important;
  padding: 10px 14px !important;
  font-family: 'Times New Roman', Times, serif !important;
  font-size: 12pt !important;
  line-height: 1.5 !important;
}

.arsip-table th,
.klasifikasi-table th,
#tabelPanduanSubjek th,
#tabelKlasifikasiLengkap th {
  background-color: #F1F5F9 !important;
  color: #1E293B !important;
  font-weight: 700 !important;
  text-align: center;
  border-bottom: 2px solid #334155 !important;
}

.arsip-table tr:last-child td,
.klasifikasi-table tr:last-child td {
  border-bottom: 1px solid #334155 !important;
}

/* Dark mode overrides for Panduan tables */
[data-theme="dark"] .arsip-table,
[data-theme="dark"] .klasifikasi-table,
[data-theme="dark"] #tabelPanduanSubjek,
[data-theme="dark"] #tabelKlasifikasiLengkap,
body.dark-theme .arsip-table,
body.dark-theme .klasifikasi-table,
body.dark-theme #tabelPanduanSubjek,
body.dark-theme #tabelKlasifikasiLengkap {
  border-color: rgba(148, 163, 184, 0.4) !important;
}

[data-theme="dark"] .arsip-table th,
[data-theme="dark"] .arsip-table td,
[data-theme="dark"] .klasifikasi-table th,
[data-theme="dark"] .klasifikasi-table td,
[data-theme="dark"] #tabelPanduanSubjek th,
[data-theme="dark"] #tabelPanduanSubjek td,
[data-theme="dark"] #tabelKlasifikasiLengkap th,
[data-theme="dark"] #tabelKlasifikasiLengkap td,
body.dark-theme .arsip-table th,
body.dark-theme .arsip-table td,
body.dark-theme .klasifikasi-table th,
body.dark-theme .klasifikasi-table td,
body.dark-theme #tabelPanduanSubjek th,
body.dark-theme #tabelPanduanSubjek td,
body.dark-theme #tabelKlasifikasiLengkap th,
body.dark-theme #tabelKlasifikasiLengkap td {
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
}

[data-theme="dark"] .arsip-table th,
[data-theme="dark"] .klasifikasi-table th,
[data-theme="dark"] #tabelPanduanSubjek th,
[data-theme="dark"] #tabelKlasifikasiLengkap th,
body.dark-theme .arsip-table th,
body.dark-theme .klasifikasi-table th,
body.dark-theme #tabelPanduanSubjek th,
body.dark-theme #tabelKlasifikasiLengkap th {
  background-color: #0E1624 !important;
  color: #E2E8F0 !important;
  border-bottom: 2px solid rgba(148, 163, 184, 0.4) !important;
}


/* ========================================================
   CYBERPUNK THEME OVERRIDES FOR MJ HEADER & PANDUAN CARDS
   ======================================================== */
[data-theme="dark"] .arsip-card,
body.dark-theme .arsip-card {
  background: rgba(10, 16, 36, 0.85) !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(0, 240, 255, 0.22) !important;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(0, 240, 255, 0.15) !important;
}

[data-theme="dark"] .mj-header-container::after,
body.dark-theme .mj-header-container::after {
  border-top-color: rgba(0, 240, 255, 0.45) !important;
  border-bottom-color: rgba(0, 240, 255, 0.22) !important;
}

[data-theme="dark"] .mj-header-text,
[data-theme="dark"] .mj-header-title,
[data-theme="dark"] .mj-doc-title,
[data-theme="dark"] .mj-doc-subtitle,
[data-theme="dark"] .arsip-section-title,
[data-theme="dark"] .arsip-sub-title,
body.dark-theme .mj-header-text,
body.dark-theme .mj-header-title,
body.dark-theme .mj-doc-title,
body.dark-theme .mj-doc-subtitle,
body.dark-theme .arsip-section-title,
body.dark-theme .arsip-sub-title {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .mj-header-address,
[data-theme="dark"] .mj-header-contact,
[data-theme="dark"] .arsip-content,
[data-theme="dark"] .arsip-content p,
[data-theme="dark"] .arsip-content li,
body.dark-theme .mj-header-address,
body.dark-theme .mj-header-contact,
body.dark-theme .arsip-content,
body.dark-theme .arsip-content p,
body.dark-theme .arsip-content li {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .kop-link-blue,
body.dark-theme .kop-link-blue,
[data-theme="dark"] .mj-header-contact a,
body.dark-theme .mj-header-contact a,
[data-theme="dark"] #kopEmail a {
  color: #60A5FA !important;
  text-decoration: underline !important;
}

[data-theme="dark"] .arsip-info-box,
[data-theme="dark"] .arsip-info-col,
body.dark-theme .arsip-info-box,
body.dark-theme .arsip-info-col {
  background-color: rgba(0, 240, 255, 0.08) !important;
  border-color: rgba(0, 240, 255, 0.25) !important;
  color: #e2e8f0 !important;
}

/* ========================================================
   SISTEM WILAYAH DARK THEME OVERRIDES
   ======================================================== */
[data-theme="dark"] .doc-title-wilayah,
body.dark-theme .doc-title-wilayah {
  color: #F8FAFC !important;
}

[data-theme="dark"] .doc-subtitle-wilayah,
body.dark-theme .doc-subtitle-wilayah {
  color: #38BDF8 !important;
}

[data-theme="dark"] .wilayah-search-box,
body.dark-theme .wilayah-search-box {
  background: rgba(15, 23, 42, 0.85) !important;
  border-color: rgba(0, 240, 255, 0.35) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45) !important;
}

[data-theme="dark"] .wilayah-search-box i,
body.dark-theme .wilayah-search-box i {
  color: #38BDF8 !important;
}

[data-theme="dark"] .wilayah-search-box input,
body.dark-theme .wilayah-search-box input {
  color: #F8FAFC !important;
}

[data-theme="dark"] .wilayah-search-box input::placeholder,
body.dark-theme .wilayah-search-box input::placeholder {
  color: #94A3B8 !important;
}

[data-theme="dark"] .wilayah-search-box:focus-within,
body.dark-theme .wilayah-search-box:focus-within {
  border-color: #00F0FF !important;
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.25), 0 0 12px rgba(0, 240, 255, 0.3) !important;
}

[data-theme="dark"] .wilayah-table-container,
body.dark-theme .wilayah-table-container {
  background: rgba(10, 16, 36, 0.95) !important;
  border: 1.5px solid rgba(0, 240, 255, 0.3) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(0, 240, 255, 0.15) !important;
}

[data-theme="dark"] .wilayah-custom-table,
body.dark-theme .wilayah-custom-table {
  color: #E2E8F0 !important;
}

[data-theme="dark"] .wilayah-custom-table th,
body.dark-theme .wilayah-custom-table th {
  background-color: #0E1624 !important;
  color: #38BDF8 !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
}

[data-theme="dark"] .wilayah-custom-table td,
body.dark-theme .wilayah-custom-table td {
  background: rgba(15, 23, 42, 0.65) !important;
  color: #F1F5F9 !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
}

[data-theme="dark"] .wilayah-custom-table tr:hover td,
body.dark-theme .wilayah-custom-table tr:hover td {
  background: rgba(0, 240, 255, 0.08) !important;
}

[data-theme="dark"] .wilayah-custom-table td.cell-bold,
body.dark-theme .wilayah-custom-table td.cell-bold {
  color: #00F0FF !important;
}

[data-theme="dark"] .wilayah-info-text,
body.dark-theme .wilayah-info-text {
  color: #38BDF8 !important;
}

[data-theme="dark"] .w-page-btn,
body.dark-theme .w-page-btn {
  background: rgba(15, 23, 42, 0.85) !important;
  border-color: rgba(0, 240, 255, 0.3) !important;
  color: #38BDF8 !important;
}

[data-theme="dark"] .w-page-btn:hover:not(:disabled),
body.dark-theme .w-page-btn:hover:not(:disabled) {
  background: rgba(0, 240, 255, 0.15) !important;
  border-color: #00F0FF !important;
  color: #00F0FF !important;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.3) !important;
}

[data-theme="dark"] .w-page-btn.active,
body.dark-theme .w-page-btn.active {
  background: linear-gradient(135deg, #00f0ff, #0284c7) !important;
  color: #FFFFFF !important;
  border-color: #00F0FF !important;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.45) !important;
}

[data-theme="dark"] .w-page-btn:disabled,
body.dark-theme .w-page-btn:disabled {
  opacity: 0.3 !important;
}

[data-theme="dark"] #modalWilayah .modal-dialog,
body.dark-theme #modalWilayah .modal-dialog {
  background: #0A1024 !important;
  border: 1.5px solid rgba(0, 240, 255, 0.35) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 240, 255, 0.2) !important;
}

[data-theme="dark"] #modalWilayah .modal-header,
body.dark-theme #modalWilayah .modal-header {
  border-bottom: 1px solid rgba(0, 240, 255, 0.25) !important;
}

[data-theme="dark"] #modalWilayah .modal-title,
body.dark-theme #modalWilayah .modal-title {
  color: #F8FAFC !important;
}

[data-theme="dark"] #modalWilayah .modal-title i,
body.dark-theme #modalWilayah .modal-title i {
  color: #00F0FF !important;
}

[data-theme="dark"] #modalWilayah .modal-close-btn,
body.dark-theme #modalWilayah .modal-close-btn {
  color: #94A3B8 !important;
}

[data-theme="dark"] #modalWilayah .modal-close-btn:hover,
body.dark-theme #modalWilayah .modal-close-btn:hover {
  color: #F8FAFC !important;
}

[data-theme="dark"] #modalWilayah .modal-form-group label,
body.dark-theme #modalWilayah .modal-form-group label {
  color: #F1F5F9 !important;
}

[data-theme="dark"] #modalWilayah .modal-form-input,
body.dark-theme #modalWilayah .modal-form-input {
  background: rgba(15, 23, 42, 0.9) !important;
  border-color: rgba(0, 240, 255, 0.28) !important;
  color: #F8FAFC !important;
}

[data-theme="dark"] #modalWilayah .modal-form-input:focus,
body.dark-theme #modalWilayah .modal-form-input:focus {
  border-color: #00F0FF !important;
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.25), 0 0 12px rgba(0, 240, 255, 0.3) !important;
}

[data-theme="dark"] #modalWilayah span,
body.dark-theme #modalWilayah span {
  color: #94A3B8 !important;
}

.theme-quick-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 16px;
}
.theme-quick-btn:hover {
  background: var(--gray-200);
}

[data-theme="dark"] .theme-quick-btn,
body.dark-theme .theme-quick-btn {
  background: rgba(10, 18, 42, 0.9) !important;
  border: 1px solid rgba(0, 240, 255, 0.38) !important;
  color: #00f0ff !important;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25) !important;
}

[data-theme="dark"] .theme-quick-btn:hover,
body.dark-theme .theme-quick-btn:hover {
  background: rgba(0, 240, 255, 0.2) !important;
  border-color: #00f0ff !important;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.6) !important;
}


/* ==========================================================================
   HIGH-CONTRAST READABILITY IN DARK MODE (PROFIL PERUSAHAAN & FORMS)
   ========================================================================== */

/* 1. KOP SURAT PREVIEW (Simulated White Paper Document)
      Kop surat adalah lembar kertas putih fisik resmi.
      Teks di atasnya HARUS selalu hitam pekat/slate kontras tinggi (#0F172A). */
.kop-preview-body,
[data-theme="dark"] .kop-preview-body,
body.dark-theme .kop-preview-body,
.kop-content,
[data-theme="dark"] .kop-content,
body.dark-theme .kop-content {
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
  color: #0F172A !important;
}

[data-theme="dark"] .kop-preview-body *,
body.dark-theme .kop-preview-body * {
  color: #0F172A;
}

[data-theme="dark"] .kop-company-name,
body.dark-theme .kop-company-name {
  color: #0F172A !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  letter-spacing: 0.3px !important;
}

[data-theme="dark"] .kop-address,
body.dark-theme .kop-address {
  color: #1E293B !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

[data-theme="dark"] .kop-contacts,
body.dark-theme .kop-contacts {
  color: #1E293B !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
}

[data-theme="dark"] .kop-contacts span,
body.dark-theme .kop-contacts span {
  color: #1E293B !important;
}

[data-theme="dark"] .kop-contacts a,
body.dark-theme .kop-contacts a {
  color: #1D4ED8 !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
}

[data-theme="dark"] .kop-divider,
body.dark-theme .kop-divider {
  border-top: 3.5px solid #000000 !important;
  border-bottom: 1px solid #000000 !important;
  opacity: 1 !important;
}

/* Fullscreen Popup Modal Ukuran Asli Kertas A4 */
[data-theme="dark"] .a4-paper-preview,
body.dark-theme .a4-paper-preview {
  background: #FFFFFF !important;
  color: #0F172A !important;
}

[data-theme="dark"] .a4-paper-preview *,
body.dark-theme .a4-paper-preview * {
  color: #0F172A;
}

[data-theme="dark"] .a4-nama-perusahaan,
body.dark-theme .a4-nama-perusahaan {
  color: #0F172A !important;
  font-weight: 800 !important;
}

[data-theme="dark"] .a4-alamat-perusahaan,
body.dark-theme .a4-alamat-perusahaan {
  color: #1E293B !important;
  font-weight: 600 !important;
}

[data-theme="dark"] .a4-kontak-perusahaan,
body.dark-theme .a4-kontak-perusahaan {
  color: #1E293B !important;
  font-weight: 600 !important;
}

[data-theme="dark"] .a4-kontak-perusahaan a,
body.dark-theme .a4-kontak-perusahaan a {
  color: #1D4ED8 !important;
}

[data-theme="dark"] .a4-line-thick,
body.dark-theme .a4-line-thick {
  border-top: 3.5px solid #0F172A !important;
}

[data-theme="dark"] .a4-line-thin,
body.dark-theme .a4-line-thin {
  border-top: 1px solid #0F172A !important;
}

/* 2. PROFIL PERUSAHAAN CARD & FORM (HIGH CONTRAST) */
[data-theme="dark"] .profil-form-card,
body.dark-theme .profil-form-card,
[data-theme="dark"] .kop-preview-card,
body.dark-theme .kop-preview-card {
  background: rgba(10, 16, 36, 0.95) !important;
  border: 1.5px solid rgba(0, 240, 255, 0.35) !important;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.65), 0 0 20px rgba(0, 240, 255, 0.1) !important;
}

[data-theme="dark"] .profil-form-title h2,
body.dark-theme .profil-form-title h2,
[data-theme="dark"] .kop-preview-title strong,
body.dark-theme .kop-preview-title strong {
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  letter-spacing: 0.2px !important;
}

/* Form Labels: Putih Terang Jelas Terbaca */
[data-theme="dark"] .profil-form .form-group label,
body.dark-theme .profil-form .form-group label,
[data-theme="dark"] .form-group label,
body.dark-theme .form-group label {
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  letter-spacing: 0.2px !important;
}

[data-theme="dark"] .req,
body.dark-theme .req {
  color: #FF4D4F !important;
  font-weight: 700 !important;
}

/* Form Inputs & Textareas: Border Nyala & Teks Putih Tajam */
[data-theme="dark"] .profil-form .form-control,
body.dark-theme .profil-form .form-control,
[data-theme="dark"] .form-control,
body.dark-theme .form-control {
  background: rgba(6, 12, 28, 0.95) !important;
  border: 1.5px solid rgba(0, 240, 255, 0.45) !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
}

[data-theme="dark"] .profil-form .form-control:focus,
body.dark-theme .profil-form .form-control:focus,
[data-theme="dark"] .form-control:focus,
body.dark-theme .form-control:focus {
  border-color: #00F0FF !important;
  background: rgba(8, 18, 42, 0.98) !important;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.4) !important;
}

/* Upload Area Logo */
[data-theme="dark"] .logo-upload-btn,
body.dark-theme .logo-upload-btn {
  background: rgba(8, 16, 38, 0.85) !important;
  border: 2px dashed rgba(0, 240, 255, 0.45) !important;
  border-radius: 10px !important;
}

[data-theme="dark"] .logo-upload-btn:hover,
body.dark-theme .logo-upload-btn:hover {
  background: rgba(0, 240, 255, 0.1) !important;
  border-color: #00F0FF !important;
}

[data-theme="dark"] .logo-upload-btn span:first-of-type,
body.dark-theme .logo-upload-btn span:first-of-type {
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 14px !important;
}

[data-theme="dark"] .upload-hint,
body.dark-theme .upload-hint {
  color: #CBD5E1 !important;
  font-size: 11.5px !important;
}

/* Tombol Reset & Simpan */
[data-theme="dark"] .btn-reset,
body.dark-theme .btn-reset {
  background: rgba(15, 23, 42, 0.95) !important;
  border: 1.5px solid rgba(0, 240, 255, 0.4) !important;
  color: #F8FAFC !important;
  font-weight: 700 !important;
}

[data-theme="dark"] .btn-reset:hover,
body.dark-theme .btn-reset:hover {
  background: rgba(0, 240, 255, 0.16) !important;
  border-color: #00F0FF !important;
  color: #00F0FF !important;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35) !important;
}

[data-theme="dark"] .btn-simpan,
body.dark-theme .btn-simpan {
  background: linear-gradient(135deg, #0284C7, #2563EB) !important;
  border: none !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  box-shadow: 0 0 18px rgba(2, 132, 199, 0.5) !important;
}

[data-theme="dark"] .btn-simpan:hover,
body.dark-theme .btn-simpan:hover {
  background: linear-gradient(135deg, #0369A1, #1D4ED8) !important;
  box-shadow: 0 0 22px rgba(2, 132, 199, 0.7) !important;
}

[data-theme="dark"] .btn-lihat-ukuran,
body.dark-theme .btn-lihat-ukuran {
  background: rgba(15, 23, 42, 0.9) !important;
  border: 1px solid rgba(0, 240, 255, 0.35) !important;
  color: #00F0FF !important;
  font-weight: 600 !important;
}

[data-theme="dark"] .btn-lihat-ukuran:hover,
body.dark-theme .btn-lihat-ukuran:hover {
  background: rgba(0, 240, 255, 0.18) !important;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.45) !important;
}

/* Breadcrumb */
[data-theme="dark"] .breadcrumb a,
body.dark-theme .breadcrumb a {
  color: #38BDF8 !important;
  font-weight: 600 !important;
}

[data-theme="dark"] .bc-current,
body.dark-theme .bc-current {
  color: #FFFFFF !important;
  font-weight: 700 !important;
}


/* ==========================================================================
   POPUP FULLSCREEN MODAL (UKURAN ASLI) IN CYBER MIDNIGHT DARK THEME
   ========================================================================== */
[data-theme="dark"] .popup-fullscreen-overlay,
body.dark-theme .popup-fullscreen-overlay {
  background: rgba(3, 7, 18, 0.88) !important;
  backdrop-filter: blur(10px) !important;
}

[data-theme="dark"] .popup-fullscreen-box,
body.dark-theme .popup-fullscreen-box {
  background: #0B1120 !important;
  border: 1.5px solid rgba(0, 240, 255, 0.35) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 240, 255, 0.25) !important;
}

[data-theme="dark"] .popup-fullscreen-header,
body.dark-theme .popup-fullscreen-header {
  background: #060A16 !important;
  border-bottom: 1px solid rgba(0, 240, 255, 0.2) !important;
}

[data-theme="dark"] .popup-fullscreen-title i,
body.dark-theme .popup-fullscreen-title i {
  color: #00F0FF !important;
}

[data-theme="dark"] .popup-fullscreen-title h3,
body.dark-theme .popup-fullscreen-title h3 {
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 16px !important;
}

[data-theme="dark"] .popup-fullscreen-title p,
body.dark-theme .popup-fullscreen-title p {
  color: #CBD5E1 !important;
  font-size: 12px !important;
}

[data-theme="dark"] .btn-close-popup,
body.dark-theme .btn-close-popup {
  background: rgba(15, 23, 42, 0.9) !important;
  border: 1px solid rgba(0, 240, 255, 0.35) !important;
  color: #00F0FF !important;
}

[data-theme="dark"] .btn-close-popup:hover,
body.dark-theme .btn-close-popup:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: #EF4444 !important;
  color: #EF4444 !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.5) !important;
}

[data-theme="dark"] .btn-print-popup,
body.dark-theme .btn-print-popup {
  background: linear-gradient(135deg, #0284C7, #2563EB) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 0 14px rgba(2, 132, 199, 0.5) !important;
}

[data-theme="dark"] .btn-print-popup:hover,
body.dark-theme .btn-print-popup:hover {
  background: linear-gradient(135deg, #0369A1, #1D4ED8) !important;
  box-shadow: 0 0 18px rgba(2, 132, 199, 0.7) !important;
}

[data-theme="dark"] .popup-fullscreen-body,
body.dark-theme .popup-fullscreen-body {
  background: #070D19 !important;
}

/* Paper Inside Fullscreen Popup */
[data-theme="dark"] .a4-paper-preview,
body.dark-theme .a4-paper-preview {
  background: #FFFFFF !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 1px rgba(255, 255, 255, 0.2) !important;
  color: #0F172A !important;
}

[data-theme="dark"] .a4-paper-preview *,
body.dark-theme .a4-paper-preview * {
  color: #0F172A;
}

[data-theme="dark"] .a4-nama-perusahaan,
body.dark-theme .a4-nama-perusahaan {
  color: #0F172A !important;
  font-weight: 800 !important;
}

[data-theme="dark"] .a4-alamat-perusahaan,
body.dark-theme .a4-alamat-perusahaan {
  color: #1E293B !important;
  font-weight: 600 !important;
}

[data-theme="dark"] .a4-kontak-perusahaan,
body.dark-theme .a4-kontak-perusahaan {
  color: #1E293B !important;
  font-weight: 600 !important;
}

[data-theme="dark"] .a4-kontak-perusahaan span,
body.dark-theme .a4-kontak-perusahaan span {
  color: #1E293B !important;
}

[data-theme="dark"] .a4-kontak-perusahaan a,
body.dark-theme .a4-kontak-perusahaan a {
  color: #1D4ED8 !important;
  font-weight: 700 !important;
}

[data-theme="dark"] .a4-line-thick,
body.dark-theme .a4-line-thick {
  border-top: 3.5px solid #0F172A !important;
}

[data-theme="dark"] .a4-line-thin,
body.dark-theme .a4-line-thin {
  border-top: 1px solid #0F172A !important;
}

[data-theme="dark"] .a4-blank-content,
body.dark-theme .a4-blank-content {
  background: #F8FAFC !important;
  border: 1.5px dashed #94A3B8 !important;
}

[data-theme="dark"] .a4-watermark-center div,
body.dark-theme .a4-watermark-center div {
  color: #475569 !important;
  font-weight: 600 !important;
}

[data-theme="dark"] .popup-fullscreen-footer,
body.dark-theme .popup-fullscreen-footer {
  background: #060A16 !important;
  border-top: 1px solid rgba(0, 240, 255, 0.2) !important;
}

[data-theme="dark"] .popup-fullscreen-footer span,
body.dark-theme .popup-fullscreen-footer span {
  color: #CBD5E1 !important;
}

[data-theme="dark"] .popup-fullscreen-footer i,
body.dark-theme .popup-fullscreen-footer i {
  color: #00F0FF !important;
}

[data-theme="dark"] .btn-nav-kembali,
body.dark-theme .btn-nav-kembali {
  background: rgba(15, 23, 42, 0.95) !important;
  border: 1.5px solid rgba(0, 240, 255, 0.4) !important;
  color: #00F0FF !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
}

[data-theme="dark"] .btn-nav-kembali:hover,
body.dark-theme .btn-nav-kembali:hover {
  background: rgba(0, 240, 255, 0.16) !important;
  border-color: #00F0FF !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4) !important;
}
