/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Dark Mode Styling */
  :root {
    --bg-color: #e0e0e0;
    --text-color: #333;
    --table-bg: #fff;
    --table-header-bg: #007bff;
    --table-header-text: white;
    --button-bg: #007bff;
    --button-text: white;
    --modal-bg: white;
    --input-bg: #fff;
    --accordion-bg: #007bff;
    --accordion-hover-bg: #0056b3;
    --accordion-content-bg: #f8f9fa;
  }
  
  .dark-mode {
    --bg-color: #181818;
    --text-color: #e0e0e0;
    --table-bg: #303030;
    --table-header-bg: #555;
    --table-header-text: #e0e0e0;
    --button-bg: #555;
    --button-text: #e0e0e0;
    --modal-bg: #333;
    --input-bg: #444;
    --accordion-bg: #444;
    --accordion-hover-bg: #555;
    --accordion-content-bg: #333;
  }
  
  /* Body Styling */
  body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 20px;
  }
  
  h1 {
    font-size: 2em;
    color: var(--text-color);
  }
  
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .dark-mode-container {
    display: flex;
    align-items: center;
  }
  
  #toggleLabel {
    margin-right: 10px;
  }
  
  /* Dark mode toggle switch */
  .switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
  }
  
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider.small {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
  }
  
  .slider.small:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
  }
  
  input:checked + .slider.small {
    background-color: #007bff;
  }
  
  input:checked + .slider.small:before {
    transform: translateX(14px);
  }
  
  /* Modal Styling */
  .modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    overflow-y: scroll; /* Enable scrolling inside the modal */
  }
  
  .modal-content {
    background-color: var(--modal-bg);
    padding: 20px;
    border-radius: 8px;
    width: 800px;
    max-height: 80vh; /* Limit the modal's content to 80% of viewport height */
    overflow-y: scroll; /* Enable scrolling inside the modal */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  /* Accordion Styling */
  .accordion {
    background-color: var(--accordion-bg);
    color: var(--table-header-text);
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    margin-bottom: 5px;
    border-radius: 4px;
    transition: background-color 0.3s;
  }
  
  .accordion:hover {
    background-color: var(--accordion-hover-bg);
  }
  
  .accordion.active {
    background-color: var(--accordion-hover-bg);
  }
  
  .accordion-content {
    padding: 10px;
    display: none;
    overflow: auto;
    max-height: 200px;
    background-color: var(--accordion-content-bg);
    border-radius: 4px;
    margin-bottom: 10px;
  }
  
  /* Two Column Layout */
  .accordion-content .grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 2fr 1fr 2fr;
    gap: 10px;
  }
  
  .accordion-content label {
    display: flex;
    align-items: center;
    gap: 0px;
    margin-bottom: 8px;
    font-weight: 400;
    cursor: pointer;
  }
  
  .accordion-content input[type="checkbox"] {
    margin-right: 4px;
  }
  
  /* Buttons */
  .modal button {
    background-color: var(--button-bg);
    color: var(--button-text);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .modal button:hover {
    background-color: #0056b3;
  }
  
  button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
  }
  
  /* Table Styling */
  table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--table-bg);
    color: var(--text-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
  }
  
  thead {
    background-color: var(--table-header-bg);
    color: var(--table-header-text);
  }
  
  th, td {
    padding: 12px 15px;
    text-align: left;
  }

  th {
    cursor: pointer;
    text-align: left;
    position: relative;
  }
  
  .sortable-arrow {
    font-size: 12px;
    margin-left: 5px;
    color: var(--text-color);
  }
  
  th:hover {
    text-decoration: underline; /* Add underline on hover to indicate it's clickable */
  }  
  
  button {
    background-color: var(--button-bg);
    color: var(--button-text);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  button:hover {
    background-color: #0056b3;
  }
  
  button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
  }
  
  /* Input fields in the modal */
  input, textarea {
    background-color: var(--input-bg);
    color: var(--text-color);
    border: 1px solid #ccc;
    padding: 6px;
    margin-bottom: 10px;
    width: 100%;
  }
  
  .checkbox-label {
    margin-right: 10px;

    display: inline-flex;
    align-items: center;
    gap: 3px; /* Adjust the gap to control spacing between the checkbox and text */
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .modal-content {
      width: 90%;
    }
  
    table {
      font-size: 14px;
    }
  
    th, td {
      padding: 10px;
    }
  
    button {
      padding: 8px 16px;
    }
  }
  
  /* Modal for Version Update Notification */
#versionModal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
  }
  
  #versionModal .modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  #versionModal button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  #versionModal button:hover {
    background-color: #0056b3;
  }

  /* Styling for the usage information box */
.info-box {
    background-color: #f9f9f9;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .info-box h3 {
    margin-bottom: 10px;
    color: #333;
  }
  
  .info-box p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
  }
  
  .info-box strong {
    color: #007bff;
  }