/* Toast Container - Style Stripe */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    width: 100%;
    pointer-events: none;
}

.toast {
    padding: 16px 20px;
    border-radius: 12px;
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    animation: toastSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.toast:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.toast.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.toast.success .toast-icon {
    color: #d1fae5;
}

.toast.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.toast.error .toast-icon {
    color: #fecaca;
}

.toast.info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.toast.info .toast-icon {
    color: #bfdbfe;
}

.toast.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.toast.warning .toast-icon {
    color: #fde68a;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toast-title {
    font-weight: 600;
    font-size: 15px;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.toast-message {
    font-weight: 400;
    font-size: 13px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px;
    transition: all 0.3s ease;
    font-size: 18px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.toast-close i {
    font-size: 16px;
}

/* Animations */
@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(100px) scale(0.95);
    }
}

.toast.hiding {
    animation: toastSlideOut 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Badge de progression */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0 0 12px 12px;
    animation: toastProgress 5s linear forwards;
}

@keyframes toastProgress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Responsive */
@media (max-width: 640px) {
    .toast-container {
        top: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
        width: auto;
    }
    
    .toast {
        padding: 14px 16px;
        font-size: 13px;
        border-radius: 10px;
    }
    
    .toast-icon {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    
    .toast-title {
        font-size: 14px;
    }
    
    .toast-message {
        font-size: 12px;
    }
}