.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 1050;
    pointer-events: none;
    width: 380px;
    max-width: calc(100% - 24px);
}

.toast {
    width: 100%;
    background: white;
    color: #333;
    padding: 14px 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    font-weight: 500;
    font-size: 0.9rem;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    color: white;
}

.toast-success .toast-icon {
    background: var(--success-color);
}

.toast-error .toast-icon {
    background: var(--danger-color);
}

.toast-warning .toast-icon {
    background: var(--warning-color);
}

.toast-info .toast-icon {
    background: var(--info-color);
}

.toast-text {
    flex: 1;
    line-height: 1.4;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0 0 14px 14px;
    animation: toastProgress 3s linear forwards;
}

.toast-success .toast-progress {
    background: var(--success-color);
}

.toast-error .toast-progress {
    background: var(--danger-color);
}

.toast-warning .toast-progress {
    background: var(--warning-color);
}

.toast-info .toast-progress {
    background: var(--info-color);
}

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast.dragging {
    transition: none;
}

.toast.hiding {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    max-height: 0 !important;
    padding: 0 16px;
    margin-top: -10px;
}

@media (max-width: 768px) {
    .toast-container {
        top: 12px;
        left: 12px;
        right: 12px;
        transform: none;
        width: auto;
    }
}
