/* Custom styles for High-Value Datasets - Litera Theme */

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Accordion Styles */
.accordion .card {
  margin-bottom: 10px;
  border: 1px solid rgba(0, 0, 0, 0.125);
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.accordion .card-header {
  background-color: #f8f9fa;
  cursor: pointer;
  padding: 0;
}

.accordion .card-header:hover {
  background-color: #e9ecef;
}

.accordion .btn-link {
  color: #333;
  text-decoration: none;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1.25rem;
  font-weight: 500;
}

.accordion .btn-link:hover {
  text-decoration: none;
  color: #158CBA;
}

.accordion .btn-link:focus {
  box-shadow: none;
}

/* Filter Styles */
.filter-section {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 0.25rem;
  margin-bottom: 30px;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group h5 {
  margin-bottom: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #495057;
}

/* Scrollable filter container */
.filter-scroll-container {
  max-height: 120px;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  padding: 10px;
}

.filter-checkbox {
  display: block;
  margin-bottom: 8px;
  padding-left: 5px;
}

.filter-checkbox input[type="checkbox"] {
  margin-right: 8px;
}

.filter-checkbox label {
  margin-bottom: 0;
  font-weight: normal;
  cursor: pointer;
}

/* Custom scrollbar for filter containers */
.filter-scroll-container::-webkit-scrollbar {
  width: 8px;
}

.filter-scroll-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.filter-scroll-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.filter-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Dataset Info Styles */
.dataset-info {
  padding: 20px;
}

.dataset-info h6 {
  font-weight: 600;
  color: #495057;
  margin-top: 15px;
  margin-bottom: 10px;
}

.dataset-info p {
  margin-bottom: 10px;
}

.dataset-info .badge {
  margin-right: 5px;
  margin-bottom: 5px;
}

/* Bootstrap Table Styles with Grid Background */
.dataset-description table {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  margin: 15px 0;
}

.dataset-description table thead {
  background-color: #e9ecef;
}

.dataset-description table th {
  border: 1px solid #dee2e6;
  padding: 12px;
  font-weight: 600;
  color: #495057;
}

.dataset-description table td {
  border: 1px solid #dee2e6;
  padding: 10px;
  background-color: white;
}

.dataset-description table tr:nth-child(even) td {
  background-color: #f8f9fa;
}

.dataset-description table tr:hover td {
  background-color: #e9ecef;
}

/* Responsive table wrapper */
.table-responsive {
  margin-top: 10px;
  margin-bottom: 15px;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border-radius: 0.25rem;
  overflow: hidden;
}

.table-responsive table {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Contact Form Styles */
.contact-form-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  background-color: #f8f9fa;
  border-radius: 0.25rem;
  padding: 20px;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.contact-form-container iframe {
  width: 100%;
  height: 600px;
  max-width: 800px;
  border-radius: 0.25rem;
}

/* Button Styles */
.btn-outline-primary {
  font-weight: 500;
}

.btn-secondary {
  font-weight: 500;
}

/* Alert Styles */
.alert-info {
  background-color: #e7f3ff;
  border-color: #b3d9ff;
  color: #004085;
}

/* Card Styles */
.card {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-title {
  color: #495057;
  font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .filter-section {
    padding: 15px;
  }
  
  .filter-scroll-container {
    max-height: 100px;
  }
  
  .contact-form-container iframe {
    height: 500px;
  }
  
  .dataset-info {
    padding: 15px;
  }
  
  .table-responsive {
    margin-left: -15px;
    margin-right: -15px;
    border-radius: 0;
  }
}

@media (max-width: 576px) {
  .filter-checkbox {
    font-size: 0.9rem;
  }
  
  .dataset-description table {
    font-size: 0.8rem;
  }
  
  .dataset-description table th,
  .dataset-description table td {
    padding: 8px;
  }
}

/* Loading Spinner */
.loading-spinner {
  text-align: center;
  padding: 50px;
}

.loading-spinner i {
  font-size: 3rem;
  color: #158CBA;
}

/* No Results Message */
.no-results {
  text-align: center;
  padding: 50px;
  background-color: #f8f9fa;
  border-radius: 0.25rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.no-results h3 {
  color: #6c757d;
}

/* Page Header Styles */
h1 {
  color: #333;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

h2 {
  color: #495057;
  font-weight: 400;
}

/* Navbar Brand Icon */
.navbar-brand i {
  color: #158CBA;
}

/* Active Nav Link */
.navbar-nav .nav-item.active .nav-link {
  color: #158CBA !important;
  font-weight: 500;
}

/* Footer Styles */
footer {
  background-color: #f8f9fa !important;
}