/**
 * Styles pour le système de toast
 */

/* Conteneur principal des toasts */
#liv-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
    width: 100%;
}

/* Style de base pour tous les toasts */
.liv-toast {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: white;
    margin-top: 10px;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
    max-width: 100%;
}

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

/* Animation de sortie */
.liv-toast-hide {
    transform: translateX(120%);
    opacity: 0;
}

/* Conteneur de l'icône */
.liv-toast-icon {
    flex-shrink: 0;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Style des icônes */
.liv-toast-icon svg {
    width: 20px;
    height: 20px;
}

/* Contenu du toast */
.liv-toast-content {
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.5;
    padding-right: 8px;
}

/* Bouton de fermeture */
.liv-toast-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.liv-toast-close:hover {
    opacity: 1;
}

.liv-toast-close svg {
    width: 16px;
    height: 16px;
}

/* Types de toast */
.liv-toast-success {
    border-left: 4px solid #10b981;
}

.liv-toast-success .liv-toast-icon svg {
    color: #10b981;
}

.liv-toast-error {
    border-left: 4px solid #ef4444;
}

.liv-toast-error .liv-toast-icon svg {
    color: #ef4444;
}

.liv-toast-warning {
    border-left: 4px solid #f59e0b;
}

.liv-toast-warning .liv-toast-icon svg {
    color: #f59e0b;
}

.liv-toast-info {
    border-left: 4px solid #3b82f6;
}

.liv-toast-info .liv-toast-icon svg {
    color: #3b82f6;
}

/* Responsive */
@media (max-width: 480px) {
    #liv-toast-container {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        padding: 10px;
    }
    
    .liv-toast {
        border-radius: 8px;
        width: 100%;
    }
} 