#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    /* White background as requested */
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    position: relative;
    width: 250px;
    /* Bigger container */
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-logo {
    width: 150px;
    /* Bigger logo as requested */
    height: auto;
    z-index: 2;
    filter: none;
    /* No inversion since background is white */
    animation: pulse 1.5s infinite alternate ease-in-out;
}

.loader-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(0, 0, 0, 0.05);
    /* Soft border for white background */
    border-radius: 50%;
    border-top: 3px solid #C8861A;
    animation: rotate 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

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

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

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.9;
    }

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

/* Ensure visibility on both themes */
[data-theme='dark'] #preloader {
    background: #fff;
    /* Stay white even in dark mode for a clean start */
}