addSearchUI() {
		// Create search container
		const searchContainer = document.createElement('div');
		searchContainer.classList.add('hexedit-search-container');

		// Helper function to create search groups
		const createSearchGroup = (type, placeholder) => {
			const container = document.createElement('div');
			container.classList.add('hexedit-search-group');

			const input = document.createElement('input');
			input.type = 'text';
			input.placeholder = placeholder;
			input.classList.add('hexedit-search-input');
			input.id = `hexedit-search-${type}`;

			const status = document.createElement('span');
			status.classList.add('hexedit-search-status');
			status.id = `hexedit-search-status-${type}`;
			status.textContent = '0/0'; // Initial status

			const prevButton = document.createElement('button');
			prevButton.innerHTML = '&#8593;'; // Up arrow
			prevButton.classList.add('hexedit-search-button');
			prevButton.title = `Previous ${type.toUpperCase()} Match`;

			const nextButton = document.createElement('button');
			nextButton.innerHTML = '&#8595;'; // Down arrow
			nextButton.classList.add('hexedit-search-button');
			nextButton.title = `Next ${type.toUpperCase()} Match`;

			container.appendChild(input);
			container.appendChild(status);
			container.appendChild(prevButton);
			container.appendChild(nextButton);

			// Add event listeners for buttons
			prevButton.addEventListener('click', () => this.handleFindPrevious(type));
			nextButton.addEventListener('click', () => this.handleFindNext(type));

			// Add event listener for Enter key
			input.addEventListener('keydown', (e) => {
				if (e.key === 'Enter') this.handleFindNext(type);
			});

			return container;
		};

		// Create ASCII search group
		const asciiGroup = createSearchGroup('ascii', _('Search ASCII'));

		// Create HEX search group
		const hexGroup = createSearchGroup('hex', _('Search HEX (e.g., 4F6B)'));

		// Create RegExp search group
		const regexGroup = createSearchGroup('regex', _('Search RegExp (e.g., \\d{3})'));

		// Append all search groups to the search container
		searchContainer.appendChild(asciiGroup);
		searchContainer.appendChild(hexGroup);
		searchContainer.appendChild(regexGroup);

		// Insert the search container above the hexedit headers
		if (this.hexeditHeaders) {
			this.hexedit.insertBefore(searchContainer, this.hexeditHeaders);
		} else {
			// Fallback: append to hexedit if headers are not found
			this.hexeditContent.insertBefore(searchContainer, this.hexeditContent.firstChild);
		}
	}
Adds the search interface with input fields, status fields, and navigation buttons.