/* ==========================================================
   HIMPAUDI KECAMATAN BOJONG MANGU - MODERN DESIGN SYSTEM
   ========================================================== */

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

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Primary Palette (HIMPAUDI Teal & Royal Blue) */
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-light: #e0f2fe;
  --primary-subtle: #f0f9ff;
  
  --secondary: #0d9488;
  --secondary-dark: #0f766e;
  --secondary-light: #ccfbf1;

  --accent-warm: #f59e0b;
  --accent-warm-light: #fef3c7;
  
  --success: #10b981;
  --success-light: #d1fae5;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --info: #06b6d4;
  --info-light: #cffafe;

  /* Neutral tones */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-sidebar: #0f172a;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;

  /* Elevations */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);
  --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Viewport Fit */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  word-break: break-word;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--primary-dark);
}

/* ==========================================================
   LAYOUT STRUCTURE: Sidebar & Main Wrapper
   ========================================================== */
.app-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Sidebar */
.app-sidebar {
  width: 280px;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: var(--transition);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  overflow-y: auto;
}

.sidebar-header {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

.sidebar-brand-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.sidebar-brand-sub {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Navigation Links */
.sidebar-nav {
  padding: 20px 14px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  font-weight: 700;
  padding: 16px 12px 6px;
}

.nav-link-custom {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.nav-link-custom i {
  font-size: 17px;
  width: 22px;
  text-align: center;
  color: #64748b;
  transition: var(--transition);
}

.nav-link-custom:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link-custom:hover i {
  color: #38bdf8;
}

.nav-link-custom.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.25) 0%, rgba(13, 148, 136, 0.25) 100%);
  color: #ffffff;
  font-weight: 600;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.nav-link-custom.active i {
  color: #38bdf8;
}

.sidebar-user {
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}

/* Main Content Area */
.app-main {
  margin-left: 280px;
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-body);
  transition: var(--transition);
  max-width: 100%;
  overflow-x: hidden;
}

/* Top Navbar */
.app-topbar {
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
  width: 100%;
  max-width: 100%;
}

.topbar-title {
  display: flex;
  flex-direction: column;
}

.topbar-heading {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.topbar-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.app-container {
  padding: 32px;
  flex: 1;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* ==========================================================
   CARDS & STAT WIDGETS
   ========================================================== */
.card-custom {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: var(--transition);
  margin-bottom: 24px;
}

.card-custom:hover {
  box-shadow: var(--shadow-md);
}

.card-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.card-title-main {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Stat Cards */
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

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

.stat-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.stat-icon-blue {
  background: #e0f2fe;
  color: #0284c7;
}

.stat-icon-teal {
  background: #ccfbf1;
  color: #0d9488;
}

.stat-icon-amber {
  background: #fef3c7;
  color: #d97706;
}

.stat-icon-emerald {
  background: #d1fae5;
  color: #059669;
}

.stat-icon-purple {
  background: #ede9fe;
  color: #7c3aed;
}

.stat-number {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  color: #0f172a;
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Badges */
.badge-custom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.badge-success { background: var(--success-light); color: #065f46; }
.badge-warning { background: var(--warning-light); color: #92400e; }
.badge-danger { background: var(--danger-light); color: #991b1b; }
.badge-info { background: var(--info-light); color: #155e75; }
.badge-primary { background: var(--primary-light); color: #075985; }
.badge-secondary { background: #f1f5f9; color: #475569; }

/* Buttons */
.btn-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  font-family: var(--font-main);
}

.btn-primary-custom {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}
.btn-primary-custom:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-success-custom {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}
.btn-success-custom:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
}

.btn-outline-custom {
  background: #ffffff;
  border-color: var(--border-color);
  color: var(--text-main);
}
.btn-outline-custom:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.btn-sm-custom {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

/* Form Styles */
.form-group {
  margin-bottom: 18px;
}

.form-label-custom {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.form-control-custom, .form-select-custom {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: #ffffff;
  color: #1e293b;
  transition: var(--transition);
}

.form-control-custom:focus, .form-select-custom:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

/* Tables */
.table-responsive-custom {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.table-custom {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 14px;
}

.table-custom th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.table-custom td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  color: #334155;
  vertical-align: middle;
}

.table-custom tbody tr:hover {
  background-color: #f8fafc;
}

/* Alert Boxes */
.alert-custom {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.alert-success { background: #dcfce7; color: #14532d; border: 1px solid #bbf7d0; }
.alert-danger { background: #fee2e2; color: #7f1d1d; border: 1px solid #fecaca; }
.alert-warning { background: #fef3c7; color: #78350f; border: 1px solid #fde68a; }
.alert-info { background: #e0f2fe; color: #0c4a6e; border: 1px solid #bae6fd; }

/* Scanner QR Styling */
.scanner-card-view {
  background: #0f172a;
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.scanner-video-box {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #1e293b;
  border: 2px dashed rgba(56, 189, 248, 0.4);
  position: relative;
}

.scanner-laser-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #38bdf8, #34d399, transparent);
  box-shadow: 0 0 15px #38bdf8;
  animation: scanLaser 2s infinite ease-in-out;
  pointer-events: none;
}

@keyframes scanLaser {
  0% { top: 5%; opacity: 0.3; }
  50% { top: 90%; opacity: 1; }
  100% { top: 5%; opacity: 0.3; }
}

/* Landing Page Hero Showcase & New Layout */
.hero-gradient {
  background: linear-gradient(135deg, #0d7377 0%, #14919b 40%, #0b6971 70%, #044343 100%);
  color: #ffffff;
  padding: 60px 0 65px;
  position: relative;
  overflow: hidden;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-gradient::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Hero White Card News Showcase (Dengan Thumbnail Foto Proporsional & Terkunci) */
.hero-news-wrapper {
  position: relative;
  z-index: 5;
  width: 100%;
}

.hero-news-grid {
  display: flex;
  gap: 12px;
  height: 390px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 991px) {
  .hero-news-grid {
    height: auto;
    flex-direction: column;
  }
}

/* Card 1: Main Big White Box */
.hero-white-card-main {
  flex: 1;
  height: 100%;
  background: #ffffff !important;
  border-radius: 20px !important;
  padding: 14px !important;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: #0f172a !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 991px) {
  .hero-white-card-main {
    height: 360px;
  }
}

.hero-white-card-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24) !important;
}

.hero-main-img-box {
  width: 100%;
  height: 190px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #e0f2fe;
  flex-shrink: 0;
  position: relative;
}

.hero-main-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.2s ease;
}

.hero-white-card-main:hover .hero-main-img-box img {
  transform: scale(1.03);
}

.hero-main-img-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.85);
  color: #38bdf8;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.hero-main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-main-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.hero-main-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.hero-main-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0284c7;
  font-size: 11px;
  font-weight: 600;
  width: fit-content;
  margin-top: auto;
}

.hero-main-pill-admin {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.hero-admin-banner-box {
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 55%, #0d9488 100%) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.2);
}

.hero-admin-banner-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 65%);
  pointer-events: none;
}

.hero-admin-banner-content {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  z-index: 2;
  color: #ffffff;
  width: 100%;
}

.hero-admin-banner-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fef08a;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-admin-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #38bdf8;
  text-transform: uppercase;
}

.hero-admin-subtag {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.hero-badge-admin {
  background: rgba(15, 23, 42, 0.88) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.hero-video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.35);
  pointer-events: none;
  transition: background 0.3s ease;
}

.hero-white-card-main:hover .hero-video-play-overlay {
  background: rgba(15, 23, 42, 0.15);
}


/* 3 Stacked White Side Cards */
.hero-white-side-stack {
  width: 190px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

@media (min-width: 1200px) {
  .hero-white-side-stack {
    width: 215px;
  }
}

@media (max-width: 991px) {
  .hero-white-side-stack {
    width: 100%;
    flex-direction: row;
    height: 115px;
  }
}

.hero-white-card-side {
  flex: 1;
  background: #ffffff !important;
  border-radius: 16px !important;
  padding: 8px 10px !important;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  color: #0f172a !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border: 2px solid transparent;
  overflow: hidden;
  box-sizing: border-box;
}

.hero-white-card-side:hover {
  transform: translateY(-2px);
  border-color: #38bdf8;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18) !important;
}

.hero-side-img-thumb {
  width: 64px;
  height: 100%;
  border-radius: 10px;
  background: #e0f2fe;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.hero-side-img-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

.hero-side-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-side-badge-txt {
  font-size: 9.5px;
  font-weight: 700;
  color: #0284c7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  margin-bottom: 2px;
}

.hero-side-title-txt {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: opacity 0.2s ease;
}



/* Stat Cards in Hero (Clean White 3 Cards in a Row) */
.hero-stat-card {
  background: #ffffff !important;
  border-radius: 16px !important;
  padding: 14px 10px !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15) !important;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2) !important;
}

.hero-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 6px;
}

.hero-stat-icon.icon-blue {
  background: #e0f2fe;
  color: #0284c7;
}

.hero-stat-icon.icon-amber {
  background: #fef3c7;
  color: #d97706;
}

.hero-stat-icon.icon-teal {
  background: #ccfbf1;
  color: #0d9488;
}

.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  margin-bottom: 2px;
}

.hero-stat-lbl {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.2;
}

/* Hero Action Buttons */
.hero-btn-primary {
  background: #0284c7 !important;
  color: #ffffff !important;
  border: 2px solid #0284c7 !important;
  border-radius: 10px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
  text-decoration: none;
  transition: all 0.25s ease;
}

.hero-btn-primary:hover {
  background: #0369a1 !important;
  border-color: #0369a1 !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(2, 132, 199, 0.45);
}

.hero-btn-outline {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.85) !important;
  border-radius: 10px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
  text-decoration: none;
  transition: all 0.25s ease;
}

.hero-btn-outline:hover {
  background: #ffffff !important;
  color: #0d7377 !important;
  border-color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}



/* Responsive Rules */
@media (max-width: 991px) {
  .app-sidebar {
    transform: translateX(-100%);
    z-index: 1050 !important;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .app-sidebar.show {
    transform: translateX(0) !important;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5) !important;
  }
  .app-main {
    margin-left: 0;
  }
  .app-container {
    padding: 20px 16px;
  }
  .app-topbar {
    padding: 0 16px;
  }
}

/* Password Input with Embedded Eye Toggle */
.password-wrapper {
  position: relative;
  width: 100%;
  display: block;
}
.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
  width: 100%;
  padding-right: 44px !important;
}
.password-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 6px;
}

/* Sidebar Backdrop Overlay for Mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(3px);
  z-index: 1040;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
  display: block;
}

/* Table Fit Screen & Responsive Typography */
#tabelLembaga {
  width: 100% !important;
  border-collapse: collapse;
}

#tabelLembaga th {
  background-color: #f8fafc;
  color: #475569;
  font-weight: 700;
  vertical-align: middle;
  border-bottom: 2px solid #e2e8f0;
}

#tabelLembaga td {
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
}

#tabelLembaga tbody tr:hover {
  background-color: #f0fdf4 !important;
}

.table-striped-columns td:nth-child(even) {
  background-color: rgba(248, 250, 252, 0.4);
}

@media (max-width: 767.98px) {
  #tabelLembaga th,
  #tabelLembaga td {
    padding: 8px 6px !important;
  }
}

/* ===============================================================
 * VISUAL REFERENCE HERO & PUBLIC PORTAL STYLES (index(3).php Reference)
 * =============================================================== */
.hero-ref-section {
  background: radial-gradient(circle at top right, rgba(241, 245, 249, 0.8), #f8fafc 60%, #ffffff 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
}

.hero-ref-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, rgba(244, 63, 94, 0.04) 50%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.badge-ref-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 9999px;
  background: rgba(225, 29, 72, 0.07);
  border: 1px solid rgba(225, 29, 72, 0.2);
  color: #be123c;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.hero-ref-title {
  font-family: 'Plus Jakarta Sans', var(--font-heading), -apple-system, sans-serif;
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin-bottom: 12px;
}

.hero-ref-highlight {
  background: linear-gradient(135deg, #e11d48 0%, #db2777 45%, #c026d3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero-ref-subtitle {
  font-size: 15px;
  line-height: 1.6;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 22px;
  max-width: 650px;
}

/* Action Buttons */
.btn-ref-green {
  background: #047857 !important;
  color: #ffffff !important;
  border: 1.5px solid #047857 !important;
  border-radius: 9999px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(4, 120, 87, 0.28);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-ref-green:hover {
  background: #065f46 !important;
  border-color: #065f46 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(4, 120, 87, 0.38);
}

.btn-ref-outline {
  background: #ffffff !important;
  color: #1e293b !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 9999px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-ref-outline:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* Vertical Stat Cards (Left Column) */
.stat-vcard {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 10px 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.stat-vcard:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

.stat-vicon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 18px;
  flex-shrink: 0;
}

.stat-vicon.icon-green {
  background: #047857;
}

.stat-vicon.icon-slate {
  background: #334155;
}

.stat-vicon.icon-magenta {
  background: #db2777;
}

.stat-vicon.icon-amber {
  background: #d97706;
}

.stat-vnum {
  font-family: 'Plus Jakarta Sans', var(--font-heading), sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.stat-vtitle {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}

.stat-vsub {
  font-size: 10.5px;
  color: #64748b;
  line-height: 1.2;
}

/* Middle Activities Box */
.kegiatan-ref-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.kegiatan-ref-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.kegiatan-ref-header h4 {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.kegiatan-ref-header p {
  font-size: 11px;
  color: #64748b;
  margin: 2px 0 0 0;
}

.kegiatan-ref-link {
  font-size: 12px;
  font-weight: 700;
  color: #047857;
  text-decoration: none;
  white-space: nowrap;
}

.kegiatan-ref-link:hover {
  text-decoration: underline;
  color: #065f46;
}

.kegiatan-item-row {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  margin-bottom: 6px;
  border: 1px solid transparent;
}

.kegiatan-item-row:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
  transform: translateX(3px);
  color: inherit;
}

.kegiatan-thumb-wrapper {
  position: relative;
  width: 90px;
  height: 70px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
}

.kegiatan-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kegiatan-date-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  padding: 2px 4px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kegiatan-info-col {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kegiatan-item-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kegiatan-item-meta {
  font-size: 10.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Right Column: Hero Featured Showcase Card */
.showcase-ref-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 480px;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #0f172a;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showcase-ref-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -10px rgba(15, 23, 42, 0.35);
  color: #ffffff;
}

.showcase-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.showcase-ref-card:hover .showcase-bg-img {
  transform: scale(1.03);
}

.showcase-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.4) 40%, rgba(15, 23, 42, 0.92) 80%, #0f172a 100%);
  pointer-events: none;
}

.showcase-content-box {
  position: relative;
  z-index: 2;
  padding: 28px 24px 24px;
}

.showcase-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.badge-showcase-official {
  background: #059669;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-showcase-date {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  color: #f1f5f9;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 9999px;
}

.showcase-headline {
  font-family: 'Plus Jakarta Sans', var(--font-heading), sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 10px;
}

.showcase-excerpt {
  font-size: 13px;
  line-height: 1.55;
  color: #cbd5e1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-showcase-pink {
  background: linear-gradient(135deg, #e11d48 0%, #db2777 100%);
  color: #ffffff !important;
  border: none;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.4);
  transition: all 0.2s ease;
}

.btn-showcase-pink:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.5);
}

@media (max-width: 991.98px) {
  .showcase-ref-card {
    min-height: 380px;
    margin-top: 16px;
  }
}



