
.search-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  font-family: 'Lato', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.search-bar-wrapper {
  background: linear-gradient(135deg, var(--nemo-blue) 0%, var(--nemo-blue-other) 100%);
  border-radius: 8px;
  padding: 1rem 2rem; 
  margin-bottom: 1rem;
  border: none;
}

.search-input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 0.5rem;
}

.search-input {
  flex: 1;
  padding: 1rem 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.95);
  color: #333;
  font-family: 'Lato', 'Segoe UI', Roboto, sans-serif;
  font-weight: 500;
}

.search-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.8);
  background-color: white;
}

.search-btn {
  text-decoration: none; 
  padding: 1rem 2rem;
  background-color: var(--nemo-orange);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Lato', 'Segoe UI', Roboto, sans-serif;
}

.search-btn:hover {
  background-color: #e08200;
  transform: translateY(-2px);
}

.search-btn:active {
  background-color: var(--nemo-blue-darker);
  transform: translateY(0);
}

.search-controls {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.dropdown-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dropdown-group label {
  color: white;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  font-size: 0.95rem;
  font-family: 'Lato', 'Segoe UI', Roboto, sans-serif;
}

.dropdown-filter {
  padding: 0.9rem 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  font-size: 0.95rem;
  background-color: rgba(255, 255, 255, 0.95);
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  min-width: 160px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
  font-family: 'Lato', 'Segoe UI', Roboto, sans-serif;
}

.dropdown-filter:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background-color: white;
}

.dropdown-filter:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.8);
  background-color: white;
}

.results-wrapper {
  margin-top: 2.5rem;
  padding: 0;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--nemo-blue-lighter);
  padding-bottom: 1.5rem;
}

.results-header h2 {
  font-size: 1.8rem;
  color: var(--nemo-blue);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.result-count {
  color: #666;
  font-size: 1rem;
  margin: 0;
  font-weight: 500;
}

.result-count strong {
  color: var(--nemo-blue);
  font-weight: 700;
}

.table-responsive {
  overflow-x: auto;
  border-radius: 3px;
  margin-bottom: 3rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0px 6px 0px 0px rgba(0, 0, 0, 0.05);
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  margin-bottom: 0;
}

.results-table thead {
  background: linear-gradient(135deg, var(--nemo-blue-lighter) 0%, rgba(220, 225, 231, 0.8) 100%);
  border-bottom: 2px solid var(--nemo-blue-darker);
}

.results-table th {
  padding: 1.25rem;
  text-align: left;
  font-weight: 700;
  color: var(--nemo-blue);
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
}

.results-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.results-table th.sortable:hover {
  background-color: var(--nemo-blue-darker);
}

.results-table th.sortable i {
  font-size: 0.85rem;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  margin-left: 0.35rem;
}

.results-table th.sortable:hover i {
  opacity: 1;
}

.results-table tbody tr {
  border-bottom: 1px solid var(--nemo-blue-lighter);
  transition: background-color 0.2s ease;
}

.results-table tbody tr:nth-child(even) {
  background-color: var(--nemo-blue-lighter);
}

.results-table tbody tr:nth-child(odd) {
  background-color: white;
}

.results-table tbody tr:hover {
  background-color: var(--nemo-blue-darker);
}

.results-table td {
  padding: 1rem;
  color: #333;
  font-size: 0.95rem;
  font-weight: 300;
}

.col-name {
  font-weight: 600;
}

.result-name {
  color: var(--nemo-blue);
  font-weight: 600;
  margin-bottom: 4px;
  font-family: "Lato", sans-serif;
}

.result-subname {
  font-size: 0.85em;
  color: #595959;
}

.result-row {
}

.col-description {
  color: #333;
  max-width: 400px;
  font-weight: 300;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  background: linear-gradient(135deg, #5c7a99 0%, #6b8db5 100%);
  color: white !important;
}

.badge-collection {
  background: linear-gradient(135deg, #5c7a99 0%, #6b8db5 100%);
  color: white;
}

.badge-file {
  background: linear-gradient(135deg, #8b6a9e 0%, #9f7aad 100%);
  color: white;
}

.badge-sample {
  background: linear-gradient(135deg, #6b9b93 0%, #7aac9f 100%);
  color: white;
}

.badge-project {
  background: linear-gradient(135deg, #c28555 0%, #d4945f 100%);
  color: white;
}

.badge-subject {
  background: linear-gradient(135deg, #d9738c 0%, #df8599 100%);
  color: white;
}

.badge-library {
  background: linear-gradient(135deg, #7c9fbd 0%, #8bacc9 100%);
  color: white;
}

.badge-grant {
  background: linear-gradient(135deg, #9b8869 0%, #aa9577 100%);
  color: white;
}

.action-link {
  color: var(--nemo-blue);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.download-csv-btn {
  padding: 0.5rem 1rem;
  background-color: white;
  color: var(--nemo-blue);
  border: 2px solid var(--nemo-blue-darker);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Lato', 'Segoe UI', Roboto, sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.download-csv-btn:hover {
  background-color: var(--nemo-blue);
  color: white;
  border-color: var(--nemo-blue);
  transform: translateY(-2px);
}

.download-csv-btn:active {
  background-color: var(--nemo-blue-darker);
  transform: translateY(0);
}

.reset-btn {
  padding: 0.35rem 0.85rem;
  background-color: white;
  color: var(--nemo-blue);
  border: 2px solid var(--nemo-orange);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Lato', 'Segoe UI', Roboto, sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  vertical-align: middle;
}

.reset-btn:hover {
  background-color: var(--nemo-orange);
  color: white;
  transform: translateY(-2px);
}

.reset-btn:active {
  background-color: #e08200;
  transform: translateY(0);
}

.page-size-label {
  color: #666;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  margin: 0;
  font-family: 'Lato', 'Segoe UI', Roboto, sans-serif;
}

.page-size-select {
  padding: 0.4rem 2rem 0.4rem 0.75rem;
  border: 1px solid var(--nemo-blue-darker);
  border-radius: 6px;
  font-size: 0.9rem;
  background-color: white;
  color: var(--nemo-blue);
  cursor: pointer;
  font-weight: 600;
  font-family: 'Lato', 'Segoe UI', Roboto, sans-serif;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
}

.page-size-select:hover {
  border-color: var(--nemo-blue);
  background-color: var(--nemo-blue-lighter);
}

.page-size-select:focus {
  outline: none;
  border-color: var(--nemo-blue);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}



.pagination-btn {
  padding: 10px 14px;
  border: 1px solid var(--nemo-blue-darker);
  background-color: white;
  color: var(--nemo-blue);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.pagination-btn:hover:not(.disabled) {
  background-color: var(--nemo-blue-lighter);
  border-color: var(--nemo-blue);
  transform: translateY(-2px);
}

.pagination-btn.active {
  background-color: var(--nemo-blue);
  color: white;
  border-color: var(--nemo-blue);
}

.pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-btn.disabled:hover {
  transform: none;
  background-color: white;
}

@media (max-width: 768px) {
  .search-container {
    padding: 20px 15px;
  }

  .search-bar-wrapper {
    padding: 10px 20px; 
  }

  .search-input-group {
    flex-direction: column;
    margin-bottom: 15px;
  }

  .search-input,
  .search-btn {
    width: 100%;
  }

  .search-controls {
    gap: 15px;
    flex-direction: column;
  }

  .dropdown-group {
    flex-direction: column;
    align-items: stretch;
  }

  .dropdown-group label {
    text-align: left;
  }

  .dropdown-filter {
    width: 100%;
    min-width: auto;
  }

  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .results-table {
    font-size: 0.85rem;
  }

  .results-table th,
  .results-table td {
    padding: 12px;
  }

  .col-description {
    max-width: 200px;
  }

  .pagination {
    flex-wrap: wrap;
  }
}
