.loader-center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    text-align: center;
}

.loader-center img {
    width: 120px;
    /* Ukuran gambar diperbesar */
    height: 120px;
    /* Ukuran gambar diperbesar */
    position: relative;
    animation: pulse 1.5s infinite ease-in-out alternate;
}

/* Ring luar */
.loader-ring {
    position: absolute;
    width: 160px;
    /* Ukuran ring diperbesar */
    height: 160px;
    /* Ukuran ring diperbesar */
    border: 4px solid transparent;
    border-top: 4px solid #3498db;
    border-right: 4px solid #3498db;
    border-radius: 50%;
    top: -20px;
    left: -20px;
    animation: spin 2s linear infinite;
}

/* Ring tengah dengan arah berlawanan */
.loader-ring::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    border: 4px solid transparent;
    border-bottom: 4px solid #2ecc71;
    border-left: 4px solid #2ecc71;
    border-radius: 50%;
    top: 6px;
    left: 6px;
    animation: spin-reverse 1.5s linear infinite;
}

/* Ring dalam */
.loader-ring::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border: 4px solid transparent;
    border-top: 4px solid #e74c3c;
    border-right: 4px solid #e74c3c;
    border-radius: 50%;
    top: 16px;
    left: 16px;
    animation: spin 1s linear infinite;
}

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

    to {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* Tambahan efek blur untuk ring */
.loader-ring,
.loader-ring::before,
.loader-ring::after {
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.1));
}
