.toast-container {
    position: fixed;
    top: 20px;

    left: calc(50% + 34px);
    transform: translateX(-50%);

    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

    width: calc(100% - 100px);
    max-width: 600px;

    pointer-events: none;
}

.toast {
    width: 100%;
    box-sizing: border-box;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;

    display: flex;
    align-items: center;
    gap: 12px;

    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;

    pointer-events: auto;
    min-width: 0;
    border-left: 4px solid;
}

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

.toast.hiding {
    opacity: 0;
    transform: translateY(-20px);
}

.toast-success {
    border-left-color: #008060;
    background: #fff;
}

.toast-error {
    border-left-color: #d72c0d;
    background: #fff;
}

.toast-warning {
    border-left-color: #f49342;
    background: #fff;
}

.toast-info {
    border-left-color: #0078d4;
    background: #fff;
}

.toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.toast-success .toast-icon {
    color: #008060;
}

.toast-error .toast-icon {
    color: #d72c0d;
}

.toast-warning .toast-icon {
    color: #f49342;
}

.toast-info .toast-icon {
    color: #0078d4;
}

.toast-icon svg {
    width: 20px;
    height: 20px;
}

.toast-content {
    flex: 1;
    color: #202223;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
}

.toast-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: #6d7175;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.toast-close:hover {
    background-color: #f1f2f3;
}

.toast-close svg {
    width: 16px;
    height: 16px;
}

/* Progress bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: rgba(0, 0, 0, 0.1);
    width: 100%;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.toast-progress-bar {
    height: 100%;
    background-color: currentColor;
    width: 100%;
    transform-origin: left;
    transition: transform linear;
}

.toast-success .toast-progress-bar {
    color: #008060;
}

.toast-error .toast-progress-bar {
    color: #d72c0d;
}

.toast-warning .toast-progress-bar {
    color: #f49342;
}

.toast-info .toast-progress-bar {
    color: #0078d4;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .toast-container {
        left: 50%;
        width: calc(100% - 30px);
        max-width: 600px;
    }
}
