/* SIMONEV KABUPATEN NUNUKAN 2026 — Light Blue, White & Dark Gold Civic Theme */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --sky-soft: #eff8ff;
  --sky-mid: #bae6fd;
  --sky-brand: #0284c7;
  --navy-ink: #0f2942;
  --gold-dark: #b45309;
  --gold-rich: #ca8a04;
  --slate-surface: #f4f8fc;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--slate-surface);
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
}

.font-mono-num {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
}

/* Public Hero — Unified Blended Composite Banner (Light Blue, White & Dark Gold) */
.hero-nunukan-light {
  background: linear-gradient(135deg, #e0f2fe 0%, #ffffff 55%, #fef9c3 100%);
}

.hero-composite-bg {
  background-image: url('../assets/hero-composite-nunukan.jpg');
  background-size: cover;
  background-position: right center;
}

.hero-light-scrim {
  background: linear-gradient(
    90deg,
    rgba(232, 246, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.86) 32%,
    rgba(255, 255, 255, 0.15) 54%,
    rgba(255, 255, 255, 0.0) 100%
  );
}

/* Dark Gold gradient text */
.text-darkgold-gradient {
  background: linear-gradient(135deg, #92400e 0%, #ca8a04 55%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Clean White & Sky Glass KPI cards */
.kpi-card-light {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 14px 32px -12px rgba(2, 132, 199, 0.16);
}

.kpi-card-light:hover {
  border-color: rgba(202, 138, 4, 0.6);
  transform: translateY(-2px);
}

/* Mobile Version Flat Design Card */
.mobile-flat-card {
  background: linear-gradient(145deg, #ffffff 0%, #f0f9ff 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.38);
  box-shadow: 0 18px 40px -15px rgba(2, 132, 199, 0.22);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.mobile-flat-card:hover {
  transform: translateY(-4px);
  border-color: #ca8a04;
  box-shadow: 0 24px 48px -15px rgba(202, 138, 4, 0.25);
}

/* PWA Login & Executive Mobile Shell (kept crisp for Petugas & Pimpinan) */
.pwa-login-bg {
  background: radial-gradient(circle at 75% 12%, rgba(255, 255, 255, 0.08) 0%, transparent 38%),
              linear-gradient(180deg, #0b3c22 0%, #072c18 100%);
}

.pwa-header-bg {
  background: radial-gradient(circle at 88% 15%, rgba(255, 255, 255, 0.07) 0%, transparent 35%),
              linear-gradient(160deg, #0e4427 0%, #09321c 100%);
}

.pwa-stat-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 6px 20px -6px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.pwa-stat-card::after {
  content: '';
  position: absolute;
  top: -26px;
  right: -26px;
  width: 92px;
  height: 92px;
  border-radius: 9999px;
  background: currentColor;
  opacity: 0.07;
  pointer-events: none;
}

/* Leaflet overrides */
.leaflet-container {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  z-index: 1;
}

.leaflet-popup-content-wrapper {
  border-radius: 14px !important;
  box-shadow: 0 20px 35px -10px rgba(15, 41, 66, 0.28) !important;
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 0 !important;
  overflow: hidden;
}

.leaflet-popup-content {
  margin: 0 !important;
  min-width: 265px;
}

.custom-marker-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  border: 2.5px solid #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.42);
  transition: transform 0.2s ease;
}

.custom-marker-pin:hover {
  transform: scale(1.14);
}

.pulse-ring {
  position: relative;
}

.pulse-ring::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  border: 2px solid currentColor;
  opacity: 0.6;
  animation: radarPulse 2.1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes radarPulse {
  0% { transform: scale(0.85); opacity: 0.75; }
  75%, 100% { transform: scale(1.7); opacity: 0; }
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

@media print {
  .no-print { display: none !important; }
  body { background: #ffffff !important; }
  .print-break-inside-avoid { break-inside: avoid; }
}
