bel.length * 8 + 20)
      .attr("height", 24)
      .attr("rx", 12)
      .attr("ry", 12)
      .style("fill", d => colorMap[d.category] || "#6b7280")
      .style("stroke", "#e5e7eb")
      .style("stroke-width", 2)
      .style("filter", "url(#glow)")
      .attr("transform", "scale(0)") // Start with scale 0 for springy motion
      .transition() // Add springy scale-in effect
      .duration(600)
      .ease(d3.easeElastic.period(0.75))
      .attr("transform", "scale(1)");

    // Add text to node (ce