.container {
  display: flex;
  padding: 20px 0 20px 20px; /* Remove right padding */
  gap: 20px;
  width: 96%; /* Fixed width instead of max-width */
  max-width: 96%; /* Keep max-width for safety */
  margin-left: 2%;
  align-items: flex-start; /* Ensure top alignment */
  box-sizing: border-box;
  padding-top: 90px; /* Match padding-top */
  overflow-x: hidden; /* Prevent horizontal overflow at container level */
}
  
.input-container {
  flex: 0 0 300px;
  padding: 30px;
  background-color: var(--secondary-bg);
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  height: 740px; /* Match filter-container height */
  overflow-y: auto; /* Make scrollable */
  overflow-x: hidden; /* Hide horizontal overflow */
}
.right-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 800px; /* Match input-container height exactly */
  max-width: calc(100% - 320px); /* Prevent expanding beyond available space */
  overflow: hidden; /* Prevent overflow from affecting container */
}
.input-container::-webkit-scrollbar {
  width: 6px;
  height: 6px; /* Height for horizontal scrollbar */
}
.input-container::-webkit-scrollbar-thumb {
  background-color: var(--accent-color);
  border-radius: 4px;
}
.input-container::-webkit-scrollbar-track {
  background: var(--primary-bg);
}

.results-container {
  flex: 1;
  background-color: var(--secondary-bg);
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  padding: 15px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Hide overflow from the container itself */
  width: 100%; /* Take available width of parent */
  max-width: 100%; /* Strictly prevent expanding beyond parent */
  box-sizing: border-box; /* Ensure padding is included in width calculation */
}

/* Create a scrollable wrapper for the table */
.table-wrapper {
  overflow-y: auto; /* Enable vertical scrolling */
  overflow-x: auto; /* Enable horizontal scrolling for table content only */
  height: 100%;
  width: 100%;
  /* Apply the same scrollbar styling as the city container */
  padding: 0 5px; /* Add even padding on both sides for scrollbar symmetry */
  box-sizing: border-box;
  border-radius: 6px; /* Add radius to wrapper for consistent appearance */
}

/* Apply scrollbar styling to the table wrapper (same as city container) */
.table-wrapper::-webkit-scrollbar {
  width: 6px;
  height: 12px; /* Height for horizontal scrollbar */
}

.table-wrapper::-webkit-scrollbar-thumb {
  background-color: var(--accent-color);
  border-radius: 4px;
  /* Add margin to thumb for symmetry */
  border: 2px solid var(--primary-bg);
}

.table-wrapper::-webkit-scrollbar-track {
  background: var(--primary-bg);
  border-radius: 4px; /* Match border-radius for consistent appearance */
  margin: 0 15px; /* Add margin to both sides of scrollbar track */
}

/* Horizontal form layout for country and city */
.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.form-group input, 
.form-group .dropdown-search {
  flex: 1;
  height: 36px;
  box-sizing: border-box;
}
.form-group label {
    width: 80px;
    margin-bottom: 0;
    margin-right: 10px;
    font-weight: 500;
    color: var(--primary-text);
}

.form-group select,
.form-group input {
    flex: 1;
    margin-bottom: 0;
    padding: 10px;
    background-color: var(--primary-bg);
    border: 1px solid var(--accent-color);
    color: var(--primary-text);
    border-radius: 4px;
    transition: var(--transition);
}

/* Non-horizontal form elements */
.input-container label:not(.form-group label) {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-text);
}
  
.input-container input:not(.form-group input),
.input-container select:not(.form-group select) {
    width: 100%;
    margin-bottom: 20px;
    padding: 10px;
    background-color: var(--primary-bg);
    border: 1px solid var(--accent-color);
    color: var(--primary-text);
    border-radius: 4px;
    transition: var(--transition);
}
  
.input-container input:focus,
.input-container select:focus {
    border-color: var(--highlight-color);
    box-shadow: 0 0 0 2px rgba(255, 51, 102, 0.2);
    outline: none;
}
  
.generate-search-button {
    width: 40%;
    padding: 2%;
    background-color: var(--highlight-color);
    color: var(--primary-text);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    transition: var(--transition);
}
  
.generate-search-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

.input-container .plain-checkboxes {
    padding: 0;
    margin: 0 0 20px 0;
    width: 100%;
  }
  
  .input-container .checkbox-row {
    text-align: left;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    width: 100%;
  }
  
  .input-container .checkbox-row input[type="checkbox"] {
    margin-right: 8px;
    width: 16px !important;
    height: 16px !important;
    display: inline-block !important;
    max-width: 16px !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    position: relative;
    top: 0;
  }
  
  /* Override focus styles with high specificity */
  .input-container .checkbox-row input[type="checkbox"]:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(255, 51, 102, 0.2) !important;
    width: 16px !important;
    height: 16px !important;
  }
  
  .input-container .checkbox-row label {
    font-size: small;
    color: var(--primary-text);
    display: inline-block;
    margin-bottom: 0 !important;
    font-weight: normal;
    line-height: 16px;
  }

.results-stats {
    margin-top: 25px;
    font-weight: 300;
    color: var(--primary-text);
    margin-bottom: 20%;
}

.results-stats p {
    margin: 0 0 4px 0;
}
  
.results-stats span {
    color: var(--highlight-color);
    font-weight: 700;
}

.tooltip-container {
    position: relative;
    display: inline-block;
    color: var(--accent-color);
    cursor: help;
    font-size: 12px;
    margin-left: 4px;
}

.tooltip-text {
    visibility: hidden;
    width: 180px;
    background-color: var(--primary-bg);
    color: white;
    text-align: center;
    border-radius: 4px;
    padding: 8px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -90px;
    opacity: 0;
    transition: opacity 0.3s;
    border: 1px solid var(--accent-color);
    font-size: 11px;
    font-weight: normal;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--accent-color) transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Simplified city tags with reduced spacing */
.city-container-title {
    margin-top: 10px;
    margin-bottom: 6px;
    font-weight: 500;
}
/* Form group container z-index */
.form-group {
    position: relative;
    z-index: 10;
}

select, 
.form-group select,
.filter-container select,
select[multiple] option {
  padding: 8px 12px;
  position: relative;
  background-color: var(--primary-bg);
  color: var(--primary-text);
  font-family: 'Noto Sans', sans-serif;
  font-size: 14px;
}

/* Lower z-index for elements that should appear behind the dropdown */
#selectedCitiesContainer {
    position: relative;
    z-index: 5;
}
  
#selectedCitiesContainer {
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    padding: 4px 6px;
    height: 100px; /* Fixed height instead of min-height */
    overflow-y: auto;
    background-color: var(--primary-bg);
    display: flex;
    flex-direction: column;
    font-size: small;
    line-height: 1.2;
    position: relative; /* For absolute positioning of clear button */
}

/* In-container clear button */
.cities-clear-button {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: var(--accent-color);
    color: var(--primary-text);
    border: none;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 10px;
    cursor: pointer;
    z-index: 5;
}

.cities-clear-button:hover {
    background-color: var(--highlight-color);
}

.clear-results-button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin: 10px 0;
    transition: background-color 0.2s;
}

.clear-results-button:hover {
    background-color: #c82333;
}

/* Extra padding for the top of the container to make room for the button */
#selectedCitiesContainer .city-tag:first-child {
    margin-top: 20px;
}
  
.city-tag {
    display: block;
    padding: 0;
    margin-bottom: 1px;
    cursor: pointer;
    width: fit-content;
    color: var(--primary-text);
    transition: var(--transition);
}
  
.city-tag:hover {
    color: var(--highlight-color);
}

/* Styling for selected options in city dropdown */
#cityDropdown option.selected-option {
    background-color: var(--highlight-color);
    color: white;
}
#cityDropdown {
    position: relative;
    height: 38px; /* Keep the height consistent */
    overflow: hidden;
    appearance: menulist; /* Ensures dropdown looks normal */
    z-index: 100; /* Ensures it appears above other elements */
    padding-right: 20px; /* Prevents text shifting */
}
#cityDropdown.dropdown-list.show {
  height: auto !important;
  max-height: 300px !important;
  min-height: 30px !important; /* Ensure it has a good minimum size */
  overflow-y: scroll !important; /* Use scroll instead of auto to force scrollbar appearance */
  scrollbar-width: thin; /* For Firefox */
}
#cityDropdown:focus {
    height: 38px; /* Keep the input box height the same */
    overflow: visible; /* Let the options overflow outside the box */
}

#cityDropdown option {
    padding: 8px 12px;
    position: relative;
    background-color: var(--primary-bg);
    color: var(--primary-text);
}

#cityDropdown option[value="placeholder"] {
    font-style: italic;
    pointer-events: none; /* Prevent selection */
    display: flex;
    align-items: center;
}

/* Hover effect for options */
#cityDropdown option:hover {
    background-color: var(--highlight-color);
    color: white;
}

/* Webkit browsers (Chrome, Safari) */
select#cityDropdown option:hover {
    background-color: var(--highlight-color);
    color: white;
    -webkit-text-fill-color: white;
}

/* Firefox */
select#cityDropdown:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 var(--primary-text);
}

.column-visibility-container {
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    padding: 4px 6px;
    height: 150px; /* Match selectedCitiesContainer */
    overflow-y: auto;
    background-color: var(--primary-bg);
    display: flex;
    flex-direction: column;
    font-size: small;
    line-height: 1.2;
    position: relative;
}
.column-visibility-container::-webkit-scrollbar,
#selectedCitiesContainer::-webkit-scrollbar {
    width: 6px;
    height: 6px; /* Height for horizontal scrollbar */
}

.column-visibility-container::-webkit-scrollbar-thumb,
#selectedCitiesContainer::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 4px;
}

.column-visibility-container::-webkit-scrollbar-track,
#selectedCitiesContainer::-webkit-scrollbar-track {
    background: var(--primary-bg);
}
.column-visibility-item {
  padding: 6px;
  cursor: pointer;
  border-radius: 4px;
  text-align: center;
  font-size: small;
  font-weight: 500;
  color: var(--primary-text);
  background-color: var(--primary-bg);
  opacity: 1; /* Default full opacity for visible columns */
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.column-visibility-item:hover {
  background-color: var(--highlight-color);
  color: white;
  opacity: 1; /* Always full opacity on hover */
}

.column-visibility-item.inactive-column {
  opacity: 0.5; /* Reduced opacity for hidden columns */
  color: var(--secondary-text);
}

.column-visibility-item:hover.inactive-column {
  color: white;
}
.column-visibility-title {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}
.column-checkbox-item {
    display: flex;
    align-items: left;
    margin-bottom: 4px;
}
.column-checkbox-item input {
    margin-right: 6px;
    flex: 0 0 auto;
}
.column-checkbox-item label {
    margin-bottom: 0;
    font-size: small;
}
/* Column visibility toggle styles */
.column-checkbox-item.column-active label {
  opacity: 1;
  font-weight: 500;
  color: var(--primary-text);
}

.column-checkbox-item.column-inactive label {
  opacity: 0.5;
  font-weight: normal;
  color: var(--secondary-text);
}
  
#clearCitiesButton {
    background-color: var(--accent-color);
    color: var(--primary-text);
    border: none;
    border-radius: 4px;
    padding: 6px 10px; /* Slightly smaller padding */
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 15px; /* Changed from 20px to 15px */
    margin-top: 0; /* Explicitly set to 0 to override inline style */
    font-size: small; /* Smaller font size */
}
  
#clearCitiesButton:hover {
    background-color: #666;
}
  
/* Table styles with single-line rows */
table {
  width: 100%; /* Set to 100% of container width */
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed; /* Fixed layout ensures columns maintain their width */
}
  
th {
    position: sticky;
    top: 0;
    background-color: var(--secondary-bg);
    color: var(--primary-text);
    font-weight: 600;
    padding: 12px 8px;
    text-align: left;
    border-bottom: 2px solid var(--accent-color);
    z-index: 2; /* Updated from 1 to 2 to ensure headers appear above scrolling content */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
  
td {
  padding: 10px 8px;
  color: var(--secondary-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap; /* Prevent text wrapping */
  overflow: hidden; /* Hide overflow content */
  text-overflow: ellipsis; /* Add ellipsis for overflow text */
  max-width: 200px; /* Maximum width for all cells */
  box-sizing: border-box; /* Include padding in width calculation */
}

/* Set specific widths for different column types */
th, td {
  min-width: 120px; /* Minimum width for all cells to ensure readability */
}

.company-name {
  width: 200px;
}

.website, .address {
  width: 180px;
}

.phone {
  width: 120px;
}

.type, .rating, .reviews, .open_state, .query, .country, .city, .type_id {
  width: 120px;
}

.place_id, .data_id, .data_cid, .provider_id, .source {
  width: 140px;
}
  
tr:hover td {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Add tooltip style so users can see full content on hover */
td:hover {
    position: relative;
}

td:hover::after {
  content: attr(title);
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 10;
  background-color: var(--primary-bg);
  color: var(--primary-text);
  border: 1px solid var(--accent-color);
  border-radius: 8px; /* Match the 8px border-radius of other containers */
  padding: 5px 8px;
  white-space: normal;
  width: auto;
  max-width: 300px;
  word-wrap: break-word;
  box-shadow: var(--box-shadow); /* Match container shadow for consistency */
}

.hidden-column {
  display: none !important;
}
/* Add transitions for smooth opacity changes */
th, td {
  transition: opacity 0.2s ease;
}

/* Column visibility states - match UI state to actual visibility */
th.visible-column,
td.visible-column {
  opacity: 1;
}

th.hidden-column,
td.hidden-column {
  display: none !important;
}

.hidden {
    display: none;
}

/* Sort indicators for table headers */
th.sort-asc::after {
    content: ' ▲';
    font-size: 12px;
    color: var(--highlight-color);
}

th.sort-desc::after {
    content: ' ▼';
    font-size: 12px;
    color: var(--highlight-color);
}

th[data-column]:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.custom-searchable-dropdown {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    z-index: 100;
    font-size: 14px;
    display: flex;
    align-items: center;
  }
  
  .custom-searchable-dropdown label {
    width: 80px;
    margin-bottom: 0;
    margin-right: 10px;
    font-weight: 500;
    color: var(--primary-text);
  }
  
  .custom-searchable-dropdown input {
    font-size: 13px;
    font-family: 'Noto Sans', sans-serif;
    padding: 8px 10px;
    box-sizing: border-box;
    background-color: var(--primary-bg);
    border: 1px solid var(--accent-color);
    color: var(--primary-text);
    border-radius: 4px;
    cursor: pointer;
    flex: 1;
    height: 36px;
  }
  .form-group .dropdown-search {
    height: 36px;
    box-sizing: border-box;
    font-size: 14px;
    width: 100%;
  }
  .dropdown-list {
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background-color: var(--primary-bg);
    border: 1px solid var(--accent-color);
    border-radius: 0 0 4px 4px;
    z-index: 1000;
    display: none;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: -1px; /* Remove gap between input and dropdown */
  }
  
  .dropdown-list .dropdown-item {
    padding: 8px 10px;
    cursor: pointer;
    font-family: 'Noto Sans', sans-serif;
    font-size: 13px;
    line-height: 1; /* Slightly increased for better readability */
    color: rgb(255, 255, 255);
    transition: color 0.2s ease, background-color 0.2s ease;
    display: block;
  }
  .dropdown-item {
    display: block !important;
    padding: 8px 10px !important;
    cursor: pointer !important;
    color: #fff !important;
    opacity: 1 !important;
  }
  
  .dropdown-list .dropdown-item.dropdown-item-selected {
    color: rgb(255, 255, 255) !important;
    opacity: 1 !important;
  }
  .dropdown-list .dropdown-item:hover {
    background-color: #444; /* Match the gray hover color from database.css */
    color: rgb(255, 255, 255) !important;
  }
  /* Hide items with display: none */
.dropdown-item[style*="display: none"] {
    display: none !important;
  }
  /* Make sure visible items are actually visible */
  .dropdown-item:not([style*="display: none"]) {
    display: block !important;
  }
  .dropdown-list.show {
    display: block !important;
    z-index: 9999 !important;
    max-height: 300px !important;
    min-height: 50px !important;
    overflow-y: auto !important;
    pointer-events: auto !important;
    position: absolute !important;
    width: 100% !important;
    top: 100% !important;
    left: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: #333 !important;
    border: 1px solid #555 !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
  }

  /* Special styling for country dropdown to ensure it closes */
#countryDropdown.dropdown-list {
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
#countryDropdown.dropdown-list:not(.show) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
  #cityDropdown.dropdown-list.show,
    #cityDropdown.show {
    height: auto !important;
    max-height: 300px !important;
    min-height: 30px !important; /* Ensure it has a good minimum size */
    overflow-y: auto !important;
    }
    /* Ensure city dropdown has the same width as the country dropdown */
    #cityDropdown.dropdown-list.show {
      height: auto !important;
      max-height: 300px !important;
      min-height: 30px !important; /* Ensure it has a good minimum size */
      overflow-y: auto !important;
      scrollbar-width: auto !important; /* For Firefox - use native width */
    }
    
/* Ensure dropdown items don't expand the dropdown width */
#cityDropdown .dropdown-item {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  box-sizing: border-box !important;
  width: 100% !important;
  display: block !important;
}


  .dropdown-item.default-option {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
  }
  
  .dropdown-item.default-option:hover {
    background-color: var(--highlight-color);
    color: white;
    font-style: italic;
  }
/* Style for dropdown items to handle multi-select better */
.dropdown-item.dropdown-item-selected {
  color: rgb(255, 255, 255) !important; /* Completely white text with !important to override any styles */
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for selected items - match database.css */
}

/* Add specific styling for the city dropdown selected item */
#cityDropdown .dropdown-item.dropdown-item-selected,
#countryDropdown .dropdown-item.dropdown-item-selected,
.dropdown-list .dropdown-item.dropdown-item-selected {
  background-color: #444 !important; /* Match the gray color from database.css */
  color: rgb(255, 255, 255) !important;
}

/* Also ensure the hover color is consistently applied */
#cityDropdown .dropdown-item:hover,
#countryDropdown .dropdown-item:hover,
.dropdown-list .dropdown-item:hover {
  background-color: #444 !important; /* Match the gray hover color */
  color: rgb(255, 255, 255) !important;
}
  
  #cityDropdown .dropdown-item {
    position: relative;
    padding-left: 10px; /* Standard padding, not extra space */
  }
  
  input.dropdown-search.default-selected {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
  }
  
  .custom-dropdown {
    position: relative;
    width: 100%;
    flex: 1;
  }
/* Use specific z-index for each dropdown type to ensure stacking order */
/* Search field (first form-group) */
.form-group:nth-child(1) {
    z-index: 30;
}
/* Country dropdown (second form-group) */
.form-group:nth-child(2) {
    z-index: 20;
}
.form-group:nth-child(2) .dropdown-list.show {
    z-index: 1000;
}
/* City dropdown (third form-group) */
.form-group:nth-child(3) {
    z-index: 10;
}
.form-group:nth-child(3) .dropdown-list.show {
    max-height: 300px !important;
    min-height: 200px !important;
    overflow-y: auto !important;
  }
  
.dropdown-container {
    position: relative !important;
  }
  .dropdown-container .dropdown-list {
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
  }
  
  .dropdown-search {
    width: 100%;
    padding: 8px 10px;
    background-color: var(--primary-bg);
    border: 1px solid var(--accent-color);
    color: var(--primary-text);
    border-radius: 4px;
    cursor: pointer;
    height: 36px;
    font-size: 13px;
  }
  
  .form-group .dropdown-container {
    flex: 1;
    width: 100%;
    z-index: 90 !important;
  }
  /* City dropdown container positioning */
.form-group:nth-child(3) .dropdown-container {
  position: relative !important;
  width: 100% !important;
}

/* Constrain city dropdown width to match its container */
.form-group:nth-child(3) .dropdown-container .dropdown-list {
  max-width: 100% !important; 
  position: absolute !important;
  left: 0 !important;
  right: auto !important;
  box-sizing: border-box !important;
}

/* Fix for dropdown item highlight to extend to scrollbar */
.dropdown-list .dropdown-item {
  margin: 0 !important;
  display: block !important;
  width: calc(100% - 15px) !important;
}
.dropdown-list .dropdown-item:hover,
.dropdown-list .dropdown-item.dropdown-item-selected {
  width: calc(100% - 15px) !important;
  margin: 0 !important;
  display: block !important;
}
/* Make sure dropdown list allocates proper space for scrollbar */
#cityDropdown.dropdown-list.show {
  padding-right: 0 !important;
  box-sizing: border-box !important;
}
/* Remove horizontal scrollbar from country dropdown */
#countryDropdown.dropdown-list.show {
  overflow-x: hidden !important;
}

/* Ensure column-visibility-items respond to column visibility state changes */
.column-visibility-container .column-visibility-item {
  position: relative;
}

/* Add a visual indicator for active/inactive state */
.column-visibility-container .column-visibility-item:after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: 6px;
  background-color: var(--highlight-color);
  vertical-align: middle;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.column-visibility-container .column-visibility-item:not(.inactive-column):after {
  opacity: 1;
}

/* Reset hover colors to white and grey */
.column-visibility-item:hover {
  background-color: #444 !important; /* Grey hover background */
  color: white !important;
  opacity: 1; /* Always full opacity on hover */
}

#countryDropdown.dropdown-list .dropdown-item {
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 1200px) {
    .container {
      flex-direction: column;
    }

    /* Force container to not expand due to table width */
    html, body {
      overflow-x: hidden;
      max-width: 100%;
    }
    
    .input-container {
      flex: none;
      width: auto;
      margin-right: 0.5%;
      margin-bottom: 30px; /* Match database.css */
      height: 450px; /* Fixed height for responsive view */
    }
    
    .right-column {
      height: auto;
      margin-bottom: 30px; /* Match database.css */
    }
    
    .results-container {
      margin-top: 0;
      height: 450px; /* Same fixed height for responsive view */
      margin-bottom: 0;
    }
  }