/* Make the table container responsive */
#performance-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
}

/* Ensure the table fits inside a scrollable container on small screens */
.table-wrapper {
    overflow-x: auto;
    width: 100%;
}

/* Style table headers and cells for better spacing */
#performance-table th, #performance-table td {
    padding: 8px;
    text-align: left;
    white-space: nowrap; /* Prevents text from wrapping */
}

/* Improve pagination button spacing for mobile */
#pagination button {
    padding: 5px 5px;

    /* font-size: 14px;
    margin: 2px; */
    background-color: white;
    color: black;
    border: 1px solid #ccc;
    /* padding: 2px 2px; */
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 10px;
    box-shadow: 0px 1px 0px 0px rgba(0,0,0,0.09)
}

/* Improve input box usability on mobile */
#rows-per-page {
    width: 65px;
    font-size: 16px;
}


.slider-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 40px;
    display: flex;
    align-items: center;
}

/* Background gray bar (ensure it's behind the thumbs) */
.slider-container::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 8px;
    background: #ddd;
    border-radius: 5px;
    z-index: 0; /* Ensure it's below the thumbs */
}

/* Style for both range sliders */
.slider-container input[type="range"] {
    position: absolute;
    width: 100%;
    pointer-events: none;
    -webkit-appearance: none;
    background: none;
    margin: 0;
    z-index: 1; /* Ensure the sliders are above the gray bar */
}

/* Style for the slider thumbs */
.slider-container input[type="range"]::-webkit-slider-thumb {
    pointer-events: all;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    z-index: 2; /* Ensure the blue knobs are above everything */
    margin-top: 0px; 
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 40px;
}

.slider-container input[type="range"] {
    position: absolute;
    width: 100%;
    pointer-events: none;
    -webkit-appearance: none;
    background: none;
    margin: 0;
}

/* filter drop down */

#filter-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}


#toggle-filters, 
#reset-filters, 
#copy-permalink,
#rows-per-page,
#category-filter,
#problem-search{
    background-color: white;
    color: black;
    border: 1px solid #ccc;
    padding: 2px 2px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 10px;
    box-shadow: 0px 1px 0px 0px rgba(0,0,0,0.09)
}

#problem-search {
    /* allow typing, but same look */
    padding: 0 8px !important;
    line-height: normal;
}

#toggle-filters:hover,
#reset-filters:hover,
#copy-permalink:hover,
#rows-per-page:hover,
#category-filter:hover,
#problem-search:hover {
    background-color: #f0f0f0;
}

#problem-search {
    display: inline-block !important;
    width: auto         !important;
    max-width: 300px    !important; /* or whatever makes sense */
    box-sizing: border-box;
}

/* --- inline‑details drawer --- */
.details-row td {                /* full‑width cell */
    padding: 0;
    border: none;
    background: #fafafa;
}

.details-wrapper {               /* animated container */
    overflow: hidden;
    max-height: 0;               /* collapsed */
    transition: max-height 0.5s ease-in-out;
}

.details-wrapper img {           /* image styling */
    display: block;
    max-width: 400px;            /* cap size */
    width: 100%;
    margin: 10px auto;
}


#pagination button:disabled {
    opacity: 0.5;
    cursor: default;
    box-shadow: none;
}
  

#pagination button:disabled:hover {
    background-color: #fff;
}

#main-symbol-img {
  width: 70%;
  max-width: 1760px;
  min-width: 80px;
  height: auto;
  margin-bottom: 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
}