/* styles.css */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050; /* Au-dessus de la plupart des éléments */
    width: 400px;
}

.toast-notification {
    background-color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    margin-bottom: 1rem;
    border-left: 5px solid #0dcaf0; /* Bleu info par défaut */
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease-in-out;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}
.toast-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}
.toast-success .toast-icon { color: #198754; }
.toast-error .toast-icon { color: #dc3545; }
.toast-warning .toast-icon { color: #e0a800; }
.toast-info .toast-icon { color: #0dcaf0; }

.toast-message {
    flex-grow: 1; /* Le message prend toute la place restante */
    font-weight: 500;
}

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

.toast-notification.toast-success { border-left-color: #198754; } /* Vert */
.toast-notification.toast-error { border-left-color: #dc3545; } /* Rouge */
.toast-notification.toast-warning { border-left-color: #e0a800; } /* Jaune / attention */
.toast-notification.toast-info { border-left-color: #0dcaf0; } /* Bleu */

.toast-message {
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1rem; /* Taille de l'icône X */
    line-height: 1;
    opacity: 0.6;
    cursor: pointer;
    padding: 0.5rem;
}
.toast-close:hover {
    opacity: 1;
}