#fedSeatRankMatrixContainer {
  display: none;
  overflow-y: auto;
  padding-bottom: 8%;
  flex-direction: column;
}

.srm-content-container {
  display: none;
  flex-direction: column;
  width: 100%;
  padding-right: 1.5px;
}

#fedSeatRankMatrixSearch {
  font-family: var(--global-font-family);
  padding: 12px;
  border: 1px solid #ddd;
  max-width: 600px;
  margin: 0;
  display: flex;
  flex-direction: column;
}

#fedSeatRankMatrixResultsContainer {
  display: flex;
  flex-direction: column;
}

/* Title and Instructions */
#fedSeatRankMatrixContainer h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #333;
}

/* Filter Row (Single Row Layout) */
.filter-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 10px;
}

/* Filter Section */
.filter-section {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.section-title {
  font-size: 10px;
  margin-bottom: 4px;
  color: black;
  font-weight: 600;
}

/* Dropdown Wrapper */
.dropdown-wrapper {
  position: relative;
  width: 100%;
}

/* Search Input */
.fedSRMdropdownSearch {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
  width: 100%;
}

/* Dropdown List */
.dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border: 1px solid #ddd;
  border-radius: 14px;
  background-color: #fff;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  padding: 0;
  margin: 0;
  list-style: none;
  margin-top: 4px;
}

/* Dropdown List Items */
.dropdown-item {
  padding: 8px 10px;
  cursor: pointer;
  font-size: 14px;
}

.dropdown-item:hover {
  background-color: #f1f1f1;
}

/* Dropdown Styling */
.fedSRMdropdown {
  width: 100%; /* Full width for consistency */
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
  background-color: #fff;
  color: #333;
  margin-bottom: 10px;
}

.fedSRMdropdown:focus {
  border-color: #007bff;
  outline: none;
}


/* Button Group Styling */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0px;
  max-height: calc(5 * 45px); /* Approximate height for 5 rows */
  overflow-y: auto; /* Allow vertical scrolling */
  padding-top: 4px;
  border-radius: 5px;
  background-color: transparent;
}

.button-group button {
  padding: 10px 15px;
  border: 1px solid transparent;
  background-color: #f8f9fa;
  color: darkgray;
  border-radius: 16px;
  cursor: pointer;
  font-size: 10px;
  transition: all 0.2s ease-in-out;
}

.button-group button:hover {
  /* background-color: #007bff;
  color: #fff;*/
}

.button-group button.active {
  background-color: #007bff;
  color: #fff;
}

/* Input Field Styling */
#expectedRank {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0px;
}

#expectedRank:focus {
  border-color: #007bff;
  outline: none;
}

/* Search Button Styling */
#searchButton {
  display: block;
  width: 60%;
  padding: 10px;
  background-color: #28a745;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.2s ease-in-out;
}

#searchButton:hover {
  background-color: #218838;
}

#shareButton {
  float: right;
  right: 0px;
  display: flex;
  color: lightgray !important;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.6rem;
  transition: background-color 0.2s ease-in-out;
  pointer-events: none;
  background: transparent;
  align-items: center;
}

.filter-btn {
  float: left;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

/* Analytics Controls */
#analyticsControls {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 8px; /* Space between the title and buttons */
  height: 40px;
  width: 100%;
  padding: 10px;
}

/* Title */
#analyticsControls span {
  font-size: 12px;
  font-weight: normal;
}

/* Buttons */
#analyticsControls button {
  padding: 6px 12px;
  font-size: 14px;
  border: 1px solid rgb(0, 86, 179);
  border-radius: 14px;
  background-color: transparent;
  color: black;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

#analyticsControls button:hover {
  background-color: #0056b3;
}

#analyticsControls button:disabled {
  background-color: #ddd;
  color: #aaa;
  cursor: not-allowed;
}

/* Wrapper for the results table */
#fedSRMResultsTableWrapper {
  overflow-x: auto; /* Allow horizontal scrolling for the table */
  margin-bottom: 10px;
  height: 280px;
  max-height: 300px;
  display: none;
}

/* Results Section Title */
#fedSRMResultsTitle {
  font-size: 0.5rem;
  font-weight: bold;
  color: #333;
  margin: 20px 0 10px;
}

/* Results Table */
.srmAPIResultsTable,
#fedSRMResultsTable {
  width: 100%;
  border-collapse: unset;
  min-width: 600px;
  margin-bottom: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.srmAPIResultsTable th, .srmAPIResultsTable td,
#fedSRMResultsTable th, #fedSRMResultsTable td {
  padding: 10px;
  text-align: left;
  border: 1px solid #ddd;
  word-wrap: break-word; /* Forces long text to wrap to the next line */
  white-space: wrap; /* Prevents text from breaking unnecessarily */
}

.srmAPIResultsTable th,
#fedSRMResultsTable th {
  background-color: #0000008f;
  color: #fff;
  font-weight: bold;
}

.srmAPIResultsTable tr:nth-child(even),
#fedSRMResultsTable tr:nth-child(even) {
  background-color: #f9f9f9;
}

#fedSRMResultsTable tr:hover {
  background-color: #f1f1f1;
}

/* Pagination Controls */
.srmAPIPaginationControls,
#paginationControls {
  display: flex;
  justify-content: center;
  justify-content: start;
  gap: 4px;
  width: 70%;
  overflow-x: auto;
  margin-left: 12px;
}

.srmAPIPaginationControls button,
#paginationControls button {
  padding: 5px 10px;
  border: 1px solid #007bff;
  background-color: #fff;
  color: #007bff;
  cursor: pointer;
  font-size: 14px;
  border-radius: 3px;
  transition: all 0.2s;
}

#paginationControls button:hover,.srmAPIPaginationControls button:hover {
  background-color: #007bff;
  color: #fff;
}

#paginationControls button:disabled, .srmAPIPaginationControls button:disabled {
  background-color: #007bff;
  color: #fff;
  cursor: not-allowed;
}


/* Priority Layout */
#optionsPriorityLayout {
  position: relative;
  width: 100%;
  border: 1px solid #ddd;
  background: #fff;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  padding: 10px;
}

/* Table */
#optionsPriorityLayout table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}

#optionsPriorityLayout th, #optionsPriorityLayout td {
  border: 1px solid #ddd;
  text-align: left;
  padding: 8px;
}

#optionsPriorityLayout th {
  background-color: #f4f4f4;
  font-weight: bold;
}

#optionsPriorityLayout tr:nth-child(even) {
  background-color: #f9f9f9;
}

#optionsPriorityLayout tr:hover {
  background-color: #f1f1f1;
}

/* Footer Buttons */
#optionsPriorityLayout button {
  padding: 6px 12px;
  font-size: 14px;
  border: 1px solid rgb(0, 86, 179);
  background-color: transparent;
  color: black;
  cursor: pointer;
  border-radius: 16px;
}

#optionsPriorityLayout button:hover {
  background-color: #0056b3;
}

/* Disclaimer Callout */
#disclaimerCallout {
  position: absolute;
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 300px;
  z-index: 1000;
}


.animated-bubble {
  position: absolute;
  background-color: rgb(0, 86, 179); /* Blue color with some transparency */
  color: white;
  padding: 6px; /* Equal padding for a perfect circle */
  border-radius: 12px 0px 12px 0px; /* Makes the bubble round */
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.6s ease-in-out; /* Smooth fade-in and fade-out */
  pointer-events: none; /* Avoid interaction */
  width: 84px; /* Explicitly set width */
  height: 30px; /* Explicitly set height */
}

.animated-bubble.show {
  opacity: 1;
}
.ai-srm-more-info-link {
  display: flex;
  margin-top: 2rem;
  font-size: 14px;
  color: #374151;
  justify-content: center;
  white-space: break-spaces;
}
.ai-srm-more-info-link a:hover {
  color: #1d4ed8;
}



/* Add horizontal scrolling for small screens */
@media (max-width: 768px) {
  #fedSRMResultsTable th, #fedSRMResultsTable td {
      white-space: normal; /* Allows text to break for smaller screens */
      padding: 4px;
  }
  .srmAPIResultsTable th, .srmAPIResultsTable td {
    max-width: 200px;
  } 
  .srmAPIResultsTable{
    min-width: max-content;
  }
  #optionsPriorityLayout th, #optionsPriorityLayout td {
    padding: 4px;
  }

  .button-group {
    gap: 4px;
  }

  #paginationControls {
    margin-left: 6px;
  }

}
