.toast-container {
    position: fixed;
    top: 90px;
    /* Below the menu (20px + 48px + gap) */
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 20000 !important;
    /* High enough but below debug/overlays if needed */
    pointer-events: none;
    align-items: flex-end;
    /* Align toasts to the right */
}

.toast {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-left: 4px solid #fff;
    pointer-events: auto;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.toast-success {
    border-color: #00ff00;
    color: #ccffcc;
}

.toast.toast-error {
    border-color: #ff0000;
    color: #ffcccc;
}

.toast.toast-info {
    border-color: #00ccff;
    color: #ccffff;
}

/* Existing class collision check? */
/* .toast-connection-lost was separate, maybe unifying in future? */