/* ========================================================================== */
/* ALERT MODAL - Modal de Alertas y Confirmaciones Reusable                 */
/* ========================================================================== */

/* Overlay del modal */
.alert-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    animation: alertFadeIn 0.2s ease-out;
}

@keyframes alertFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Contenedor del modal */
.alert-modal-container {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 24px 28px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: alertSlideIn 0.3s ease-out;
    border: 1px solid var(--border-color);
}

@keyframes alertSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Icono */
.alert-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-modal-icon svg {
    width: 32px;
    height: 32px;
}

/* Colores de iconos */
.alert-modal-icon-info {
    background-color: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}

.alert-modal-icon-warning {
    background-color: rgba(255, 193, 7, 0.12);
    color: #ffc107;
}

.alert-modal-icon-error {
    background-color: rgba(220, 53, 69, 0.12);
    color: #dc3545;
}

.alert-modal-icon-success {
    background-color: rgba(25, 135, 84, 0.12);
    color: #198754;
}

/* Titulo */
.alert-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    color: var(--text-primary);
}

/* Mensaje */
.alert-modal-message {
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    white-space: pre-wrap;
    max-width: 100%;
    color: var(--text-primary);
    opacity: 0.85;
    margin: 0;
}

/* Botones */
.alert-modal-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 8px;
}

.alert-modal-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.alert-modal-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.alert-modal-btn:active {
    transform: translateY(0);
}

/* Boton Confirmar */
.alert-modal-btn-confirm {
    background-color: #0d6efd;
    color: white;
}

.alert-modal-btn-confirm:hover {
    background-color: #0b5ed7;
}

/* Boton Cancelar */
.alert-modal-btn-cancel {
    background-color: #6c757d;
    color: white;
}

.alert-modal-btn-cancel:hover {
    background-color: #5c636a;
}

/* ========================================================================== */
/* RESPONSIVE                                                                */
/* ========================================================================== */

@media (max-width: 576px) {
    .alert-modal-container {
        padding: 20px 24px;
        max-width: 95%;
        gap: 14px;
    }

    .alert-modal-icon {
        width: 48px;
        height: 48px;
    }

    .alert-modal-icon svg {
        width: 28px;
        height: 28px;
    }

    .alert-modal-title {
        font-size: 16px;
    }

    .alert-modal-message {
        font-size: 13px;
    }

    .alert-modal-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .alert-modal-btn {
        width: 100%;
        padding: 10px 16px;
        font-size: 13px;
    }
}
