.navbar-brand img {
    width: 20rem;
    height: auto;
}
.text-primary {
    color: #47003c !important;
}

.interactive-map-card {
    box-shadow: 0 0 20px 3px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    margin-bottom: 30px;
    transition: all ease 0.5s;
    border-radius: 0px 20px 0px 20px;
}

.interactive-map-card-img {
    border-radius: 0px 20px 0px 20px;
}

.interactive-map-card-content {
    padding: 30px;
    text-align: left;
}

.interactive-map-card-action {
    text-align: right;
    color: #47003c;
}

.interactive-map-card-action:hover a {
    color: white;
    text-decoration: none;
    background-color: transparent;
    border: 1px solid #47003c;
}

.partner-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-single-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all ease 0.3s;
    text-align: center;
    text-decoration: none;
    color: #000;
}

.partner-single-item:hover {
    border: 1px solid #47003c;
    box-shadow: 0 4px 12px rgba(71, 0, 60, 0.15);
    border-radius: 5px;
    padding: 10px;
}

.subtitle-section::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 5px;
    background-image: linear-gradient(to right, #00b9a1, #31b2cb);
}

/* Table wrapper */
.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px; /* beri jarak antar baris */
    font-size: 15px;
}

/* Table header */
.custom-table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    padding: 12px;
    border: none;
}

/* Table rows */
.custom-table tbody tr {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.custom-table tbody td {
    padding: 12px;
    vertical-align: middle;
    border-top: 1px solid #eee;
}

/* Hilangkan border antar row kecuali atas */
.custom-table tbody tr:first-child td {
    border-top: none;
}

/* Hover effect */
.custom-table tbody tr:hover {
    background-color: #f5f7fa;
}

/* Link style */
.custom-table a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.custom-table a:hover {
    text-decoration: underline;
}

.custom-tabs {
    background-color: #f1f5f9;
    border-radius: 8px;
    display: inline-flex;
    padding: 4px;
}
.custom-tabs .tab-btn {
    border: none;
    background: none;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}
.custom-tabs .tab-btn.active {
    background-color: white;
    color: #000;
}

#colRight {
    position: relative;
}

#btnCollapseRight {
  left: 0;
}

.side-toggle {
    position: absolute;
    z-index: 999;
    left: -35px;
    top: 50%;
    width: 35px;
    height: 96px;
    background-color: white;
    border: 0;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none;
}

.side-toggle i {
    font-size: 18px;
    line-height: 1;
}
.side-toggle:hover {
    filter: brightness(0.98);
}

/* =================== DASHBOARD CUSTOM STYLE =================== */
.ck-target .ck-editor__editable {
    min-height: 180px;
}
.ck-target.is-invalid .ck-editor__main {
    border-color: #dc3545 !important;
}


#resetToNational {
    cursor: pointer;
    text-decoration: underline;
}

/* === Filter Sidebar === */
.filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(1px);
  z-index: 1049; /* di atas header, di bawah offcanvas BS (1050) */
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.filter-overlay.show {
  opacity: 1;
  visibility: visible;
}

.filter-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: min(92vw, 380px);
  height: 100vh;
  background: #fff;
  box-shadow: -8px 0 24px rgba(0,0,0,.15);
  z-index: 1050; /* di atas overlay */
  transform: translateX(100%);
  transition: transform .28s ease;
  display: flex;
  flex-direction: column;
}

.filter-sidebar.show {
  transform: translateX(0%);
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}

.filter-body {
  padding: 14px 16px 8px 16px;
  overflow-y: auto;
  flex: 1 1 auto;
}

.filter-body h6 {
  font-weight: 700;
  margin: 14px 0 8px;
}

.filter-footer {
  padding: 12px 16px 16px;
  border-top: 1px solid #eee;
  background: #fafafa;
  position: sticky;
  bottom: 0;
}

/* helper */
.small-muted {
  font-size: 12px;
  color: #6b7280;
}

/* CSS FOR DETAIL PERDA */

.wrapper-container{
    padding-left: 3rem;
    padding-right: 3rem;
}

@media (max-width: 576px) {
  .wrapper-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.status-ribbon {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
}
.status-ribbon {
  --f: .5em;
  
  position: absolute;
  top: 0;
  right: 0;
  line-height: 1.5;
  padding-inline: 1lh;
  padding-bottom: var(--f);
  border-image: conic-gradient(#0008 0 0) 51%/var(--f);
  clip-path: polygon(
    100% calc(100% - var(--f)),100% 100%,calc(100% - var(--f)) calc(100% - var(--f)),var(--f) calc(100% - var(--f)), 0 100%,0 calc(100% - var(--f)),999px calc(100% - var(--f) - 999px),calc(100% - 999px) calc(100% - var(--f) - 999px));
  transform: translate(calc((1 - cos(45deg))*100%), -100%) rotate(45deg);
  transform-origin: 0% 100%;
  background-color: #853365;
}

.search-status-ribbon {
  font-size: 15px;
  font-weight: bold;
  color: #fff;
}
.search-status-ribbon {
  --f: .5em;
  
  position: absolute;
  top: 0;
  right: 0;
  line-height: 1.5;
  padding-inline: 1lh;
  padding-bottom: var(--f);
  border-image: conic-gradient(#0008 0 0) 51%/var(--f);
  clip-path: polygon(
    100% calc(100% - var(--f)),100% 100%,calc(100% - var(--f)) calc(100% - var(--f)),var(--f) calc(100% - var(--f)), 0 100%,0 calc(100% - var(--f)),999px calc(100% - var(--f) - 999px),calc(100% - 999px) calc(100% - var(--f) - 999px));
  transform: translate(calc((1 - cos(45deg))*100%), -100%) rotate(45deg);
  transform-origin: 0% 100%;
  background-color: #853365;
}

.search-status-ribbon.inactive {
  background-color: #328f3d;
}

.badge-count-perda-by-province {
    display:flex;
    align-items:center;
    justify-content:center;
    width:30px;
    color:#fff;
    height:30px;
    border-radius:6px;
    font-size:14px;
    background-color: #47003c;
}

.header-title {
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.national-marker {
    background: transparent;
    border: none;
}

.national-marker-inner {
    background-color: #25D366;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

    .gis-mitra-cluster {
        background: transparent !important;
        border: none !important;
    }

    .gis-mitra-cluster .cluster-circle {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: #2563eb; /* biru */
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 15px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.25);
        border: 2px solid #e5e7eb;
    }

    .gis-mitra-cluster .cluster-circle span {
        line-height: 1;
    }

    #detailSidebar {
        box-shadow: -4px 0 12px rgba(0,0,0,0.08);
    }


.big-action-btn {
    min-width: 260px;
    height: 56px;
    font-size: 1.05rem;
    font-weight: 600;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border-radius: 10px;
}

@media (max-width: 576px) {
    .big-action-btn {
        width: 100%;
        max-width: 320px;
    }
}

.notes-item{
    color: #853365;
    font-style: italic;
}

.faq-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 0;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  font-weight: 700;
  font-size: 1.125rem;
  color: #853365;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 0;
}

.faq-question i {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  font-size: 1.125rem;
}

.faq-answer p {
  margin-top: 12px;
  margin-bottom: 0;
  color: #555;
}

.carousel-img-wrapper {
    position: relative;
}

.carousel-actions {
    position: absolute;
    right: 12px;
    bottom: 12px;

    display: flex;
    gap: 8px;

    opacity: 1;
    pointer-events: auto;
    z-index: 5;

    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(4px);
    padding: 6px 8px;
    border-radius: 8px;
}

/* Pagination wrapper */
.pagination {
    gap: 6px;
}

/* Default item */
.page-link {
    border-radius: 8px;
    padding: 6px 14px;
    color: #6f6bd1;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease-in-out;
}

/* Hover */
.page-link:hover {
    background-color: #f3f4f6;
    color: #4f46e5;
}

/* Active page */
.page-item.active .page-link {
    background-color: #8C3568;
    border-color: #8C3568;
    color: #fff;
    font-weight: 600;
}

/* Disabled */
.page-item.disabled .page-link {
    color: #9ca3af;
    background-color: #f9fafb;
}

/* Mobile friendly */
@media (max-width: 576px) {
    .page-link {
        padding: 5px 10px;
        font-size: 14px;
    }
}

.search-result-info {
    background: #f8f9ff;
    border-left: 4px solid #47003c;
    padding: 8px 12px;
    border-radius: 6px;
}

.section-zebra:nth-child(odd) {
    background-color: #f3f4f6; /* abu muda */
}

.section-zebra:nth-child(even) {
    background-color: #ffffff;
}

.section-wrapper {
    padding: 40px 20px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.circle-wrapper {
    width: 140px;
    height: 140px;
    position: relative;
}

.circle-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
}

.circle-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.circle-center .value {
    font-size: 28px;
}

.circle-center .unit {
    font-size: 14px;
    color: #6b7280;
}

.icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    margin: 0 auto 5px;
}

.share-icon {
    text-decoration: none;
    color: #333;
    width: 60px;
}

.share-icon small {
    font-size: 12px;
}

.arrow-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.card-header[aria-expanded="true"] .arrow-icon {
    transform: rotate(180deg);
}

/* DEFAULT (lebih standout) */
.klasifikasi-default {
    background: linear-gradient(135deg, #4e73df, #224abe);
    color: #fff;
}

/* CUSTOM / NON DEFAULT */
.klasifikasi-custom {
    background: #89386b;
    color: #fff;
}

/* optional hover */
.klasifikasi-default:hover {
    background: linear-gradient(135deg, #2e59d9, #1c3faa);
}

.klasifikasi-custom:hover {
    background: #6f2d55;
}

.card-body-default {
    border: 1px solid #2e59d9;
}

.card-body-custom {
    border: 1px solid #6f2d55;
}

.icon-preview {
    object-fit: contain;
    background: #f8f9fa;
    padding: 4px;
}

.share-detail-button {
    color: #853365 !important;
    border-color: #853365 !important;
    padding: 15px 18px !important;
}

.share-detail-button:hover {
    color: white !important;
    text-decoration: none !important;
    background-color: #853365 !important;
    border: 1px solid #853365 !important;
}