:root {
  --safelab-primary: #1f557a;
  --safelab-accent: #3478a8;
  --safelab-bg: #f4f6f9;
}

body {
  background-color: var(--safelab-bg);
  color: #243746;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.bg-safelab {
  background: linear-gradient(90deg, #1b4868 0%, #27648e 100%);
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  font-size: 0.92rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.16);
}

.map-box {
  height: 580px;
  width: 100%;
  border-radius: 6px;
  border: 1px solid #dee2e6;
}

.map-box-lg {
  height: 620px;
  width: 100%;
  border-radius: 6px;
  border: 1px solid #dee2e6;
}

.chart-box {
  height: 390px;
  width: 100%;
}

.chart-box-lg {
  height: 430px;
  width: 100%;
}

.chart-box-cd {
  height: 380px;
  width: 100%;
}

.chart-box-cd-sm {
  height: 350px;
  width: 100%;
}

.multi-select-box {
  font-size: 0.84rem;
}

.sidebar-apply-bar {
  position: sticky;
  top: 56px;
  z-index: 1010;
  padding: 0.75rem 1rem;
  border-top-left-radius: var(--bs-card-border-radius);
  border-top-right-radius: var(--bs-card-border-radius);
}

.kpi-card {
  background: #ffffff;
  border: 1px solid #e5e9ef;
  border-top: 4px solid #3478a8;
  border-radius: 6px;
  padding: 12px 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.kpi-label {
  font-size: 0.78rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.kpi-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.25;
}

.community-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid #3478a8;
  border-radius: 50%;
  color: #27648e;
  font-size: 11px;
  font-weight: 700;
  cursor: help;
}

.legend-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

.leaflet-legend-box {
  background: rgba(255, 255, 255, 0.94);
  padding: 8px 10px;
  border-radius: 6px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  font-size: 12px;
  line-height: 1.5;
}

.admin-picker-list {
  max-height: 300px;
  overflow-y: auto;
  background: #fafbfd;
}

.btn-xs {
  padding: 0.15rem 0.45rem;
  font-size: 0.75rem;
}

.user-avatar-sm {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.partner-footer img {
  max-width: 150px;
  object-fit: contain;
}
