h2 {
      text-align: center;
      color: #333;
    }
    table {
      border-collapse: collapse;
      width: 100%;
      margin: 0 auto !important; 
      box-shadow: 0 0 10px rgba(0,0,0,0.1);
      font-size: 11pt;
    }
    th, td {
      border: 1px solid #ddd;
      padding: 10px;
      text-align: left;
    }
    th {
      background-color: #f2f2f2;
      cursor: pointer;
      user-select: none;
      position: relative;
      padding-right: 20px !important;
      padding-left: 15px !important;
    }
    th::after {
      content: "";
      position: absolute;
      right: 8px;
      top: 50%;
      transform: translateY(-50%);
    }
    th.sorted-asc::after {
      content: "▲";
    }
    th.sorted-desc::after {
      content: "▼";
    }
    th .sort-order {
      display: inline-block;
      width: 12px;
      height: 12px;
      line-height: 12px;
      text-align: center;
      border-radius: 50%;
      background: #999;
      color: white;
      font-size: 9px;
      position: absolute;
      left: 0px;
      top: 50%;
      transform: translateY(-50%);
    }
    tr:nth-child(even) {
      background-color: #f9f9f9;
    }
    tr:hover {
      background-color: #f1f1f1;
    }
    .controls {
      text-align: center;
      margin-bottom: 20px;
    }
    button {
      padding: 6px 12px;
      background-color: #4CAF50;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      margin-right: 10px;
      margin-bottom: 5px;
    }
    button:hover {
      background-color: #45a049;
    }
    .filters-container {
      max-width: 90%;
      margin: 20px auto;
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
    }
    .filter-group {
      flex: 1;
      min-width: 200px;
      padding: 0 15px;
      border: 1px solid #ddd;
      border-radius: 4px;
      background-color: #f9f9f9;
    }
    
    .range-inputs {
      display: flex;
      justify-content: space-between;
      margin-bottom: 5px;
      margin-top: 10px;
    }
    .range-inputs input {
      width: 45%;
      padding: 5px;
      text-align: center;
    }
    .range-slider-container {
      position: relative;
      height: 40px;
      margin: 10px 0;
    }
    .filter-labels {
      display: flex;
      justify-content: space-between;
      font-size: 12px;
      color: #666;
      margin-top: 5px;
    }
    /* Min-max slider specific styles */
    .slider-track {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 100%;
      height: 4px;
      background-color: #ddd;
      border-radius: 2px;
    }
    .slider-range {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      height: 4px;
      background-color: #4CAF50;
      border-radius: 2px;
    }
    .slider-thumb {
      position: absolute;
      top: 50%;
      width: 18px;
      height: 18px;
      background-color: #4CAF50;
      border-radius: 50%;
      transform: translate(-50%, -50%);
      cursor: pointer;
      z-index: 2;
      box-shadow: 0 0 5px rgba(0,0,0,0.2);
    }
    .slider-thumb.min {
      left: 0;
    }
    .slider-thumb.max {
      right: 0;
      transform: translate(-50%, -50%);
    }
    .slider-thumb:hover {
      background-color: #45a049;
    }
    .stats {
      text-align: center;
      margin-top: 10px;
      font-size: 14px;
      color: #555;
    }
    
    /* Presets container styles */
    .presets-container {
      max-width: 90%;
      margin: 20px auto;
      border: 1px solid #ddd;
      border-radius: 4px;
      padding: 15px;
      background-color: #f9f9f9;
    }
    .presets-title {
      text-align: center;
      margin-top: 0;
      margin-bottom: 15px;
      color: #333;
    }
    .preset-buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: center;
    }
    .preset-button {
      padding: 8px 12px;
      background-color: #2196F3;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-size: 14px;
      transition: background-color 0.2s;
    }
    .preset-button:hover {
      background-color: #0b7dda;
    }
    .preset-button.active {
      background-color: #0d47a1;
      font-weight: bold;
    }
    .preset-description {
      margin-top: 15px;
      padding: 10px;
      background-color: #e8f4fb;
      border-radius: 4px;
      font-size: 14px;
      color: #333;
      display: none;
    }
    .preset-description.active {
      display: block;
    }
    .preset-description h4 {
      margin-top: 0;
      margin-bottom: 8px;
    }
    .preset-description p {
      margin: 5px 0;
    }


    @media screen and (max-width: 768px) {
      table {
        font-size: 10pt;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
      }
    
      .filters-container, .preset-buttons {
        flex-direction: column;
        align-items: stretch;
      }
    
      .filter-group {
        min-width: 100%;
      }
    
      .range-inputs input {
        width: 100%;
        margin-bottom: 5px;
      }
    
      .range-inputs {
        flex-direction: column;
        gap: 5px;
      }
    
      .preset-button {
        width: 100%;
      }
    
      .controls, .stats {
        padding: 0 10px;
      }
    
      button {
        width: 100%;
        margin: 5px 0;
      }
    
      th, td {
        padding: 8px;
      }
    }
    

/* Mobile-friendly styles for the slider */
@media screen and (max-width: 768px) {
  .range-slider-container {
    height: 50px; /* Slightly increased height for easier touch interactions */
    margin: 15px 0; /* Adjusting margin for better spacing */
  }

  .slider-thumb {
    width: 24px; /* Larger thumb for easier touch */
    height: 24px;
    background-color: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
  }

  .slider-thumb:hover {
    background-color: #45a049;
  }

  .slider-track {
    height: 6px; /* Slightly thicker track for better touch interaction */
  }

  .slider-range {
    height: 6px; /* Adjust height for consistency */
  }
}


input[type="range"] {
  touch-action: none; /* Prevents swipe gesture propagation */
}