/* 1. Wrapper untuk menutup satu layar penuh */
#loading-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #172339; /* Warna Background SIRAJU */
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out;
}

/* 2. Spinner (CSS Punya Anda) */
/* Saya ubah selectornya jadi class .custom-spinner agar lebih fleksibel */
.custom-loader {
    width: 45px;
    aspect-ratio: 1;
    --c: no-repeat linear-gradient(#2ec4b6 0 0);
    background: var(--c) 0 0, var(--c) 0 100%, var(--c) 50% 50%, var(--c) 100% 0,
        var(--c) 100% 100%;
    animation: b3 1s infinite alternate;
}

@keyframes b3 {
    0%,
    10% {
        background-size: 20% 100%;
    }
    50% {
        background-size: 20% 20%;
    }
    90%,
    100% {
        background-size: 100% 20%;
    }
}
