.toast-container {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 2000;
}

.toast {
    min-width: 360px;
    max-width: 450px;
    background: #16a34a;
    border-radius: 16px;
    padding: 18px 20px 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 16px;
    color: #ffffff;
    animation: toastIn 0.22s ease-out;
    font-weight: 600;
}

.toast--success {
    background: #16a34a;
}

.toast--error {
    background: #dc2626;
}

.toast__content {
    color: #ffffff;
    font-size: 15px;
    line-height: 1.4;
}

.toast__progress {
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.25);
}

.toast__progress-bar {
    height: 100%;
    width: 100%;
    transform-origin: left;
    animation-name: toastProgress;
    animation-timing-function: linear;
    background: rgba(255, 255, 255, 0.85);
}

.toast--closing {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastProgress {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@media (max-width: 640px) {
    .toast-container {
        right: 16px;
        left: 16px;
        bottom: 16px;
    }

    .toast {
        max-width: 100%;
    }
}

