/* Preloader styles for Golf Car Indo */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
}

.loader {
    position: relative;
    width: 80px;
    height: 80px;
}

.loader:before,
.loader:after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation-duration: 1.8s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.loader:before {
    width: 80px;
    height: 80px;
    background-color: rgba(52, 152, 219, 0.2);
    animation-name: pulse;
}

.loader:after {
    width: 40px;
    height: 40px;
    background-color: rgba(52, 152, 219, 0.6);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-name: pulse-inner;
}

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

@keyframes pulse-inner {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}
