/* Styling Header */
.table-responsive {
    overflow-x: auto;
    max-width: 100%;
}

/* Pastikan teks tidak menyebabkan kolom terlalu lebar */
.table td,
.table th {
    white-space: nowrap;
    /* Cegah teks melebihi kolom */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Membatasi ukuran logo */
.logo {
    max-width: 50px;
    height: auto;
}

.butt {
    display: block;
    gap: 40px;
}

.title-map {
    font-weight: bold;
}

.desc-map {
    margin-left: 5rem;
    margin-right: 5rem;
}

.hero {
    position: relative;
    background: url("/img/bg about.webp") center/cover no-repeat;
    height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(250, 241, 241);
    font-size: 30px;
    font-weight: bold;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    z-index: 1;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: 2;
}

.hero .overlay {
    position: relative;
    z-index: 3;
    text-align: center;
}

/* Membuat tabel responsif */
.table-responsive {
    overflow-x: auto;
    max-width: 100%;
}

/* Mencegah tabel terlalu lebar di layar kecil */
.table td,
.table th {
    white-space: nowrap; /* Mencegah teks melebihi batas */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ukuran gambar logo dalam tabel */
.logo {
    max-width: 50px;
    height: auto;
}

.tombol {
    gap: 10%;
}
.form-control {
    width: 40%; /* Ukuran input default */
}
.badge {
    gap: 5%;
}
/* Media Query untuk Mobile */
@media (max-width: 768px) {
    /* Ubah tinggi header agar lebih kecil di mobile */
    .header {
        height: 250px; /* Lebih kecil untuk mobile */
    }
    .pagination {
        margin: 5%;
    }

    /* Perkecil ukuran teks title di mobile */
    .title {
        font-size: 1.5rem; /* Ukuran lebih kecil untuk mobile */
    }

    /* Ubah arah flex menjadi kolom di mobile */
    .d-flex {
        align-items: center;
        flex-direction: row;
        gap: 10px;
    }
    .d-flex > div {
        width: 100%; /* Agar dropdown memiliki lebar penuh */
        margin-bottom: 10px; /* Memberikan jarak antar elemen */
    }

    /* Full width untuk input pencarian di mobile */
    .form-control {
        width: auto !important;
    }

    /* Perkecil ukuran logo di mobile */
    .logo {
        max-width: 40px; /* Ukuran lebih kecil untuk mobile */
    }

    /* Pagination tetap horizontal di mobile */
    .page .d-flex {
        flex-direction: row !important;
        justify-content: center;
    }
}

.btn-primary {
    transition: all 0.3s ease;
}

.page {
    margin-bottom: 30px;
}

.buttonStatus-warning {
    list-style: none; /* Hilangkan bullet default */
    padding: 0;
    margin-top: -8px;
    margin-bottom: -2px;
    border: none;
    animation: all 0.3s ease-in-out;
}

.buttonStatus-warning li {
    display: flex;
    align-items: center;
    background: #fdf5e6;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    font-size: 14px;
    animation: all 0.3s ease-in-out;
}

.buttonStatus-warning li::before {
    content: "";
    width: 10px;
    height: 10px;
    background-color: #ffbd66;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
    transition: all 0.3s ease-in-out;
}

.buttonStatus-warning li:hover {
    background: #ffb350;
    color: white;
    cursor: pointer;
}

.buttonStatus-warning li:hover::before {
    background-color: #ffffff;
}

/* Animasi Button Status success */
.buttonStatus-success {
    list-style: none; /* Hilangkan bullet default */
    padding: 0;
    margin-top: -8px;
    margin-bottom: -2px;
    border: none;
    animation: all 0.3s ease-in-out;
}

.buttonStatus-success li {
    display: flex;
    align-items: center;
    background: #cefce4;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    font-size: 14px;
    animation: all 0.3s ease-in-out;
}

.buttonStatus-success li::before {
    content: "";
    width: 10px;
    height: 10px;
    background-color: #70e6b5;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
    transition: all 0.3s ease-in-out;
}

.buttonStatus-success li:hover {
    background: #5dffab;
    color: white;
    cursor: pointer;
}

.buttonStatus-success li:hover::before {
    background-color: #ffffff;
}

/* button unpublish danger */
.buttonStatus-danger {
    list-style: none; /* Hilangkan bullet default */
    padding: 0;
    margin-top: -8px;
    margin-bottom: -2px;
    border: none;
    animation: all 0.3s ease-in-out;
}


/* background  */
.buttonStatus-danger li {
    display: flex;
    align-items: center;
    background-color: #e0e0e0;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    font-size: 14px;
    animation: all 0.3s ease-in-out;
}

/* Buletan sebelum di hover */
.buttonStatus-danger li::before {
    content: "";
    width: 10px;
    height: 10px;
    background-color: #474747;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
    transition: all 0.3s ease-in-out;
}

/* Tulisan setelah di hover */
.buttonStatus-danger li:hover {
    background: #6c757d;
    color: white;
    cursor: pointer;
}

.buttonStatus-danger li:hover::before {
    background-color: #ffffff;
}

/* Animasi saat hover tombol */
.btn-primary:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* Sesuaikan ukuran tombol di mobile */
@media (max-width: 576px) {
    .btn {
        padding: 6px 15px;
        font-size: 14px;
    }
}

@media (max-width: 500px) {
    /* Sembunyikan teks dalam tombol pagination */
    .page button span.d-md-inline {
        display: none !important;
    }

    /* Pastikan ikon tetap terlihat */
    .page button span.d-inline {
        display: inline !important;
    }
}

#pageInfo {
    text-align: center;
}
/* Media Query untuk Desktop */
@media (min-width: 769px) {
    /* Mengatur ukuran input pencarian lebih besar pada tampilan desktop */
    .form-control {
        width: 84% !important; /* Lebar lebih besar pada desktop */
    }
}

/* Styling khusus untuk input dan textarea di SweetAlert2 */
.swal2-popup .form-control {
    width: 100% !important; /* Biar nggak keganggu width form-control di global */
    text-align: center; /* Tengahin isi input & textarea */
    margin: 0 auto; /* Tengahin posisinya */
    display: block; /* Supaya proper di modal */
}

/* Supaya textarea tinggi nyaman */
.swal2-popup textarea.form-control {
    min-height: 100px;
    resize: vertical; /* Supaya user bisa tarik resize */
}

/* Styling tombol di SweetAlert biar konsisten */
.swal2-popup .swal2-confirm {
    background-color: #0d6efd; /* Warna tombol biru Bootstrap */
    color: white;
}

.swal2-popup .swal2-cancel {
    background-color: #dc3545; /* Warna tombol merah Bootstrap */
    color: white;
}

/* Tambahan transisi halus saat hover tombol */
.swal2-popup .swal2-confirm:hover,
.swal2-popup .swal2-cancel:hover {
    opacity: 0.9;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

td i {
    color: black;
}
.border-radius-20 {
    border-radius: 20px !important;
}

.programs-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.form-check-label {
    cursor: pointer;
    padding-left: 5px;
}

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

.swal2-title {
    padding-bottom: 1rem;
}

.swal2-html-container {
    margin-bottom: 0;
}

