/**
 * =====================================================
 * MARKETFLOW PRO - STYLES DES NOTIFICATIONS TOAST
 * =====================================================
 * 
 * Styles pour le système de notifications modernes
 * Compatible avec le design system existant
 * 
 * @author MarketFlow Team
 * @version 1.0
 */

/* =====================================================
   CONTAINER PRINCIPAL
   ===================================================== */
.notification-container {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Positions du container */
.notification-container.top-right {
    top: 2rem;
    right: 2rem;
}

.notification-container.top-left {
    top: 2rem;
    left: 2rem;
}

.notification-container.bottom-right {
    bottom: 2rem;
    right: 2rem;
}

.notification-container.bottom-left {
    bottom: 2rem;
    left: 2rem;
}

/* =====================================================
   TOAST NOTIFICATION
   ===================================================== */
.notification-toast {
    pointer-events: all;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    min-width: 300px;
    max-width: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1),
                0 2px 8px rgba(0, 0, 0, 0.06);
    border-left: 4px solid currentColor;
    
    /* Animations */
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation d'entrée */
.notification-toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* Animation de sortie */
.notification-toast.hide {
    opacity: 0;
    transform: translateX(100%) scale(0.8);
}

/* =====================================================
   TYPES DE NOTIFICATIONS
   ===================================================== */

/* Succès (vert) */
.notification-success {
    color: #059669;
    border-left-color: #059669;
}

.notification-success .notification-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Erreur (rouge) */
.notification-error {
    color: #dc2626;
    border-left-color: #dc2626;
}

.notification-error .notification-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Avertissement (orange) */
.notification-warning {
    color: #d97706;
    border-left-color: #d97706;
}

.notification-warning .notification-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Information (bleu) */
.notification-info {
    color: #2563eb;
    border-left-color: #2563eb;
}

.notification-info .notification-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* =====================================================
   ÉLÉMENTS DE LA NOTIFICATION
   ===================================================== */

/* Icône */
.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Message */
.notification-message {
    flex: 1;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text-primary, #1f2937);
}

/* Bouton de fermeture */
.notification-close {
    background: none;
    border: none;
    color: var(--text-tertiary, #9ca3af);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.notification-close:hover {
    background: var(--bg-secondary, #f3f4f6);
    color: var(--text-primary, #1f2937);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 640px) {
    .notification-container {
        left: 1rem;
        right: 1rem;
        top: 1rem;
    }
    
    .notification-toast {
        min-width: auto;
        width: 100%;
    }
}

/* =====================================================
   ANIMATIONS PERSONNALISÉES
   ===================================================== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
}