#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    min-width: 280px;
    max-width: 380px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: rgba(30, 41, 59, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    font-size: 0.875rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    overflow: hidden;
    animation: toast-in 0.25s ease forwards;
}

.toast.toast-out {
    animation: toast-out 0.25s ease forwards;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 3px;
    border-radius: 0 4px 4px 0;
}

.toast.success::before {
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.toast.warning::before {
    background-color: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
}

.toast.error::before {
    background-color: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

.toast.info::before,
.toast:not(.success):not(.warning):not(.error)::before {
    background-color: var(--accent);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.toast-close:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(40px) scale(0.95);
    }
}