/* Custom Toast Notifications - Style personnalisé */

.custom-toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    pointer-events: none;
}

.custom-toast {
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    pointer-events: all;
    backdrop-filter: blur(10px);
    min-width: 300px;
    max-width: 400px;
}

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

.toast-icon {
    font-size: 24px;
    margin-right: 12px;
    flex-shrink: 0;
    animation: iconPulse 0.5s ease;
}

@keyframes iconPulse {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.toast-message {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

.toast-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 18px;
    padding: 4px 8px;
    margin-left: 8px;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    color: rgba(255, 255, 255, 1);
}

.toast-close i {
    pointer-events: none;
}

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

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

    .toast-message {
        font-size: 13px;
    }
}

/* Animation pour empiler les toasts */
.custom-toast:not(:last-child) {
    margin-bottom: 0;
}
