/* public/styles.css */
body {
  padding-bottom: 60px;
}

#statusArea,
#exportStatusArea {
  margin-top: 1rem;
}

/* Visually hidden class */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px 1px 1px 1px);
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Card minimum height for consistent appearance */
.card-min-height {
  min-height: 150px;
}

/* Fixed height table container with scrolling */
.fixed-height-table-container {
  height: 400px;
  overflow-y: auto;
  overflow-x: auto;
  width: 100%;
  margin-bottom: 20px;
  border: 1px solid #dee2e6;
}

/* Table styling */
#resultsTable {
  width: 100%;
  table-layout: auto;
  margin-bottom: 0;
}

/* Table cell styling */
#resultsTable td,
#resultsTable th {
  font-size: 0.85rem;
  padding: 0.5rem;
  white-space: nowrap; /* Prevent text wrapping by default */
}

/* Apply to columns that should wrap */
.wrap-text {
  white-space: normal !important;
}

/* Make the table header sticky while scrolling */
.fixed-height-table-container thead {
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 1;
  border-bottom: 2px solid #dee2e6;
}

/* Make export button styling */
#exportButton {
  display: block;
  min-width: 200px;
}

/* Override for making sections visible */
section:not(.visually-hidden),
#noResultsMessage:not(.visually-hidden) {
  position: static !important;
  height: auto;
  width: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Specific override for the table container */
#resultsTableContainer:not(.visually-hidden) {
  position: static !important;
  width: auto;
  clip: auto;
  white-space: normal;
  /* Height and overflow handled by fixed-height-table-container class */
}

/* Hover effect for table rows */
#resultsTable tbody tr:hover {
  background-color: rgba(0, 123, 255, 0.1);
}

/* Table container responsive behaviors */
@media (max-width: 768px) {
  .fixed-height-table-container {
    height: 300px; /* Smaller height on mobile devices */
  }
}