/* assets/css/loader.css */

.loader-overlay {
    /* Ensure full-screen overlay for all devices */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(26, 26, 26, 0.95); /* Semi-transparent dark background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Highest z-index to ensure it's on top of everything */
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
}

.loader-overlay.hidden {
    opacity: 0;
    pointer-events: none; /* Allows clicks to pass through when hidden */
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(240, 215, 136, 0.2); /* Semi-transparent border for subtle effect */
    border-radius: 50%;
    border-top-color: #F0D788; /* Gold color */
    animation: spin 1s linear infinite;
}

.loader-text {
    margin-top: 20px;
    color: #F0D788;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
