/* Overlay dengan glass effect */
#preloader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 9999;
    transition:
        opacity 0.6s ease,
        visibility 0.6s ease;
}

/* Hidden state */
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Container */
.preloader-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo image */
.preloader-logo {
    margin-top: 9px;
    width: 78px;
    height: 78px;
    z-index: 2;
    animation: float 2s ease-in-out infinite;
}

/* Default logo */
.default-logo {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ff9800, #ff5722);
    color: #fff;
    font-weight: bold;
    font-size: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 2;
    animation: float 2s ease-in-out infinite;
}

/* Ring loader (modern) */
.loader-ring {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;

    border: 3px solid rgba(255, 152, 0, 0.2);
    border-top: 3px solid #ff9800;

    animation: spin 1s linear infinite;
}
.loading-text {
    margin-top: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    animation: fadeText 1.5s infinite;
}

.loading-subtext {
    font-size: 13px;
    color: #777;
    margin-top: -20px;
}

/* animasi teks biar hidup */
@keyframes fadeText {
    0% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.4;
    }
}

/* Animasi putar */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Animasi floating */
@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-6px);
    }
}
