/*
 body {
      margin: 20px 0 20px 20px;
      /* background-color: #f5f7ff; * /
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    }
*/
    
    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 20px;
      background-color: white;
      border-radius: 10px;
      box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }
    
    h1 {
      color: #000000;
      border-bottom: 1px solid #c2c5c5;
      padding-bottom: 10px;
      margin-top: 0;
      font-size: 1.2rem;
    }
    
    .selector { 
      margin-bottom: 20px;
      padding: 20px;
      background-color: #f8f9fa;
      border-radius: 8px;
      border: 1px solid #e0e7ff;
    }
    
    .filter-row { 
      display: flex; 
      gap: 15px; 
      margin-bottom: 10px; 
      flex-wrap: wrap; 
    }
    
    .filter-group { 
      display: flex; 
      flex-direction: column; 
      flex: 2;
      min-width: 100px;
    }
    
    label {
      font-weight: 600;
      margin-bottom: 5px;
      color: #34495e;
    }
    
    select { 
      min-width: 100%; 
      padding: 12px; 
      border: 1px solid #d1d5db;
      border-radius: 6px;
      background-color: white;
      font-size: 16px;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }
    
    select:focus {
      outline: none;
      border-color: #3498db;
      box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    }
    
    .domain-tag { 
      background-color: #e0e7ff; 
      border-radius: 12px;
      padding: 2px 8px;
      font-size: 0.8em;
      margin-left: 5px;
      color: #4f46e5;
      font-weight: 500;
    }
    
    .loading { 
      padding: 20px; 
      text-align: center; 
      color: #4b5563;
    }
    
    .error { 
      color: #ef4444; 
      padding: 20px;
      background-color: #fee2e2;
      border-radius: 6px;
      border-left: 4px solid #ef4444;
    }
    
     #load-button {
      background-color:  #eeaf27;
      color: white;
      border: none;
      padding: 8px 20px;
      border-radius: 6px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      margin-top: 0;
      height: 42px;
      box-sizing: border-box;
      align-self: flex-end;
    }

    #load-button:hover {
      background-color:  #eeaf27;
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }
    
    #load-button:active {
      transform: translateY(0);
    }
    
    #load-button:disabled {
      background-color: #bdc3c7;
      cursor: not-allowed;
    }
    
    #dataset-container {
      margin-top: 20px;
      padding: 20px;
      background-color: white;
      border-radius: 8px;
      border: 1px solid #e0e7ff;
      min-height: 300px;
    }
    
    .dataset-detail {
      padding: 20px;
    }
    
    .dataset-detail > h1 {
      color: #2c3e50;
      margin-top: 0;
      font-size: 1.5rem;
      border-bottom: 1px solid #3498db;
      padding-bottom: 8px;
    }
    
    .metadata {
      /* background-color: #f8f9fa; */
      padding-left: 15px;
      border-radius: 6px;
      margin-bottom: 10px;
    }
    
    .metadata p {
      /* margin: 0px 0; */
      line-height: 1.6;
    }
    
    .requirements {
      margin-top: 20px;
      padding: 15px;
      background-color: #f0f7ff;
      border-radius: 6px;
      border-left: 4px solid #3498db;
      line-height: 1.6;
    }
    
    .requirements h2 {
      margin-top: 0;
      color: #2c3e50;
      font-size: 1.3rem;
    }
    
    .requirements ul {
      padding-left: 20px;
    }
    
    .requirements li {
      margin-bottom: 10px;
    }
    
    .requirements a {
      color: #3498db;
      text-decoration: none;
    }
    
    .requirements a:hover {
      text-decoration: underline;
    }
    
    /* NEW: CSS for HTML content section with increased specificity */
    #dataset-container .html-content {
      margin-left: 10px; 
      /* padding: 15px; */
      /* background-color: #ffffff; */
      border-radius: 8px;
      /* border-left: 3px solid #4f46e5; */
      font-size: 1.00rem;
      line-height: 1.4;
    }
    
    /* Target heading tags only in HTML content with important declarations */
    #dataset-container .html-content h1,
    #dataset-container .html-content h2,
    #dataset-container .html-content h3,
    #dataset-container .html-content h4,
    #dataset-container .html-content h5,
    #dataset-container .html-content h6 {
      font-weight: 400;
      color: #000000;
      margin-top: 1.5rem;
      margin-bottom: 0.8rem;
    }
    
    #dataset-container .html-content h1 {
      font-size: 1.3rem !important;
      border-bottom: 1px solid #d1d5db;
      padding-bottom: 6px;
    }
    
    #dataset-container .html-content h2 {
      font-size: 1.05rem !important;
      border-bottom: 1px solid #e0e7ff;
      padding-bottom: 5px;
    }
    
    #dataset-container .html-content h3 {
      font-size: 1.2rem !important;
    }
    
    #dataset-container .html-content h4 {
      font-size: 1.1rem !important;
    }
    
    #dataset-container .html-content h5 {
      font-size: 1.05rem !important;
    }
    
    #dataset-container .html-content h6 {
      font-size: 1rem !important;
    }
    
    #dataset-container .html-content p {
      margin-bottom: 1rem;
      line-height: 1.6;
    }
    
    #dataset-container .html-content ul, 
    #dataset-container .html-content ol {
      margin-bottom: 1.2rem;
      padding-left: 1.2rem;
    }
    
    #dataset-container .html-content li {
      margin-bottom: 0.5rem;
      font-size: 1.0rem !important;
    }
    
    /* Responsive design */
    @media (max-width: 768px) {
      .filter-row {
        flex-direction: column;
        gap: 10px;
      }
      
      .filter-group {
        min-width: 100%;
      }
      
/*
      body {
        margin: 10px;
      }
*/
      
      .container {
        padding: 15px;
      }
      
      .top-row {
        flex-wrap: wrap;
      }
    }
    .top-row {
      display: flex;
      justify-content: flex-start;
      margin-bottom: 15px;
      gap: 10px;
      flex-wrap: wrap;
    }
    
    .top-button, .top-secondbutton {
      background-color: #eeaf27;
      color: rgb(0, 0, 0);
      border: none;
      padding: 8px 20px;
      border-radius: 6px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .top-button:hover, .top-secondbutton:hover {
      background-color:  #eeaf27;
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    .top-button:active, .top-secondbutton:active {
      transform: translateY(0);
    }
    .results-count{
        color: #5f6366;
    }
    .domain-filter-container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        margin-bottom: 20px;
    }

        .domain-select {
        flex: 1 1 auto;
        max-width: 100%;
        min-width: 150px;
        padding: 5px 10px;
        font-size: 14px;
    }


    .filter-label {
    font-weight: bold;
    }
    .dataset-name{
        font-size: 20px;
    }

.dataset-name a {
    color: #032c5c; /* Blue color */
    text-decoration: underline;
    font-size: 16px;
  }

  .dataset-name a:visited {
    color: #053d7e; /* Keep blue after visit */
  }

  .dataset-name a:hover {
    text-decoration: none;
  }
  .search-highlight mark {
    background-color: yellow;
    color: black;
  }
  .search-row {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
}
/*
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    background-color: #f5f7ff;
  }
*/

  .container {
    background: white;
    min-height: 100vh;
    padding: 2rem;
  }

  .top-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
  }
  .print-button{
    float:  right;
  }

  .search-input {
    flex-grow: 1;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
  }

  .search-button,
  .top-button,
  .top-secondbutton {
    background-color: #eeaf27;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
  }

  .search-highlight {
    background-color: #eeaf27;
    font-weight: bold;
    padding: 0 2px;
    border-radius: 2px;
  }

  .result {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
    background: white;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .result h2 {
    margin: 0;
    font-size: 1.25rem;
  }

  .result h2 a {
    color: #0366d6;
    text-decoration: none;
  }

  .result h2 a:hover {
    text-decoration: none;
  }

  .domain-tag {
    display: inline-block;
    background-color: #e0e0e0;
    border-radius: 3px;
    padding: 2px 5px;
    margin-left: 5px;
    font-size: 0.8em;
    color: #555;
  }

  .loading {
    padding: 2rem;
    font-size: 1rem;
    text-align: center;
    color: #666;
  }

  .error {
    padding: 2rem;
    background: #fdd;
    color: #900;
    border-radius: 4px;
    margin-top: 1rem;
  }

  select {
    padding: 0.4rem;
    border-radius: 4px;
    border: 1px solid #ccc;
  }

  label {
    font-weight: bold;
    margin-right: 0.5rem;
  }


/* UM Drupal-mimicry overrides to above styles */

        #dataset-container h2 { font-size:1.3rem; }
        #dataset-container h1,
        #dataset-container h3 { font-size:1.2rem; }
        #dataset-container ul.dataset-list { margin: 0; padding: 0; }
        #dataset-container ul.dataset-list p { margin-block-start: 0.1rem; margin-block-end: 0.1rem; }
        #dataset-container ul.dataset-list li h2 { margin-bottom: 0.1rem; margin-top: 0.8rem; }
        .container {
              max-width: none;
              margin: 0 0;
              padding: 0px;
              background-color: white;
              border-radius: 0px;
              box-shadow: none;
        }
        #dataset-container {
              margin-top: 5px;
              padding: 0px;
              background-color: white;
              border-radius: 0px;
              border: none;
              min-height: 300px;
        }

        .requirements {
              background-color: #fdf6cc;
        }
        /*.requirements h3 { color: #000000; }
        #dataset-container h3 {
              border-bottom: 1px solid #c2c5c5;
              padding-bottom: 4px;
        }*/
