#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    font-family: Verdana, "DejaVu Sans", sans-serif;
}

.toast {
    background: var(--cmd-toast-bg-color);
    color: var(--cmd-toast-font-color);
    padding: 14px 18px;
    border-radius: 6px;
    min-width: 260px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    animation: slideIn 0.35s ease forwards;
    cursor: pointer;
}

.toast:hover {
    opacity: 0.9;
}

.toast .progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
}

.toast .progress-bar.success {
    background: var(--cmd-brand-color-4);
}

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

.toast .progress-bar.error {
    background: var(--cmd-negative-color);
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0%);
        opacity: 1;
    }
}

@keyframes shrink {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

.toast.loading .progress-bar {
    height: 4px;
    background: var(--cmd-brand-color-4);
    width: 40%;
    /* Size of moving bar */
    position: absolute;
    bottom: 0;
    left: 0;
    animation: loadingMove 1.2s ease-in-out infinite;
}

@keyframes loadingMove {
    0% {
        transform: translateX(0%);
    }

    50% {
        transform: translateX(150%);
    }

    100% {
        transform: translateX(0%);
    }
}