/* Estilos para el contenedor del loader */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
}

.loader-text {
    color: white;
    margin-top: 20px;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
}

/* From Uiverse.io by Shoh2008 */ 
.loader { 
    width: 45px; 
    height: 40px; 
    background: linear-gradient(#0000 calc(1*100%/6),#fff 0 calc(3*100%/6),#0000 0), 
              linear-gradient(#0000 calc(2*100%/6),#fff 0 calc(4*100%/6),#0000 0), 
              linear-gradient(#0000 calc(3*100%/6),#fff 0 calc(5*100%/6),#0000 0); 
    background-size: 10px 400%; 
    background-repeat: no-repeat; 
    animation: matrix 1s infinite linear; 
}
 
@keyframes matrix { 
    0% { 
        background-position: 0% 100%, 50% 100%, 100% 100% 
    } 
 
    100% { 
        background-position: 0% 0%, 50% 0%, 100% 0% 
    } 
}

/* Estilos para el modal de confirmación */
.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loader-content {
    color: white;
    font-size: 24px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-content h2 {
    color: #28a745;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.modal-content p {
    margin-bottom: 25px;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
}

.modal-content .btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    transition: background-color 0.3s;
}

.modal-content .btn:hover {
    background-color: #218838;
}

.success-icon {
    font-size: 60px;
    color: #28a745;
    margin-bottom: 20px;
}

/* Estilos para el botón de cerrar (X) */
.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #333;
}