null',
  'notnull__1': 'is not null',
  'isblank__1': 'is blank',
  'notblank__1': 'is not blank'
};

// Initialize the UI
function initUI() {
  renderFilterBadges();
  setupEventListeners();
}

// Render filter badges
function renderFilterBadges() {
  // Save focus state before re-rendering
  saveCurrentFocus();
  
  filterBadgesContainer.innerHTML = '';
  
  filters.forEach(filter => {
    const badge = document.createElement('div');
    badge.className = 'filter-badge';
    badge.dataset.id = filter.id;
