/* Busy overlay styles */
#busy-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#busy-overlay p {
    margin-top: 20px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: pulse-text 2s infinite ease-in-out;
}

/* Modern Spinner style */
.spinner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: relative;
    border: 3px solid transparent;
    border-top-color: #cd3939;
    /* Brand Red */
    -webkit-animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    /* Safari */
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

.spinner:before,
.spinner:after {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #ffffff;
    animation: spin 3s linear infinite;
}

.spinner:after {
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-top-color: #ff6b6b;
    animation: spin 1s linear infinite;
}

/* Keyframes for spinner animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse-text {

    0%,
    100% {
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}