/* Genetic Models Specific Styles */

/* Form container styling */
.form-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

/* Sequence input styling */
.sequence-input {
  width: 100%;
  font-family: 'Courier New', Consolas, Monaco, monospace;
  font-size: 0.9rem;
  line-height: 1.4;
  resize: vertical;
  min-height: 120px;
}

.sequence-input:focus {
  border-color: #4285f4;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

/* Form group styling */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* Error styling */
.error-text {
  color: #ea4335;
  font-weight: 500;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1px solid #fecaca;
  border-radius: 6px;
  border-left: 4px solid #ea4335;
}

/* Button container */
.button-container {
  margin: 2rem 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* Button styling */
.analyze-button {
  background: linear-gradient(135deg, #34a853 0%, #2d8a4a 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(52, 168, 83, 0.3);
}

.analyze-button:hover {
  background: linear-gradient(135deg, #2d8a4a 0%, #237a3c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 168, 83, 0.4);
}

.clear-button {
  background: linear-gradient(135deg, #ea4335 0%, #d33b2c 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(234, 67, 53, 0.3);
}

.clear-button:hover {
  background: linear-gradient(135deg, #d33b2c 0%, #b52d20 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 67, 53, 0.4);
}

.download-button {
  background: linear-gradient(135deg, #4285f4 0%, #3367d6 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.download-button:hover {
  background: linear-gradient(135deg, #3367d6 0%, #2c5aa0 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
}

/* Error container */
#error-container {
  margin: 1.5rem 0;
}

#error-message {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1px solid #fecaca;
  border-left: 4px solid #ea4335;
  border-radius: 8px;
  padding: 1rem;
  color: #b91c1c;
  font-weight: 500;
}

/* Results container */
#result-container {
  margin-top: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 12px;
  border: 1px solid #cbd5e1;
}

#result-container h3 {
  color: #1e293b;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Result info styling */
#result-info {
  margin-bottom: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

#result-info p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  color: #475569;
}

#result-info strong {
  color: #1e293b;
  font-weight: 600;
}

/* Result output textarea */
#result-output {
  width: 100%;
  min-height: 350px;
  font-family: 'Courier New', Consolas, Monaco, monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre;
  overflow-x: auto;
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background-color: #ffffff;
  color: #1e293b;
  resize: vertical;
}

#result-output:focus {
  outline: none;
  border-color: #4285f4;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

/* Success message styling */
.success-message {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-left: 4px solid #22c55e;
  border-radius: 8px;
  padding: 1rem;
  color: #15803d;
  font-weight: 500;
  margin: 1rem 0;
}

/* Loading state */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #4285f4;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
  .form-container {
    width: 95%;
    padding: 1rem;
  }

  .button-container {
    flex-direction: column;
    align-items: stretch;
  }

  .analyze-button,
  .clear-button,
  .download-button {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  #result-output {
    min-height: 250px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .form-container {
    padding: 0.5rem;
  }

  .sequence-input {
    font-size: 0.8rem;
    min-height: 100px;
  }

  #result-container {
    padding: 1rem;
  }

  #result-info {
    padding: 0.75rem;
  }

  #result-info p {
    font-size: 0.9rem;
  }
}