
body {
margin: 0 !important;
padding: 0 !important;
}




/* Navbar awal */
/* Navbar default transparan */
#mainNavbar {
transition: background 0.4s ease, box-shadow 0.4s ease !important;
}

/* Navbar setelah scroll */
#mainNavbar.scrolled {
background: linear-gradient(90deg, #016533, #029149) !important;
box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.logo-bordered {
border: 2px solid #fff;   /* border putih */
border-radius: 6px;       /* agak rounded, biar halus */
padding: 2px;             /* jarak kecil dari border */
background: #fff;         /* opsional: kasih background putih */
}

/* Saat discroll → kecil + fade */
.navbar-scrolled {
background: #016533 !important;
padding-top: 0.5rem !important;
padding-bottom: 0.5rem !important;
opacity: 0.98;
box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}



.complaint-form-footer .btn-danger {
background-color: #016533; /* merah khas Lapor! */
border-color: #016533;
transition: 0.2s ease-in-out;
}

.complaint-form-footer .btn-danger:hover {
background-color: #016533;
border-color: #016533;
color:white
}

/* Bikin checkbox jadi bulat */
/* Reset tampilan default */
.circle-check {
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;

width: 20px;
height: 20px;
border: 2px solid #016533;    /* merah khas */
border-radius: 50%;           /* bikin bulat */
background-color: #fff;
cursor: pointer;
position: relative;
transition: all 0.2s ease-in-out;
background-image: none !important;
}

/* Efek saat hover */
.circle-check:hover {
border-color: #016533;
}

/* Saat dicentang -> isi merah */
.circle-check:checked {
background-color: #016533;
border-color: #016533;
}

/* Tambah icon centang */
.circle-check:checked::after {
content: "✔";
color: #fff;
font-size: 14px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -58%); /* biar pas di tengah */
}

/* Fokus glow */
.circle-check:focus {
outline: none;
box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.25);
}

/* Label sejajar */
.form-check-label {
margin-bottom: 0;
display: flex;
align-items: center;
}




.video-play-button {
width: 80px !important;
height: 80px !important;
border-radius: 50% !important;

transition: 0.3s !important;
text-decoration: none !important;
}

.banner-area .overlay {
position: absolute !important;
top: 0 !important;
left: 0 !important;
width: 100% !important;
height: 100% !important;
background: rgba(0, 0, 0, 0.45) !important; /* warna hitam transparan */
z-index: 1 !important;
}

.banner-area .box-table {
position: relative !important;
z-index: 2 !important; /* biar konten di atas overlay */
}


/* Divider with text */
.divider {
display: flex !important;
align-items: center !important;
text-align: center !important;
margin: 1.5rem 0 !important;
color: #6c757d !important;
font-size: 0.9rem !important;
}
.divider::before, .divider::after {
content: "" !important;
flex: 1 !important;
border-bottom: 1px solid #dee2e6 !important;
}
.divider:not(:empty)::before {
margin-right: .75em !important;
}
.divider:not(:empty)::after {
margin-left: .75em !important;
}

/* Social buttons */
.btn-social {
flex: 1 !important;
padding: 0.6rem 1rem !important;
font-weight: 600 !important;
color: #fff !important;
border: none !important;
transition: 0.2s !important;
}
.btn-social.facebook { background: #4267B2 !important; }
.btn-social.google { background: #DB4437 !important; }
.btn-social.twitter { background: #000 !important; }
.btn-social:hover { opacity: 0.9 !important; }
/* Floating label form group */
.form-group {
position: relative !important;
margin-bottom: 1.5rem !important;
}

/* Base input/select style */
.form-control-custom {
width: 100% !important;
border: none !important;
border-bottom: 2px solid #ccc !important;
padding: 10px 0 !important;
font-size: 1rem !important;
background: transparent !important;
color: #333 !important;
transition: border-color 0.3s !important;
}

/* Fokus efek hijau */
.form-control-custom:focus {
outline: none !important;
border-bottom-color: #28a745 !important;
}

/* Label default */
.form-group label {
position: absolute !important;
top: 10px !important;
left: 0 !important;
font-size: 0.95rem !important;
color: #aaa !important;
transition: all 0.3s ease !important;
pointer-events: none !important;
}

/* Floating untuk input/text/textarea */
.form-control-custom:focus + label,
.form-control-custom:not(:placeholder-shown) + label {
top: -10px !important;
font-size: 0.8rem !important;
color: #28a745 !important;
}


/* Password toggle icon */
.toggle-password {
position: absolute !important;
right: 0 !important;
top: 10px !important;
cursor: pointer !important;
color: #aaa !important;
transition: color 0.2s !important;
}
.toggle-password:hover {
color: #28a745 !important;
}

/* Invalid style */
.form-control-custom.is-invalid,
.was-validated .form-control-custom:invalid {
border-color: var(--bs-form-invalid-border-color) !important;
padding-right: calc(1.5em + .75rem) !important;
background-repeat: no-repeat !important;
background-position: right calc(.375em + .1875rem) center !important;
background-size: calc(.75em + .375rem) calc(.75em + .375rem) !important;
}
.form-control-custom.is-invalid + label,
.was-validated .form-control-custom:invalid + label {
color: var(--bs-form-invalid-color) !important;
}



.top-70{
top: 70% !important;
}

.upload-box {
background-color: #f9fafb;
cursor: pointer;
transition: 0.3s;
}
.upload-box:hover {
background-color: #eef2ff;
border-color: #6366f1;
}

.wizard-steps {
display: flex;
margin: 0;
padding: 0;
overflow: hidden;
}

.wizard-step {
flex: 1;
padding: 1rem;
background: #e9ecef;
color: #6c757d;
position: relative;
transition: all .3s ease;
text-align: center;
}

/* Panah tajam */
.wizard-step::after {
content: "";
position: absolute;
top: 0; right: -20px;
width: 0; height: 82px;
border-top: 40px solid transparent;
border-bottom: 40px solid transparent;
border-left: 20px solid #e9ecef;
z-index: 2;
}
.wizard-step.active::after {
border-left-color: #016533;
}
.wizard-step:last-child::after {
display: none;
}

.wizard-step span {
display: block;
font-size: 12px;
text-transform: uppercase;
}
.wizard-step strong {
font-size: 14px;
}

.wizard-step.active {
background: #016533;
color: #fff;
}
.wizard-step.active span,
.wizard-step.active strong {
color: #fff;
}

.wizard-content {
animation: fadeIn .4s ease !important;
}

@keyframes fadeIn {
from {opacity: 0; transform: translateX(10px);}
to {opacity: 1; transform: translateX(0);}
}



.blur-hover-wrapper {
position: relative;
display: block;
width: 100%;
}

.blur-hover-wrapper .card {
transition: filter 0.3s ease, transform 0.3s ease;
will-change: filter;
transform-origin: center;
}

.blur-hover-wrapper:hover .card {
filter: blur(4px) brightness(0.8);
transform: scale(1); /* cegah mengecil */
}

.overlay-login {
position: absolute;
inset: 0; /* ganti top/left/right/bottom jadi satu */
display: flex;
align-items: center;
justify-content: center;
backdrop-filter: blur(5px);
background-color: rgba(138, 138, 138, 0.3);
opacity: 0;
transition: opacity 0.3s ease;
pointer-events: none;
z-index: 5;
}

.blur-hover-wrapper:hover .overlay-login {
opacity: 1;
pointer-events: auto;
}

.overlay-login button {
font-size: 1rem;
border-radius: 50px;
box-shadow: 0 4px 12px rgba(138, 138, 138, 0.3);
}



.loading-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.85);
z-index: 9999;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column; /* ini penting buat stack vertikal */
}

.loading-overlay.d-none {
opacity: 0;
visibility: hidden;
pointer-events: none;
}

.loading-content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

.loading-circle {
position: relative;
width: 110px;
height: 110px;
display: flex;
align-items: center;
justify-content: center;
}

/* Ring utama (gradient berputar) */
.loading-circle::before {
content: "";
position: absolute;
inset: 0;
border-radius: 50%;
border: 4px solid transparent;
background: conic-gradient(
  from 0deg,
  #00ff88,
  #0099ff,
  #00ff88
);
-webkit-mask: 
  radial-gradient(farthest-side, transparent calc(100% - 5px), black 100%);
mask: 
  radial-gradient(farthest-side, transparent calc(100% - 5px), black 100%);
animation: spin 1.3s linear infinite;
filter: drop-shadow(0 0 6px rgba(0,255,200,0.4));
}

/* Ring kedua (putar berlawanan arah, halus banget) */
.loading-circle::after {
content: "";
position: absolute;
inset: 10px;
border-radius: 50%;
border: 3px solid transparent;
background: conic-gradient(
  from 180deg,
  #00ccff,
  transparent 60%,
  #00ccff
);
-webkit-mask: 
  radial-gradient(farthest-side, transparent calc(100% - 4px), black 100%);
mask: 
  radial-gradient(farthest-side, transparent calc(100% - 4px), black 100%);
animation: spinReverse 2s linear infinite;
opacity: 0.6;
}

.loading-logo {
width: 70px;
height: 70px;
object-fit: contain;
filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
}

.loading-text {
font-weight: 500;
letter-spacing: 0.5px;
font-size: 1rem;
opacity: 0.9;
margin-top: 15px;
}

/* Animasi spin */
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

@keyframes spinReverse {
0% { transform: rotate(360deg); }
100% { transform: rotate(0deg); }
}


#loadingModal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #fff;
display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
}

.loader-wrapper {
position: relative;
width: 120px;
height: 120px;
}

.loader-ring {
position: absolute;
inset: 0;
border: 4px solid transparent;
border-top: 4px solid #2b7a78; /* warna utama */
border-right: 4px solid #3aafa9;
border-radius: 50%;
animation: spin 1.2s linear infinite;
}

.loader-logo {
position: absolute;
inset: 15px;
background: #fff;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
}

.loader-logo img {
width: 60px;
height: auto;
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

.fade-out {
opacity: 0;
transition: opacity 0.5s ease;
}

.otp-wrapper {
display: flex;
flex-direction: column;
align-items: center;
}

.otp-wrapper .form-label {
font-weight: 600;
margin-bottom: 10px;
text-align: center;
}

.otp-container {
display: flex;
justify-content: center;
gap: 8px;
}

.otp-input {
width: 45px;
height: 50px;
font-size: 1.5rem;
text-align: center;
border: 2px solid #ccc;
border-radius: 10px;
outline: none;
transition: all 0.2s ease;
}

.otp-input:focus {
border-color: #029149;
box-shadow: 0 0 5px #02914950;
}

.otp-input-2 {
width: 45px;
height: 50px;
font-size: 1.5rem;
text-align: center;
border: 2px solid #ccc;
border-radius: 10px;
outline: none;
transition: all 0.2s ease;
}

.otp-input-2:focus {
border-color: #029149;
box-shadow: 0 0 5px #02914950;
}

/* Hilangkan panah atas-bawah input number di semua browser */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}

input[type=number] {
-moz-appearance: textfield;
}

.ui-autocomplete {
  max-height: 180px;
  overflow-y: auto;
  overflow-x: hidden;
  font-size: 0.95rem;
}

/* Tambahan biar tampilannya lebih manis */
.ui-menu-item-wrapper.ui-state-active {
  background-color: #198754 !important; /* warna hijau Bootstrap */
  color: #fff !important;
  border: none !important;
}

#instansi-fields {
  transition: all 0.3s ease;
}

#titik-koordinat {
  cursor: pointer;
}

#map {
  width: 100%;
  height: 80vh;
  border-radius: 0 0 8px 8px;
  z-index: 1;
}

#map-filter {
  top: 10px;
  right: 10px;
  width: 260px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  z-index: 1000; /* di atas map */
}

#map-filter select {
  font-size: 0.9rem;
  cursor: pointer;
}

/* Biar nggak ganggu map saat drag di luar filter */
#map-filter:hover {
  cursor: default;
}

@media (max-width: 768px) {
  #map-filter {
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
  }
}

#map-filter {
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}


.modal-body {
  padding: 0;
  overflow: hidden;
}

.pulse-marker {
  animation: pulse 1.5s ease-out infinite;
}

@keyframes pulse {
  0% { r: 4; opacity: 0.9; }
  50% { r: 10; opacity: 0.4; }
  100% { r: 4; opacity: 0.9; }
}

#map {
  width: 100%;
  height: 80vh;
  border-radius: 0 0 8px 8px;
  z-index: 1;
}

/* 🔹 Panel filter + search */
#map-filter {
  top: 10px;
  right: 10px;
  width: 270px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

#map-filter select,
#map-filter input {
  font-size: 0.9rem;
  cursor: pointer;
}

#map-filter button {
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  #map-filter {
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
  }
}

.pulse-marker {
  animation: pulse 1.5s ease-out infinite;
}

@keyframes pulse {
  0% { r: 4; opacity: 0.9; }
  50% { r: 10; opacity: 0.4; }
  100% { r: 4; opacity: 0.9; }
}

.btn-xs {
  padding: 0.15rem 0.35rem;   /* lebih kecil dari btn-sm */
  font-size: 0.7rem;
  line-height: 1;
  border-radius: 4px;
}

#btn-save-marker {
  font-size: 0.85rem;
  padding: 4px 8px;
}
.preview-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.preview-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

.preview-item .btn-remove {
  position: absolute;
  top: 5px;
  right: 8px;
  background: rgba(255,255,255,0.8);
  color: #dc3545;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 18px;
  line-height: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
  z-index: 10;
}

.preview-item .btn-remove:hover {
  background: #dc3545;
  color: #fff;
}

#next-btn.d-none {
  display: none !important;
}



.preview-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
}

.preview-item {
    position: relative;
}

.preview-item .btn-remove {
    position: absolute;
    top: 5px;
    right: 5px;
}

/* Garis abu default */
.progress-line-base {
  content: "";
  position: absolute;
  top: 25%;
  left: 0;
  height: 4px;
  width: 100%;
  background: #e9ecef;
  z-index: 1;
  transition: .4s ease;
  border-radius: 10px;
}

/* Garis progress berwarna */
.progress-line-fill {
  content: "";
  position: absolute;
  top: 25%;
  left: 0;
  height: 4px;
  background: #0d6efd;
  width: 0%; /* akan diubah via JS */
  z-index: 2;
  border-radius: 10px;
  transition: width 0.8s ease-in-out;
}

/* Icon aktif ada animasi pulse */
.progress-active-pulse {
animation: pulseEffect 1.2s infinite ease-in-out;
}

@keyframes pulseEffect {
  0% { box-shadow: 0 0 0 0 rgba(13, 253, 37, 0.4); }
  100% { box-shadow: 0 0 0 14px rgba(13, 110, 253, 0); }
}

.stat-card {
  background: #ffffff;
  border-left: 5px solid #0dfd39;
  transition: 0.2s;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.icon-box {
  background: #f1f5ff;
  padding: 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-legend li {
  cursor: pointer;
  margin-bottom: 6px;
}
.chart-legend span {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  margin-right: 8px;
}


/* Container autocomplete */
.ui-autocomplete {
  position: absolute !important;
  z-index: 1055 !important;

  width: 100% !important;
  max-width: 100%;

  max-height: 260px;
  overflow-y: auto;
  overflow-x: hidden;

  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: .375rem;
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);

  padding: .25rem 0;
}

/* Item */
.ui-autocomplete .ui-menu-item-wrapper {
  padding: .5rem .75rem;
  font-size: .875rem;
  line-height: 1.4;
  cursor: pointer;

  white-space: normal;   /* PENTING */
  word-break: break-word;
}

/* Hover / active */
.ui-autocomplete .ui-menu-item-wrapper.ui-state-active {
  background-color: #0d6efd;
  color: #fff;
  border: 0;
}

/* Biar autocomplete tidak kepotong SmartWizard */
.sw-container,
.sw-content,
.sw-tab,
.tab-content {
  overflow: visible !important;
}

#teamCarousel .carousel-item {
  padding: 20px 0;
}

#teamCarousel .carousel-control-prev,
#teamCarousel .carousel-control-next {
  width: 5%;
}

/* pastiin carousel keliatan */
#teamCarousel {
  position: relative;
}

/* tombol */
#teamCarousel .carousel-control-prev,
#teamCarousel .carousel-control-next {
  width: 48px;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.075);
  border-radius: 50%;
  opacity: 1;
  z-index: 10;
}

/* icon panah */
#teamCarousel .carousel-control-prev-icon,
#teamCarousel .carousel-control-next-icon {
  filter: invert(1);
  width: 20px;
  height: 20px;
}

/* posisi kiri-kanan */
#teamCarousel .carousel-control-prev {
  left: -20px;
}

#teamCarousel .carousel-control-next {
  right: -20px;
}


.label-provinsi {
  font-family: 'Barlow', sans-serif;
  font-size: 10px;              /* ⬅️ lebih kecil */
  font-weight: 600;             /* ⬅️ tidak terlalu bold */
  letter-spacing: 0.4px;
  text-transform: uppercase;

  color: #ffffffcc;
  text-shadow: 0 1px 2px rgba(0,0,0,0.9);


  border: none;
  box-shadow: none;

  white-space: nowrap;
  pointer-events: none;
}




.map-legend {
  background: rgba(255,255,255,0.95);
  padding: 8px 10px;
  font-size: 12px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.legend-color {
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border-radius: 50%;
}

.map-legend {
  background: rgba(255,255,255,0.95);
  padding: 8px 10px;
  font-size: 12px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);

  max-height: 220px;        /* ⬅️ BATASI TINGGI */
  overflow-y: auto;         /* ⬅️ SCROLL */
  min-width: 220px;
}

.map-legend strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  position: sticky;         /* ⬅️ JUDUL TETAP */
  top: 0;
  background: white;
}

.map-legend.collapsed .legend-body {
  display: none;
}

.legend-header {
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 6px;
}

.legend-toggle-wrapper {
  position: relative;
  margin-top: 48px; /* ⬅️ PAS DI BAWAH FULLSCREEN */
}

.legend-toggle-btn {
  background: #fff;
  border: none;
  border-radius: 4px;
  padding: 5px 5px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
  font-size: 16px;
}

.map-legend {
  position: absolute;
  top: 40px;
  left: 0;
  background: rgba(255,255,255,0.97);
  padding: 8px 10px;
  font-size: 12px;
  border-radius: 6px;
  min-width: 220px;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  z-index: 1000;
}

.map-legend.hidden {
  display: none;
}

.map-legend strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  position: sticky;
  top: 0;
  background: white;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.legend-color {
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border-radius: 50%;
}

