/* Fondo general (sin oscurecer toda la pantalla) */
.custom-overlay-alert-ui-alert {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    height: 100vh;
}

/* Alerta centrada dentro de su div */
.custom-alert-ui-alert {
    position: absolute;
    top: 16%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    padding: 20px;
    background: #fff;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    text-align: center;
    font-family: Arial, sans-serif;
    z-index: 10000;
    animation: fadeIn 0.3s ease-in-out;
}

/* Colores para exito y error */
.custom-alert-success {
    background: #d4edda;
    color: #155724;
}

.custom-alert-error {
    background: #f8d7da;
    color: #721c24;
}

.close-alert-ui-alert {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

.close-alert-ui-alert:hover {
    color: #000;
}

/* Animación */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}
