.custom-loader-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.3);
    /* Mengubah alpha untuk transparansi lebih jelas */
    z-index: 9999;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    /* Aktifkan interaksi saat loader muncul */
}

.custom-loader-container.hidden {
    opacity: 0;
    visibility: hidden;
}

.custom-loader {
    border: 8px solid #f3f3f3;
    border-radius: 50%;
    border-top: 8px solid #365ae3;
    border-bottom: 8px solid #365ae3;
    width: 50px;
    height: 50px;
    -webkit-animation: custom-spin 2s linear infinite;
    animation: custom-spin 2s linear infinite;
}

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

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

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

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