/* tab-enrichment.css - Complete styles for enrichment tab */

/* Reuse search tab classes for consistency */
.enrichment-form-container {
  width: 100%;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background-color: #f9f9f9;
  margin-bottom: 20px;
}

.enrichment-form-group {
  margin-bottom: 15px;
  width: 100%;
}

.enrichment-label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: var(--dark);
}

.enrichment-select {
  width: 100%;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-size: 1rem;
}

/* Use search-ui classes for checkbox containers */
.enrichment-checkbox-container {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px;
  margin-top: 5px;
  background-color: var(--white);
  width: 100%;
}

.enrichment-checkbox-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 5px;
}

.enrichment-checkbox-item:nth-child(odd) {
  background-color: white;
}

.enrichment-checkbox-item:nth-child(even) {
  background-color: #f0f0f0;
}

.enrichment-checkbox-item label {
  order: 1;
  font-weight: normal;
  margin: 0;
  flex-grow: 1;
}

.enrichment-checkbox-item input[type="radio"],
.enrichment-checkbox-item input[type="checkbox"] {
  order: 2;
  margin-left: 5px;
}

.enrichment-selection-summary {
  margin-top: 15px;
  min-height: 24px;
  color: var(--accent);
  font-weight: bold;
}

.enrichment-submit-container {
  margin: 20px 0;
  text-align: center;
  width: 100%;
}

.enrichment-button {
  background-color: var(--accent);
  color: var(--white);
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.enrichment-button:hover {
  background-color: var(--accent-dark);
}

.enrichment-button:disabled {
  background-color: var(--gray);
  cursor: not-allowed;
}

.enrichment-table-container {
  width: 100%;
}

.enrichment-results {
  margin-top: 30px;
  width: 100%;
}

.enrichment-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.enrichment-table th, 
.enrichment-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.enrichment-table th {
  background-color: #f2f2f2;
  font-weight: bold;
}

.enrichment-table tr:hover {
  background-color: #f5f5f5;
}

.enrichment-hidden {
  display: none;
}

.enrichment-pre {
  background-color: var(--white);
  padding: 10px;
  border-radius: 4px;
  overflow-x: auto;
  border: 1px solid var(--border);
  font-family: Menlo, Consolas, monospace;
  max-height: 400px;
}

/* NEW: Match search tab submit button */
.search-ui-submit-button {
  background-color: var(--accent-dark);
  color: white;
  text-transform: none;
  font-size: 1.1rem;
  padding: 12px 25px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-ui-submit-button:hover:not(:disabled) {
  background-color: var(--accent);
}

.search-ui-submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Mode info box colors */
.mode-info-box.mode-target .current-mode-value {
  color: #27ae60;
}

.mode-info-box.mode-features .current-mode-value {
  color: #2980b9;
}

@media (max-width: 768px) {
  .enrichment-form-container,
  .enrichment-form-group,
  .enrichment-select,
  .enrichment-checkbox-container,
  .enrichment-submit-container,
  .well {
    width: 100%;
  }
}

.search-ui-container {
    width: 100% !important;
}

/* Disabled button styling */
.search-ui-submit-button:disabled {
  background-color: #6c757d !important;  /* Dark gray */
  color: #adb5bd !important;  /* Light gray text */
  cursor: not-allowed !important;
  opacity: 0.6;
}

.search-ui-submit-button:disabled:hover {
  background-color: #6c757d !important;  /* No hover effect */
}

/* Button spacing */
.global-submit-container {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin: 20px 0;
}