.flow-toolbar {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 6px;
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 8px;
    z-index: 100;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 1;
}

/* Hide toolbar when nothing is selected (optional utility class) */
.flow-toolbar.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
    pointer-events: none;
}

/* Toolbar Buttons */
.toolbar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: 6px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.toolbar-btn:hover {
    background: var(--bg-color);
    border-color: var(--border);
}

.toolbar-btn:active {
    background: #e2e8f0;
    transform: translateY(1px);
}

.toolbar-btn svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-sub);
}

.toolbar-btn:hover svg {
    stroke: var(--primary);
}

/* Inline Rename Input */
.node-title-input {
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    background: var(--bg-color);
    border: 1px solid var(--primary);
    border-radius: 4px;
    padding: 2px 4px;
    width: 100%;
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    margin: -3px -5px; /* Offset to align perfectly with text */
    pointer-events: auto; /* Ensure input receives clicks */
}
