/* Common spinner animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

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

/* Global loader (blocks the screen) */
#global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

    #global-loader .spinner {
        width: 50px;
        height: 50px;
        border: 5px solid #f3f3f3;
        border-top: 5px solid #3498db;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

/* Light loader (just the spinner) */
#light-loader {
    position: fixed;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 10px;
    z-index: 9998;
    padding: 5px;        
    top: 20px; 
    left: 50%;
    transform: translateX(-50%); 
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px; 
    

}

    #light-loader .spinner {
        width: 30px;
        height: 30px;
        border: 3px solid #f3f3f3;
        border-top: 3px solid #3498db;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

/* Disabled element styles */
.element-disabled {
    pointer-events: none;
    opacity: 0.3;
    cursor: wait;
}
