#toaster {
    position: fixed;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: var(--z-toaster);
}

.toast {
    background: var(--neutral-900);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    user-select: none;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    width: 280px;
    min-height: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    padding: 8px 12px;
    gap: 10px;
    opacity: 0.9;
    animation: toast-slide-in 0.2s ease-out forwards;
}

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

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

.toast-body {
    display: flex;
    align-items: center;
    font-size: var(--font-size-body-sm, 13px);
    color: var(--text-primary);
    flex: 1 1 auto;
    line-height: 1.4;
}

/* Type-specific styles */
.toast.success {
    border-left: 3px solid var(--accent-confirm);
}

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

.toast.info {
    border-left: 3px solid var(--accent-main);
}

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

.toast.warning {
    border-left: 3px solid var(--accent-caution);
}

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

.toast.error {
    border-left: 3px solid var(--accent-danger);
}

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

/* Animations */
.toast.exit {
    animation: toast-slide-out 0.15s ease-in forwards;
}

@keyframes toast-slide-in {
    0% {
        transform: translateX(20px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toast-slide-out {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(20px);
        opacity: 0;
    }
}
