/**
 * Styles pour le système de notifications toast unifié
 */

/* Conteneur des toasts */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

/* Toast individuel */
.toast-notification {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    pointer-events: auto;
    min-width: 300px;
    max-width: 400px;
}

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

.toast-notification.toast-hiding {
    opacity: 0;
    transform: translateX(100%);
}

/* Contenu du toast */
.toast-content {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    border-left: 4px solid;
    position: relative;
}

/* Icône */
.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 20px;
}

/* Corps du toast */
.toast-body {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: #1a1a1a;
    line-height: 1.4;
}

.toast-message {
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
    word-wrap: break-word;
}

/* Bouton de fermeture */
.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: #999999;
    cursor: pointer;
    padding: 0;
    margin-left: 12px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: #333333;
}

/* Barre de progression */
.toast-progress {
    height: 3px;
    width: 100%;
    transition: width 0ms linear;
    position: absolute;
    bottom: 0;
    left: 0;
    opacity: 0.8;
    will-change: width;
}

.toast-success .toast-progress {
    background-color: #28a745;
}

.toast-warning .toast-progress {
    background-color: #ffc107;
}

.toast-error .toast-progress {
    background-color: #dc3545;
}

.toast-info .toast-progress {
    background-color: #17a2b8;
}

/* Couleurs par type */
.toast-success .toast-content {
    border-left-color: #28a745;
}

.toast-success .toast-icon {
    color: #28a745;
}

.toast-warning .toast-content {
    border-left-color: #ffc107;
}

.toast-warning .toast-icon {
    color: #ffc107;
}

.toast-error .toast-content {
    border-left-color: #dc3545;
}

.toast-error .toast-icon {
    color: #dc3545;
}

.toast-info .toast-content {
    border-left-color: #17a2b8;
}

.toast-info .toast-icon {
    color: #17a2b8;
}

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

    .toast-notification {
        min-width: auto;
        max-width: none;
    }
}

/* Animation shimmer pour le chargement (optionnel) */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

