/* ========================================= */
/* MODAL GLOBAL DE NOTIFICACIONES */
/* Estilos centralizados para modal reutilizable */
/* ========================================= */

/* Selector específico por ID para evitar conflictos con otros modales */
#notificationModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    justify-content: center;
    align-items: center;
}

#notificationModal.show {
    display: flex;
}

/* Estilos específicos para el contenido del modal global */
#notificationModal .modal-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
}

#notificationModal .modal-content.error {
    border-left: 5px solid #dc3545;
    background: white;
}

#notificationModal .modal-content.success {
    border-left: 5px solid #28a745;
    background: white;
}

#notificationModal .modal-content.warning {
    border-left: 5px solid #ffc107;
    background: white;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
#notificationModal .modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

#notificationModal .modal-icon {
    font-size: 32px;
}

#notificationModal .modal-icon.success {
    color: #28a745;
}

#notificationModal .modal-icon.error {
    color: #dc3545;
}

#notificationModal .modal-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

#notificationModal .modal-title.error {
    color: #dc3545;
}

#notificationModal .modal-title.success {
    color: #28a745;
}

#notificationModal .modal-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

#notificationModal .modal-message.error {
    color: #721c24;
    font-weight: 500;
}

#notificationModal .modal-footer {
    display: flex;
    justify-content: flex-end;
}

#notificationModal .modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

#notificationModal .modal-btn.success {
    background-color: #28a745;
    color: white;
}

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

#notificationModal .modal-btn.error {
    background-color: #dc3545;
    color: white;
}

#notificationModal .modal-btn.error:hover {
    background-color: #c82333;
}
