/* Baru */

.custom-card-unduhan {
    position: relative;
    /* width: 260px; */
    height: 130px;
    border-radius: 30px;
    background: linear-gradient(135deg, #8aeaff, #3e9bff);
    color: white;
    box-shadow: 0 8px 20px rgba(255, 62, 142, 0.3);
    overflow: hidden;
    transition: background 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

/* Icon kecil di kiri */
.icon-small {
    width: 40px;
    height: 40px;
    border: 2px solid white;
    border-radius: 50%;
    font-size: 20px;
}

/* Icon besar dekoratif */
.icon-big {
    position: absolute;
    right: 20px;
    font-size: 70px;
    opacity: 0.15;
}

.filter {
    z-index: 10;
    width: auto;
    /* max-width: 800px; */
    background-color: #eeeeee;
}

.topik-dataset-section {
    position: relative;
    background: url("/assets-opendata/img/topik.jpeg") no-repeat center center
        fixed;
    background-size: cover;
    min-height: 300px;
}

.topik-dataset-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 123, 255, 0.5);
    /* biru transparan */
    z-index: 1;
}

.topik-dataset-section .container {
    position: relative;
    z-index: 2;
    /* biar teks di atas overlay */
}

.dropdown-menu.show {
    /* height: 1300px !important; */
    z-index: 9999 !important;
    max-height: 300px !important;
    overflow-y: auto !important;
}

.dropdown-menu {
    z-index: 9999 !important;
    /* Super tinggi */
    position: absolute !important;
    max-height: 300px;
    overflow-y: auto;
    display: block;
    /* pastikan terlihat */
}

.filter {
    z-index: 9999 !important;
    position: relative;
    /* background-color: var(--primary-color) */
    background-image: linear-gradient(
            rgba(0, 162, 255, 0.832),
            rgba(255, 255, 255, 0.808)
        ),
        url("/assets/img/tapis2.jpg") !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat !important;
    color: white !important;
    /* atau absolute kalau memang butuh */
}

.dropdown-menu.show {
    z-index: 9999 !important;
    position: absolute !important;
}

.hero-section {
    overflow: visible !important;
}

a:hover h5 {
    color: #007bff !important;
}

.hero-section {
    background-image: url("/assets-opendata/img/kabup.webp");
    background-size: cover;
    max-width: 100vw;
    /* width: 100%; */
    background-position: center;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
}

@keyframes zoomHero {
    from {
        background-size: 100%;
    }

    to {
        background-size: 110%;
    }
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
    }
}

/* Responsif untuk layar sangat kecil (HP lama) */
@media (max-width: 480px) {
    .hero-section {
        min-height: 60vh;
    }
}

/* Responsif untuk layar besar */
@media (min-width: 1200px) {
    .hero-section {
        min-height: 50vh;
        animation: zoomHero 5s ease-in-out forwards;
    }
}

.hero-section .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #ffc1075b 0%, #007bffc7 100%);
    /* background: linear-gradient(180deg, #007bffc7 0%, #ffc1075b 100%); */
    z-index: 1;
}

/* dark mode support */
[data-bs-theme="dark"] .hero-section .hero-overlay {
    background: linear-gradient(135deg, #1e1e2ecc 0%, #2b2b3dcc 100%);
}

.hero-section .container {
    z-index: 2;
}

/* .card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 6px solid var(--primary-color) !important;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
} */

/* Efek hover & animasi */
.card-hover {
    transition: transform 0.25s ease, box-shadow 0.25s ease,
        border-left 0.25s ease;
    border-left: 6px solid var(--primary-color) !important;
    background: linear-gradient(135deg, #0099ff27, #ffffff);
}

.card-hover:hover {
    transform: translateY(-6px);
    border-left: 20px solid var(--primary-color) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

/* Gradient text untuk judul */
.text-gradient {
    background: linear-gradient(90deg, #000000, #007bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 0.5; /* atau normal */
    margin: 0; /* pastikan nol */
    padding: 0; /* hilangkan spasi tambahan */
    display: inline-block; /* biar efek gradient lebih rapi */
}

.card-body i.position-absolute {
    pointer-events: none; /* biar icon transparan terhadap klik */
}

#legend-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Align items to the start of the container */
    margin: 10px 0;
    /* Add some margin for better spacing */
}

.color-box {
    border-radius: 3px;
    /* Optional: Add rounded corners to color boxes */
}

.container-grafik {
    width: "30px";
}
.select2-container--default .select2-selection--multiple {
    min-height: 15px;
    height: auto;
    overflow-y: auto;
    white-space: normal;
    flex-wrap: wrap;
}

/* Buat area input tidak terlalu kecil */
.select2-container--default
    .select2-selection--multiple
    .select2-search__field {
    height: auto !important;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Apply blinking effect to the icon */
.blinking-icon {
    animation: blink 1s infinite;
    /* Blinks every 1 second */
    margin-right: 10px;
    /* Adds some space to the right of the icon */
    color: #dc3545;
    /* Bootstrap danger color (red) */
}

/* Modal Gambar Summernote */
.note-image-dialog {
    z-index: 1050 !important;
    position: relative !important;
}

/* Modal Backdrop Summernote */
.modal-backdrop {
    z-index: 1040 !important;
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: #0093dd rgba(8, 152, 255, 0.57); */
    background-color: #0093dd;
    opacity: 0.8;
    /* Semi-transparent white */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* Pastikan overlay berada di atas elemen lainnya */
}

.spinner-container {
    position: relative;
    width: 140px;
    /* Sesuaikan ukuran total untuk spinner */
    height: 140px;
}

.loading-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    /* Ukuran logo diperbarui menjadi 100px */
    height: 100px;
    /* Tinggi logo juga disesuaikan agar proporsional */
}

.spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    /* Warna transparan untuk area lain */
    border-top: 4px solid #ffffff;
    /* Warna utama spinner */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    /* Animasi berputar */
}

.loading-text {
    margin-top: 20px;
    /* Jarak antara spinner dan teks */
    font-size: 18px;
    color: #ffffff;
    font-weight: bold;
}

.dots::after {
    content: "...";
    display: inline-block;
    animation: dots 1.5s steps(3, end) infinite;
    /* Animasi titik-titik */
}

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

    100% {
        transform: rotate(360deg);
    }
}

@keyframes dots {
    0% {
        content: "";
    }

    33% {
        content: ".";
    }

    66% {
        content: "..";
    }

    100% {
        content: "...";
    }
}

.note-editable img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 10px 0;
}

#modalDetailTitik .modal-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 6px 10px;
}

.btn.rounded-circle {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
}

.btn.rounded-circle:hover {
    transform: scale(1.1);
}

.card-info-button {
    background-color: #f5f7fd;
    box-shadow: 2px 10px 18px -13px rgba(0, 0, 0, 0.75);
    -webkit-box-shadow: 2px 10px 18px -13px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 2px 10px 18px -13px rgba(0, 0, 0, 0.75);
}

/* Modal Gambar Summernote */
.note-image-dialog {
    z-index: 1050 !important;
    position: relative !important;
}

.modal-backdrop {
    z-index: 1040 !important;
}

.form-check-label {
    cursor: pointer;
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 6px 10px;
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 6px 10px;
}
.select2-container {
    width: 100% !important;
}

.btn.rounded-circle {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
}

.btn.rounded-circle:hover {
    transform: scale(1.1);
}

.right-image {
    z-index: 999;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.3rem;
}

.card-pb {
    background: linear-gradient(135deg, #ffffff, #efefef);
    transition: all 0.3s ease;
    border: none;
}

.card-pb:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #ffffff, #efefef);
}

.custom-close {
    filter: invert(25%) sepia(90%) saturate(7431%) hue-rotate(360deg)
        brightness(92%) contrast(104%);
}

.data-publikasi {
    margin-top: 90px;
}

.headers {
    position: relative;
    z-index: 1;
}

.responsive-filter {
    position: absolute;
    bottom: -80px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    z-index: 10;
    max-width: 1300px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    /* Di atas semua konten biasa */
}

@media (max-width: 991.98px) {
    /* lg breakpoint ke bawah (tablet dan HP) */
    .responsive-filter {
        position: static !important;
        margin-top: 2rem;
        max-width: 100%;
        /* biar full lebar atau kamu bisa set 90% */
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .data-publikasi {
        margin-top: 0px;
    }
}

.lead {
    line-height: 1.2;
    color: white !important;
    text-shadow: -1px -1px 0 var(--primary-color),
        1px -1px 0 var(--primary-color), -1px 1px 0 var(--primary-color),
        1px 1px 0 var(--primary-color);
}

.display-4 {
    font-weight: 800 !important;
    color: var(--primary-color);
    /* Outline putih */
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff,
        1px 1px 0 #fff;
    position: relative; /* Penting untuk ::after */
    display: inline-block; /* Agar garis pas di bawah teks */
}

/* Garis di bawah */
.display-4::after {
    content: "";
    display: block;
    width: 60px; /* Panjang garis */
    height: 4px; /* Tebal garis */
    background-color: var(--secondary-color); /* Warna garis */
    margin: 8px auto 0 auto; /* Jarak dari teks + center */
    border-radius: 2px; /* Membuat ujung garis sedikit bulat */
}

/* H1 utama */
.titles {
    text-align: start;
}
.titles .main-title {
    font-weight: 800;
    margin: 0;
    padding: 0;
    line-height: 1.1;
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6); /* shadow gelap */
}

.titles .sub-title {
    font-weight: 800;
    margin: 0;
    padding: 0;
    line-height: 1.1;
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: #efc227;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6); /* shadow gelap */
}

.sub-titles {
    margin-top: 10px;
    padding: 0;
    line-height: 1.1;
    font-size: clamp(0.5rem, 5vw, 2rem);
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6); /* shadow gelap */
}

.float-up-down {
    animation: floatY 3s ease-in-out infinite;
}

@keyframes floatY {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    } /* naik */
    100% {
        transform: translateY(0px);
    } /* turun */
}

#typing {
    display: inline-block;
    max-width: 100%; /* jangan lebih dari lebar container */
    white-space: normal; /* biar bisa pindah baris */
    word-wrap: break-word; /* biar kata panjang kepecah */
    overflow-wrap: break-word; /* modern support */
    text-align: start; /* kalau mau ditengah */
}

.typing-wrapper {
    display: flex;
    justify-content: start;
    align-items: start;
    text-align: start;
}

@keyframes blink {
    0% {
        border-color: transparent;
    }
    50% {
        border-color: #fff;
    }
    100% {
        border-color: transparent;
    }
}

.custom-card-unduhan:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.custom-card-unduhan:hover .icon-small i {
    transform: rotate(15deg) scale(1.2);
    color: #ffd54f; /* warna highlight saat hover */
}

.custom-card-unduhan:hover .icon-big {
    transform: scale(1.15) rotate(5deg);
    opacity: 0.1;
}
.watermark-icon {
    top: 50%;
    right: 15px; /* jarak dari sisi kanan */
    transform: translateY(-50%);
    opacity: 0.08;
    font-size: clamp(3rem, 20%, 6rem); /* auto besar-kecil sesuai card */
    pointer-events: none; /* biar ga ganggu klik */
}

.img-hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 50px 80px rgba(0, 0, 0, 0.25);
}
