﻿
/*Estilos del Loading*/
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 9999;
    display: none; /* Hidden by default */
}

.spinner-loader {
    --primary-color: #2980b9;
    --secondary-color: #3498db;
    width: 80px;
    height: 80px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

    .spinner-loader::before,
    .spinner-loader::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        border: 4px solid transparent;
    }

    .spinner-loader::before {
        width: 100%;
        height: 100%;
        border-top-color: var(--primary-color);
        border-left-color: var(--primary-color);
        animation: spin 1.5s linear infinite;
    }

    .spinner-loader::after {
        width: 70%;
        height: 70%;
        border-bottom-color: var(--secondary-color);
        border-right-color: var(--secondary-color);
        animation: spin 1.2s linear reverse infinite;
    }

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.spinner-loader .text {
    position: absolute;
    bottom: -30px;
    font-size: 16px;
    color: var(--primary-color);
    white-space: nowrap;
}

