 using the selected method
  if (useModalMode) {
    sidePanel.showModal();
  } else {
    sidePanel.show();
  }
  
  // Force a reflow to ensure the transition will occur
  void sidePanel.offsetWidth;
  
  // Restore the transition and apply the transform
  sidePanel.style.transition = 'transform 0.1s cubic-bezier(0.2, 0, 0.38, 0.9)';
  sidePanel.style.transform = 'translateX(0)';
  
  // Store the current item ID for feedback submission
  submitButton.dataset.itemId = item.id;
}

// Close the dialog when 