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

/* ==========================================================================
   SI-DENTING DINKES COMMAND CENTER — KEMENKES THEME DESIGN SYSTEM
   Official Colors: Kemenkes Tosca (#17B3AD) & Kemenkes Lime (#D3DD03)
   ========================================================================== */

:root {
  --sidebar-w: 250px;
  --topbar-h: 74px;

  /* Surfaces & Backgrounds */
  --bg-page: #f0f7f7;
  --bg-sidebar: #0a3331;
  --bg-sidebar-dark: #062423;
  --bg-card: #ffffff;
  --bg-card-subtle: #f7fbfb;
  --bg-hover: #eaf5f5;

  /* Kemenkes Official Brand Colors */
  --kemenkes-tosca: #17b3ad;
  --kemenkes-tosca-dark: #0d8f8a;
  --kemenkes-tosca-deep: #0a3331;
  --kemenkes-tosca-light: #e6f7f6;
  --kemenkes-lime: #d3dd03;
  --kemenkes-lime-dark: #8c9900;
  --kemenkes-lime-light: #f7f9d4;

  /* Primary Brand Tokens */
  --primary-navy: #0a3331;
  --primary-blue: #17b3ad;
  --primary-blue-hover: #0d8f8a;
  --accent-cyan: #17b3ad;
  --accent-lime: #d3dd03;

  /* Severity / Status Colors */
  --red-kritis: #dc2626;
  --red-bg: #fee2e2;
  --red-border: #fca5a5;

  --yellow-waspada: #d97706;
  --yellow-bg: #fef3c7;
  --yellow-border: #fde68a;

  --green-terkendali: #059669;
  --green-bg: #d1fae5;
  --green-border: #a7f3d0;

  /* Typography */
  --text-dark: #0f2322;
  --text-heading: #143836;
  --text-body: #3d5856;
  --text-muted: #627c7a;
  --text-light: #94a3b8;

  /* Borders & Radii */
  --border-card: #d4ebea;
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 9999px;

  /* Elevation Shadows */
  --shadow-xs: 0 1px 3px rgba(10, 51, 49, 0.04);
  --shadow-sm: 0 2px 8px rgba(10, 51, 49, 0.05);
  --shadow-card: 0 4px 16px rgba(10, 51, 49, 0.06);
  --shadow-hover: 0 12px 28px -4px rgba(10, 51, 49, 0.12);
  --shadow-glow: 0 0 20px rgba(23, 179, 173, 0.25);
}

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

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #b8dedd; border-radius: var(--radius-pill); }
::-webkit-scrollbar-thumb:hover { background: #17b3ad; }

/* ==========================================================================
   APP LAYOUT (SIDEBAR + MAIN WRAPPER)
   ========================================================================== */
.app-wrapper {
  display: flex;
  width: 100vw;
  min-height: 100vh;
  position: relative;
}

/* ===== SIDEBAR (KEMENKES DEEP TOSCA) ===== */
.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #072322 0%, #0A3331 60%, #051A19 100%);
  min-height: 100vh;
  position: fixed;
  left: 0; top: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-right: 1px solid rgba(23, 179, 173, 0.15);
}

/* Profile / Logo Header in Sidebar */
.sidebar-profile {
  padding: 30px 20px 22px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.sidebar-logo-wrap {
  width: 78px !important;
  height: 78px !important;
  max-width: 78px !important;
  max-height: 78px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 14px !important;
  padding: 8px !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35) !important;
  border: 2.5px solid rgba(255, 255, 255, 0.95) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}

.sidebar-logo-wrap img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

.profile-name {
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 4px;
  line-height: 1.3;
}

.profile-role {
  color: #7ee0dc;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* Sidebar Navigation Items */
.sidebar-menu {
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  color: #a3c7c5;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover {
  background: rgba(23, 179, 173, 0.12);
  color: #ffffff;
}

.nav-link.active {
  background: linear-gradient(135deg, #17b3ad 0%, #0d8f8a 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(23, 179, 173, 0.4);
}

.nav-link .nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.nav-link .nav-icon svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.nav-link:hover .nav-icon svg {
  transform: scale(1.1);
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-sidebar-logout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-sidebar-logout:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   MAIN CONTENT WRAPPER & TOPBAR
   ========================================================================== */
.main-wrapper {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Sticky Glass Topbar */
.topbar {
  height: var(--topbar-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-card);
  box-shadow: 0 2px 10px rgba(10, 51, 49, 0.03);
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-menu-toggle {
  background: none;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s;
}

.btn-menu-toggle:hover {
  background: var(--bg-hover);
}

.topbar-title-wrap h1 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.topbar-title-wrap p {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 1px;
}

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

/* Brand Kemenkes & SI-DENTING Logo */
.brand-denting-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kemenkes-logo-icon {
  width: 42px !important;
  height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  border: 1.5px solid var(--border-card) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

.kemenkes-logo-icon img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

.denting-brand-text {
  display: flex;
  align-items: baseline;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.5px;
}

.denting-brand-text .si {
  color: #17b3ad;
}

.denting-brand-text .hyphen {
  color: #94a3b8;
  margin: 0 1px;
}

.denting-brand-text .denting {
  color: #0a3331;
}

/* PAGE CONTAINER */
.page-container {
  padding: 24px 32px 40px;
  flex: 1;
}

/* ==========================================================================
   TOP 4 KPI METRIC CARDS (REGIONAL)
   ========================================================================== */
.kpi-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 130px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.kpi-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.kpi-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.kpi-left-data {
  display: flex;
  align-items: center;
  gap: 14px;
}

.kpi-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-icon-badge.blue {
  background: var(--kemenkes-tosca-light);
  color: var(--kemenkes-tosca-dark);
  border: 1px solid #b2e8e5;
}

.kpi-icon-badge.red {
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fecaca;
}

.kpi-icon-badge.green {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.kpi-icon-badge.yellow {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.kpi-value-wrap {
  display: flex;
  flex-direction: column;
}

.kpi-big-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.kpi-subtext {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.kpi-subtext.red { color: #dc2626; font-weight: 700; }
.kpi-subtext.green { color: #16a34a; font-weight: 700; }
.kpi-subtext.blue { color: #0d8f8a; font-weight: 600; }
.kpi-subtext.yellow { color: #d97706; }

/* SVG Mini Sparkline Wave */
.sparkline-svg {
  width: 86px;
  height: 36px;
  flex-shrink: 0;
}

/* ==========================================================================
   5 PUSKESMAS KPI MINI CARDS ROW (SECTION 3)
   ========================================================================== */
.kpi-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.kpi-mini-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.kpi-mini-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-mini-icon.blue { background: var(--kemenkes-tosca-light); color: var(--kemenkes-tosca-dark); border: 1px solid #b2e8e5; }
.kpi-mini-icon.red-flag { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.kpi-mini-icon.red-circle { background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; }
.kpi-mini-icon.yellow-circle { background: #fef3c7; color: #d97706; border: 1px solid #fcd34d; }
.kpi-mini-icon.green-circle { background: #d1fae5; color: #059669; border: 1px solid #6ee7b7; }

.kpi-mini-content {
  display: flex;
  flex-direction: column;
}

.kpi-mini-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.2;
}

.kpi-mini-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.15;
  margin: 3px 0 2px;
  letter-spacing: -0.4px;
}

.kpi-mini-sub {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   MAIN DASHBOARD SPLIT (MAP 72% + STATUS COLUMN 28%)
   ========================================================================== */
.dashboard-main-grid {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 20px;
}

/* Central Map Panel */
.map-command-panel {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.map-header-bar {
  padding: 16px 22px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.map-header-bar h2 {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.map-container {
  height: 520px;
  width: 100%;
  background: #f8fafc;
  position: relative;
  z-index: 1;
}

/* Floating Map Legend Box */
.map-floating-legend {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(10, 51, 49, 0.12);
  border: 1px solid var(--border-card);
  z-index: 1000;
}

.map-floating-legend h4 {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-body);
  margin-bottom: 6px;
}

.legend-item:last-child {
  margin-bottom: 0;
}

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

.legend-dot.red { background: var(--red-kritis); }
.legend-dot.yellow { background: var(--yellow-waspada); }
.legend-dot.green { background: var(--green-terkendali); }

/* Right Status Cards Column */
.status-cards-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.severity-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 155px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.severity-card.kritis { border-left: 5px solid var(--red-kritis); }
.severity-card.waspada { border-left: 5px solid var(--yellow-waspada); }
.severity-card.terkendali { border-left: 5px solid var(--green-terkendali); }

.severity-header {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.severity-content-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.severity-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.severity-icon-badge.red {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.severity-icon-badge.yellow {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}

.severity-icon-badge.green {
  background: #d1fae5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.severity-number {
  font-size: 34px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  letter-spacing: -0.5px;
}

.severity-footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.severity-mom-tag {
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.severity-mom-tag.red { color: #dc2626; }
.severity-mom-tag.yellow { color: #d97706; }
.severity-mom-tag.green { color: #059669; }

/* ==========================================================================
   TABLE DATA STYLES (PUSKESMAS PRIORITAS)
   ========================================================================== */
#table-puskesmas-prioritas {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
}

#table-puskesmas-prioritas thead th {
  background: #f4fbfb;
  color: #3d5856;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 18px;
  border-bottom: 1.5px solid var(--border-card);
  text-align: left;
}

#table-puskesmas-prioritas tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid #eef6f6;
  color: #0f2322;
  font-weight: 500;
  vertical-align: middle;
}

#table-puskesmas-prioritas tbody tr {
  transition: background-color 0.15s ease;
}

#table-puskesmas-prioritas tbody tr:hover {
  background-color: #f0fafa;
}

#table-puskesmas-prioritas tbody tr:last-child td {
  border-bottom: none;
}

/* Status Pill Badges */
.badge-prio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.badge-prio.tinggi {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.badge-prio.sedang {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}

.badge-prio.rendah {
  background: #d1fae5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

/* ==========================================================================
   SECTIONS HIDE / SHOW
   ========================================================================== */
.section-content {
  display: none;
}

.section-content.active {
  display: block;
  animation: fadeInSection 0.25s ease;
}

@keyframes fadeInSection {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   DINKES COMMAND CENTER LOGIN PAGE (KEMENKES THEME)
   ========================================================================== */
.login-page {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f7f7 radial-gradient(circle at 50% 30%, #e2f2f1 0%, #cae8e6 100%);
  padding: 24px 16px;
  box-sizing: border-box;
  position: relative;
}

.login-box {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 24px;
  padding: 38px 32px;
  box-shadow: 0 20px 45px -10px rgba(10, 51, 49, 0.12), 0 4px 16px -2px rgba(10, 51, 49, 0.04);
  color: #0f2322;
  box-sizing: border-box;
}

.login-top {
  text-align: center;
  margin-bottom: 28px;
}

.login-icon {
  width: 78px;
  height: 78px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  box-shadow: 0 4px 16px rgba(23, 179, 173, 0.12);
  padding: 8px;
  border: 2px solid var(--border-card);
  box-sizing: border-box;
  overflow: hidden;
}

.login-icon img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.login-top h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #0a3331;
  margin-bottom: 4px;
}

.login-top p {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-group label {
  font-size: 12.5px;
  font-weight: 700;
  color: #264a48;
  display: block;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: #f8fbfb;
  border: 1.5px solid var(--border-card);
  border-radius: 10px;
  color: #0f2322;
  font-size: 13.5px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.form-control:focus {
  border-color: #17b3ad;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(23, 179, 173, 0.18);
}

.form-control::placeholder {
  color: #94a3b8;
  font-size: 13px;
}

.btn-primary {
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, #0d8f8a 0%, #17b3ad 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 6px 18px rgba(23, 179, 173, 0.32);
  margin-top: 8px;
  box-sizing: border-box;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #09706c 0%, #0d8f8a 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(23, 179, 173, 0.42);
}

.btn-primary:active {
  transform: none;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.login-error {
  margin-top: 16px;
  padding: 10px 14px;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  color: #dc2626;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.login-foot {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-card);
  text-align: center;
  font-size: 11.5px;
  color: #627c7a;
  font-weight: 500;
  line-height: 1.4;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1200px) {
  .kpi-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .kpi-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .dashboard-main-grid {
    grid-template-columns: 1fr;
  }
  .map-container {
    height: 440px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-wrapper {
    margin-left: 0;
  }
  .topbar {
    padding: 0 16px;
  }
  .page-container {
    padding: 16px;
  }
  .kpi-grid-4 {
    grid-template-columns: 1fr;
  }
  .kpi-grid-5 {
    grid-template-columns: 1fr;
  }
}
