/* Navbar glass effect */
.navbar-glass {
  background: rgba(255, 255, 255, 0.1); /* Transparan putih */
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

/* Saat di-scroll biar lebih solid */
.navbar-glass.scrolled {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
}

/* Glass button effect for navbar links */
.nav-glass {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 6px 14px;
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
  color: #fff !important; /* teks selalu terlihat di background apa pun */
  font-weight: 500;
}

.nav-glass:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #000 !important;
}

.map-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* default 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
}

.map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}

/* Media query untuk hp */
@media (max-width: 768px) {
  .map-responsive {
    padding-bottom: 75%; /* ubah jadi 4:3 biar lebih tinggi di layar hp */
  }
}

.empty-state {
  opacity: 0.7;
}

.table-hover tbody tr:hover {
  background-color: rgba(13, 110, 253, 0.1) !important;
}

.badge {
  font-size: 0.75em;
}

.table th {
  border-top: 2px solid #dee2e6;
  border-bottom: 2px solid #dee2e6;
}

.table-secondary td {
  background-color: #f8f9fa !important;
  font-weight: 600;
}

.table-info {
  background-color: #d1ecf1;
}

.table-warning {
  background-color: #fff3cd;
}

.table-danger {
  background-color: #f8d7da;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

@media print {
  .card-header, .btn, .empty-state button {
    display: none !important;
  }
  
  .card {
    border: none !important;
  }
}

.slider {
  max-height: 420px;   /* batas tinggi */
  width: 100%;
  object-fit: contain; /* biar muat tanpa crop */
  border-radius: 12px;
}

.bg-card-penduduk {
          background-color: lightgoldenrodyellow;
        }

/* .section-title {
    border-bottom: 2px solid #0d6efd;
    padding-bottom: 10px;
    margin: 30px 0 20px;
    color: #0d6efd;
}
.card-apbdes {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
    border: none;
    border-radius: 10px;
}
.card-header {
    background-color: #f8f9fa;
    font-weight: 600;
    border-radius: 10px 10px 0 0 !important;
}
.btn-submit {
    background-color: #198754;
    border-color: #198754;
    padding: 10px 20px;
    font-weight: 600;
}
.btn-submit:hover {
    background-color: #0f6848;
    border-color: #0f6848;
}
.table-responsive {
    max-height: 400px;
    overflow-y: auto;
}
.nav-tabs .nav-link.active {
    font-weight: bold;
    border-bottom: 3px solid #0d6efd;
}
.material-icons {
    vertical-align: middle;
    margin-right: 5px;
}
.sticky-header {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 10;
}
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
.stat-box {
    border-left: 4px solid #0d6efd;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}
.stat-box h6 {
    color: #6c757d;
    font-size: 0.9rem;
}
.stat-box .number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0d6efd;
} */

/* Custom styling untuk Splide */
.splide {
  margin: 0 !important;
}

.splide__slide {
  transition: transform 0.3s ease;
}

.splide__slide:hover {
  transform: scale(1.02);
}

.splide__arrow {
  background: rgba(0, 0, 0, 0.7) !important;
  opacity: 0.8;
  width: 2.5rem;
  height: 2.5rem;
}

.splide__arrow:hover {
  opacity: 1;
}

.splide__arrow--prev {
  left: 1rem;
  border-radius: 48px;
}

.splide__arrow--next {
  right: 1rem;
  border-radius: 8px;
}

.splide__arrow svg {
  fill: white !important;
  width: 1.2rem;
  height: 1.2rem;
}

/* Thumbnail styling */
#thumbnail-slider {
  margin-top: 0.5rem !important;
}

.splide__thumbnail {
  opacity: 0.6;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
}

.splide__thumbnail.is-active {
  opacity: 1;
  border-color: #007bff;
  transform: scale(1.05);
}

.splide__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Main slider styling */
#main-slider .splide__slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
}

#main-slider .splide__slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .splide__arrow {
    width: 2rem;
    height: 2rem;
    transform: scale(0.8);
  }
  
  .splide__arrow svg {
    width: 1rem;
    height: 1rem;
  }
  
  #main-slider {
    height: 400px !important;
  }
}

@media (max-width: 576px) {
  #main-slider {
    height: 300px !important;
  }
  
  .splide__thumbnail {
    border-width: 1px;
  }
}

.explore-media {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 0.5rem; /* biar sama dengan card */
}

/* statistik landing penduduk */
.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 2rem;
}
.stat-card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 1.5rem;
}
.stat-card:hover {
    transform: translateY(-5px);
}
.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.stat-number {
    font-size: 2rem;
    font-weight: bold;
}
.section-title {
    border-left: 4px solid #0d6efd;
    padding-left: 15px;
    margin: 2rem 0 1rem;
}

/* swipper */
.mySwiper2 {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mySwiper2 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f9fa;
}

/* Gaya untuk swiper thumbnail */
.mySwiper {
    height: 100px;
    box-sizing: border-box;
    padding: 10px 0;
}

.mySwiper .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.mySwiper .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #6a11cb;
    border-radius: 8px;
    transform: scale(1.05);
}

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

/* Atur jarak swiper utama dan thumbnail */
.mySwiperThumbs {
    margin-top: 10px !important;
}

/* Gaya untuk navigasi */
.swiper-button-next, .swiper-button-prev {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
    color: #6a11cb;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background-color: rgba(106, 17, 203, 0.9);
}

.swiper-button-next:hover:after, .swiper-button-prev:hover:after {
    color: white;
}

/* Khusus untuk mobile */
@media (max-width: 768px) {
    .mySwiper2 {
        height: 350px;
        margin-bottom: 8px;
    }
    
    .mySwiper {
        height: 80px;
    }
    
    .mySwiperThumbs {
        margin-top: 8px !important;
    }
    
    .swiper-button-next, .swiper-button-prev {
        width: 32px;
        height: 32px;
    }
    
    .swiper-button-next:after, .swiper-button-prev:after {
        font-size: 16px;
    }
}

/* Untuk perangkat sangat kecil */
@media (max-width: 480px) {
    .mySwiper2 {
        height: 300px;
        margin-bottom: 6px;
    }
    
    .mySwiper {
        height: 70px;
        padding: 8px 0;
    }
    
    .mySwiperThumbs {
        margin-top: 6px !important;
    }
    
    .swiper-button-next, .swiper-button-prev {
        display: none;
    }
}

/* Sidebar default hidden di mobile */
#sidebarMenu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  background: #fff;
  z-index: 1050;
  transition: transform 0.3s ease-in-out;
}

/* Kalau ada class menubar-show => tampil */
#sidebarMenu.menubar-show {
  display: block;
  transform: translateX(0);
}

/* Overlay hitam transparan */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1040;
}

[data-simplebar] {
    overflow: auto;        /* fallback sebelum JS jalan */
    -ms-overflow-style: none; /* hide scrollbar IE */
    scrollbar-width: none; /* hide scrollbar Firefox */
}

[data-simplebar]::-webkit-scrollbar {
    display: none; /* hide scrollbar Chrome/Safari */
}

/* liquid glass */
.glass-background {
  background: rgba(255, 255, 255, 0.1); /* transparan tipis */
  backdrop-filter: blur(6px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%); /* Safari / iOS */
  border-radius: 1rem; /* biar rounded */
  border: 1px solid rgba(255, 255, 255, 0.2); /* garis tipis ala iOS */
  /* tambahan shadow */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* swiper berita landing */
/* .swiper {
    width: 100%;
    padding-top: 30px;
    padding-bottom: 50px;
  }
  .swiper-slide {
    background-position: center;
    background-size: cover;
    width: 250px;
    max-width: 80%;
  }
  .swiper-slide img {
    display: block;
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  } */

