/* ------------------------------------------------------------
   GLOBAL LOADING OVERLAY CSS
   Compatible con Bootstrap, sidebar, layouts, etc.
   Sólo estilos visuales → no interfiere con ninguno de los themes
------------------------------------------------------------ */

.global-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: none; /* oculto por defecto */
    align-items: center;
    justify-content: center;
    z-index: 9999; /* por encima de todo */
    pointer-events: none; /* hasta que esté en estado "show" */
}

    .global-loading-overlay.show {
        display: flex;
        pointer-events: auto;
    }

.global-loading-box {
    background: #ffffff;
    padding: 18px 24px;
    border-radius: 10px;
    text-align: center;
    min-width: 220px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.global-loading-text {
    font-size: 14px;
    color: #222;
    font-weight: 500;
}

/* Spinner */
.global-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.15);
    border-top-color: rgba(0, 123, 255, 0.95);
    border-radius: 50%;
    animation: global-spin 0.8s linear infinite;
}

@keyframes global-spin {
    to {
        transform: rotate(360deg);
    }
}
