/**
 * Sistema de Notificaciones Profesional - SafetyAI
 * Estilos para notificaciones toast y modales
 */

/* Contenedor de notificaciones */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 420px;
    width: 100%;
}

/* Notificación Toast */
.notification-toast {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: all;
    position: relative;
}

.notification-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    position: relative;
    z-index: 2;
}

.notification-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.notification-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #1F2937;
    font-weight: 500;
    padding-top: 4px;
}

.notification-close {
    background: none;
    border: none;
    color: #6B7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #374151;
}

/* Barra de progreso */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    width: 100%;
    transform-origin: left;
}

/* Tipos de notificaciones */
.notification-success {
    border-left: 4px solid #10B981;
}

.notification-success .notification-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.notification-success .notification-progress {
    background: linear-gradient(90deg, #10B981, #059669);
}

.notification-error {
    border-left: 4px solid #EF4444;
}

.notification-error .notification-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.notification-error .notification-progress {
    background: linear-gradient(90deg, #EF4444, #DC2626);
}

.notification-warning {
    border-left: 4px solid #F59E0B;
}

.notification-warning .notification-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.notification-warning .notification-progress {
    background: linear-gradient(90deg, #F59E0B, #D97706);
}

.notification-info {
    border-left: 4px solid #2563EB;
}

.notification-info .notification-icon {
    background: rgba(37, 99, 235, 0.1);
    color: #2563EB;
}

.notification-info .notification-progress {
    background: linear-gradient(90deg, #2563EB, #1D4ED8);
}

/* Animación de progreso */
@keyframes notificationProgress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Overlay para modales */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.notification-overlay.show {
    opacity: 1;
}

/* Modal de confirmación */
.notification-confirm-modal,
.notification-alert-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 100%;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-overlay.show .notification-confirm-modal,
.notification-overlay.show .notification-alert-modal {
    transform: scale(1);
}

.notification-confirm-header {
    padding: 24px 24px 16px;
    text-align: center;
    border-bottom: 1px solid #E5E7EB;
}

.notification-confirm-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 32px;
}

.notification-confirm-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.notification-confirm-icon.error,
.notification-confirm-icon.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.notification-confirm-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.notification-confirm-icon.info {
    background: rgba(37, 99, 235, 0.1);
    color: #2563EB;
}

.notification-confirm-title {
    font-size: 20px;
    font-weight: 700;
    color: #1F2937;
    margin: 0;
}

.notification-confirm-body {
    padding: 20px 24px;
    text-align: center;
}

.notification-confirm-body p {
    font-size: 15px;
    line-height: 1.6;
    color: #4B5563;
    margin: 0;
}

.notification-confirm-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #E5E7EB;
}

/* Botones */
.notification-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: 'Inter', sans-serif;
}

.notification-btn-cancel {
    background: #F3F4F6;
    color: #374151;
}

.notification-btn-cancel:hover {
    background: #E5E7EB;
}

.notification-btn-confirm {
    color: white;
}

.notification-btn-success {
    background: linear-gradient(135deg, #10B981, #059669);
}

.notification-btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.notification-btn-error,
.notification-btn-danger {
    background: linear-gradient(135deg, #EF4444, #DC2626);
}

.notification-btn-error:hover,
.notification-btn-danger:hover {
    background: linear-gradient(135deg, #DC2626, #B91C1C);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.notification-btn-warning {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

.notification-btn-warning:hover {
    background: linear-gradient(135deg, #D97706, #B45309);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.notification-btn-info {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
}

.notification-btn-info:hover {
    background: linear-gradient(135deg, #1D4ED8, #1E40AF);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Responsive */
@media (max-width: 640px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .notification-confirm-modal,
    .notification-alert-modal {
        max-width: 100%;
        margin: 0;
    }

    .notification-confirm-footer {
        flex-direction: column-reverse;
    }

    .notification-btn {
        width: 100%;
    }
}

/* Animaciones adicionales */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

