lert("No inbounds selected.");
          return;
        }

        let allInbounds = [];
        selectedTags.forEach(tag => {
          const textArea = document.getElementById("inbound-" + tag);
          if (textArea) {
            try {
              const inboundJSON = JSON.parse(textArea.value);
              allInbounds.push(inboundJSON);
            } catch (e) {
              console.error(`Error parsing inbound for tag ${tag}:`, e);
            }
          }
        });

        