/**
 * Toast Notifications - Hub des Formalités
 * Responsabilité : Styles pour les notifications toast
 */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: var(--white);
    border-radius: var(--border-radius-large);
    box-shadow: var(--modern-shadow);
    border-left: 4px solid var(--primary-color);
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(100%);
    opacity: 0;
}

.toast--success {
    border-left-color: var(--success-color);
}

.toast--error {
    border-left-color: var(--danger-color);
}

.toast--warning {
    border-left-color: var(--warning-color);
}

.toast--info {
    border-left-color: var(--info-color);
}

.toast__content {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 12px;
}

.toast__icon {
    font-size: 18px;
    flex-shrink: 0;
}

.toast__message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.4;
}

.toast__close {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast__close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-color);
}

/* Animation d'entrée */
.toast {
    animation: toastSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
    }
}
