.search-container {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  margin-top: 2rem;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.page-title {
  color: #1a6f5c;
  font-size: 2.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #1a6f5c, #2e8b57);
  border-radius: 2px;
}

.page-subtitle {
  color: #666;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 1rem auto;
}

.search-form {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 2rem;
}

.search-form:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
  font-size: 1.1rem;
}

.form-select,
.form-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #eee;
  border-radius: 12px;
  font-size: 1rem;
  color: #333;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
}

.form-select:hover,
.form-input:hover {
  border-color: #1a6f5c;
  background-color: white;
}

.form-select:focus,
.form-input:focus {
  outline: none;
  border-color: #1a6f5c;
  box-shadow: 0 0 0 3px rgba(26, 111, 92, 0.1);
  background-color: white;
}

.search-button {
  display: block;
  width: 100%;
  padding: 1rem;
  background: #1a6f5c;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-button:hover {
  background: #2e8b57;
  transform: translateY(-2px);
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 2rem;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(26, 111, 92, 0.1);
  border-radius: 50%;
  border-top-color: #1a6f5c;
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: #666;
  font-size: 1.1rem;
}


.search-button.disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background: #999;
  transform: none !important;
}

.results-container {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  min-height: 300px;
  transition: all 0.3s ease;
}

.loading-message {
  text-align: center;
  padding: 3rem;
  color: #666;
  font-style: italic;
  font-size: 1.1rem;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px dashed #ddd;
}

.sequence-result {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #eee;
}

.sequence-header {
  font-weight: 500;
  color: #1a6f5c;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

/* For GFF header and sequence FASTA header */
.gene-info { 
  font-family: monospace;
  background: #e8f5e9;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  color: #2e7d32;
  font-size: 0.9rem;
  white-space: pre-wrap;
  word-break: break-all;
}

/* For "no data" messages, if styled like .gene-info but needing different text properties */
.no-data-message {
    font-family: 'Poppins', sans-serif; /* Or your default sans-serif font */
    background: #f8f9fa; 
    color: #666;
    font-style: italic;
    border: 1px dashed #ddd;
    text-align: center;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
}


.sequence-content {
  font-family: monospace;
  white-space: pre-wrap;
  word-break: break-all;
  background: white;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #eee;
  max-height: 200px;
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.5;
}

.error-message {
  color: #dc3545;
  text-align: center;
  padding: 1rem;
  background: #fff5f5;
  border-radius: 8px;
  border: 1px solid #dc3545;
}

.gene-details {
  margin-top: 1rem;
  background: white;
  border-radius: 8px;
  overflow: hidden; 
}

.gene-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.gene-info-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eee;
  vertical-align: top; 
}

.gene-info-table tr:last-child td {
  border-bottom: none;
}

.gene-info-table td:first-child {
  width: 200px; 
  font-weight: 500;
  color: #1a6f5c;
  background: #f8f9fa;
  white-space: nowrap; 
}

.gene-info-table td:last-child {
  color: #333;
}

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

  .page-title {
    font-size: 2rem;
  }
  .gene-info-table td:first-child {
    width: 120px; 
  }
}

.button-group {
  display: flex;
  gap: 1rem;
  margin-top: 1rem; 
}

.example-button {
  background-color: #34a853; 
  color: white;
  border: none;
  padding: 1rem; 
  border-radius: 12px; 
  cursor: pointer;
  font-size: 1.1rem; 
  font-weight: 500;
  transition: all 0.3s ease;
  flex: 0 0 auto; 
}

.example-button:hover {
  background-color: #2d8e47; 
  transform: translateY(-2px); 
}

.example-button:disabled { 
  background-color: #cccccc;
  cursor: not-allowed;
  transform: none;
}


.search-button { 
  flex: 1;
}

/* GFF table specific styles - keep if used elsewhere, otherwise can be removed if only for gene-search page */
.gff-table-view {
  margin-top: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 5px;
  border-left: 4px solid #007bff;
}

.gff-table-view h4 {
  margin-top: 0;
  color: #007bff;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.gff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border-radius: 4px;
  overflow: hidden;
}

.gff-table th,
.gff-table td {
  padding: 10px 12px;
  text-align: left;
  border: 1px solid #e9ecef;
}

.gff-table th {
  background-color: #f1f8ff;
  font-weight: 600;
  color: #0366d6;
}

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

.gff-table tr:hover {
  background-color: #f1f8ff;
}

.gff-formatted-view {
  margin-top: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 5px;
  border-left: 4px solid #28a745;
}

.gff-formatted-view h4 {
  margin-top: 0;
  color: #28a745;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.gff-format {
  font-family: 'Courier New', monospace;
  white-space: pre-wrap;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #333;
  background-color: #f8f9fa; 
  padding: 0; 
  margin: 0;
  overflow-x: auto;
}

/* Styles for the Database Annotation table cells */
.table-subheader {
  background-color: #e9f5e9; 
  font-weight: bold;
  text-align: center;
  padding: 0.5rem; 
  color: #1a6f5c;
}

.wrap-text {
  white-space: pre-wrap; 
  word-break: break-word; 
  max-width: 450px; 
  display: block; 
}