.hypothesis-container {
  max-width: 900px;
  margin: 60px auto;
  padding: 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
  font-family: 'Poppins', sans-serif;
  color: white;
}

/* Back to Dashboard Navigation */
.dashboard-nav {
  margin-bottom: 20px;
}

.back-to-dashboard {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.back-to-dashboard:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateX(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-dashboard i {
  transition: transform 0.3s ease;
}

.back-to-dashboard:hover i {
  transform: translateX(-3px);
}

.hypothesis-container h1 {
  font-size: 2.4rem;
  color: white;
  text-align: center;
  margin-bottom: 1rem;
}

.intro {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 30px;
  text-align: center;
}

#research-goal {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 1rem;
  margin-bottom: 20px;
  resize: vertical;
}

#research-goal::placeholder {
  color: rgba(255,255,255,0.7);
}

#generate-btn {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  transition: all 0.3s ease;
}

#generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

#results-container {
  margin-top: 40px;
}

.typing-box {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  padding: 20px;
  color: white;
  font-family: inherit;
  min-height: 100px;
  white-space: pre-wrap;
  margin-bottom: 20px;
}

.ai-guidelines {
  background: rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 30px;
  border: 1px solid rgba(255,255,255,0.2);
}

.ai-guidelines h3 {
  color: white;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.agent-item {
  background: rgba(255,255,255,0.1);
  padding: 15px;
  border-radius: 12px;
  text-align: center;
}

.agent-item i {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: #ffd700;
}

.progress-container {
  margin: 20px 0;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 15px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #28a745, #20c997);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 4px;
}

/* Additional styles from template */
}

.metric-item {
  background: rgba(255,255,255,0.1);
  padding: 15px;
  border-radius: 12px;
}

.metric-item i {
  color: #ffd700;
  margin-right: 8px;
}

/* Typewriter animation styles */
.typewriter-text {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-right: .15em solid rgba(255,255,255,0.5);
  white-space: nowrap;
  letter-spacing: .15em;
  animation: typing 3s steps(30, end), blink-caret .75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: rgba(255,255,255,0.5); }
}

.float-animation {
  position: relative;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translatey(0px); }
  50% { transform: translatey(-10px); }
}

/* Hidden elements */
#progress-section,
#results-container {
  display: none;
}

.progress-container.show,
#results-container.show {
  display: block;
}

/* File input styling */
input[type="file"] {
  display: none;
}

/* Results section styling */
.typing-box {
  min-height: 100px;
  padding: 20px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  color: white;
  font-family: 'Courier New', monospace;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 15px 0;
  border: 1px solid rgba(255,255,255,0.2);
}

.agent-feedback {
  margin-top: 30px;
  padding: 20px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
}

.agent-feedback h4 {
  color: white;
  margin-bottom: 15px;
}

/* Ensure content sections are visible */
#results-container h3 {
  color: white;
  margin: 20px 0 10px 0;
}

#results-container {
  display: none; /* Hidden by default, shown by JavaScript */
}

#results-container.show {
  display: block;
}

/* Fix input tabs styling */
.input-tabs {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  justify-content: center;
}

.tab-btn {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
  padding: 15px 30px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
  justify-content: center;
}

.tab-btn:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255,255,255,0.1);
}

.tab-btn.active {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.6);
  box-shadow: 0 4px 20px rgba(255,255,255,0.2);
}

.tab-btn i {
  font-size: 18px;
}

/* Fix input panels styling */
.input-panel {
  display: none;
  background: rgba(255,255,255,0.1);
  border-radius: 15px;
  padding: 25px;
  margin: 20px 0;
  border: 1px solid rgba(255,255,255,0.2);
}

.input-panel.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Text input styling */
#research-goal {
  width: 100%;
  min-height: 120px;
  background: rgba(255,255,255,0.95);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  padding: 20px;
  color: #333;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  resize: vertical;
  transition: all 0.3s ease;
}

#research-goal:focus {
  outline: none;
  border-color: rgba(40, 167, 69, 0.6);
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
  background: rgba(255,255,255,1);
}

#research-goal::placeholder {
  color: #666;
  opacity: 0.8;
}

/* File upload area styling */
.file-upload-area {
  border: 3px dashed rgba(255,255,255,0.4);
  border-radius: 15px;
  padding: 40px 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  background: rgba(255,255,255,0.05);
}

.file-upload-area:hover,
.file-upload-area.dragover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.file-upload-area i {
  font-size: 4rem;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.8);
  display: block;
}

.file-upload-area p {
  color: rgba(255,255,255,0.9);
  font-size: 18px;
  margin: 15px 0;
  font-weight: 500;
}

.file-upload-area button {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  margin-top: 20px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.file-upload-area button:hover {
  background: linear-gradient(135deg, #218838, #1ea085);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.file-upload-area button:active {
  transform: translateY(0);
}

/* Generate button enhanced styling */
#generate-btn {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border: none;
  padding: 18px 40px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 30px auto;
  display: block;
  min-width: 250px;
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

#generate-btn:hover {
  background: linear-gradient(135deg, #218838, #1ea085);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

#generate-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

#generate-btn i {
  margin-right: 10px;
  font-size: 16px;
}

/* Responsive design improvements */
@media (max-width: 768px) {
  .input-tabs {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .tab-btn {
    min-width: 200px;
  }
  
  .input-panel {
    padding: 20px 15px;
  }
  
  .file-upload-area {
    padding: 30px 15px;
  }
  
  .file-upload-area i {
    font-size: 3rem;
  }
  
  #generate-btn {
    padding: 15px 30px;
    font-size: 16px;
    min-width: 200px;
  }
}

/* Ensure proper panel switching */
.input-panel {
  position: relative;
  z-index: 1;
}

.input-panel:not(.active) {
  display: none !important;
  visibility: hidden;
  opacity: 0;
}

.input-panel.active {
  display: block !important;
  visibility: visible;
  opacity: 1;
}

/* Ensure input tabs are properly positioned */
.input-tabs {
  position: relative;
  z-index: 10;
  margin-bottom: 30px;
}

/* Prevent textarea overflow */
#research-goal {
  box-sizing: border-box;
  max-width: 100%;
}

/* Ensure proper form layout */
#hypothesis-form {
  position: relative;
  z-index: 1;
}

/* Summary Output Styles */
.summary-output {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 25px;
  margin-top: 20px;
  line-height: 1.7;
  color: #2d3748;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.summary-output h1, .summary-output h2, .summary-output h3 {
  color: #1a365d;
  margin-top: 25px;
  margin-bottom: 15px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 8px;
}

.summary-output h1 {
  font-size: 1.8rem;
  color: #b7791f;
}

.summary-output h2 {
  font-size: 1.5rem;
  color: #2d3748;
}

.summary-output h3 {
  font-size: 1.3rem;
  color: #4a5568;
}

.summary-output p {
  margin-bottom: 15px;
  text-align: justify;
}

.summary-output strong {
  color: #b7791f;
  font-weight: 600;
}

.summary-output em {
  color: #4a5568;
  font-style: italic;
}

.summary-output ul, .summary-output ol {
  margin: 15px 0;
  padding-left: 25px;
}

.summary-output li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.summary-output blockquote {
  border-left: 4px solid #b7791f;
  margin: 20px 0;
  padding: 15px 20px;
  background: #f7fafc;
  font-style: italic;
  color: #4a5568;
}

.summary-output code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: #e53e3e;
}

.summary-output pre {
  background: #1a202c;
  color: #e2e8f0;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 20px 0;
}

.summary-output pre code {
  background: none;
  color: #e2e8f0;
  padding: 0;
}

.summary-output hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, #b7791f, #e2e8f0, #b7791f);
  margin: 30px 0;
}

/* Agent analysis section styling */

/* Error Section */
.error-section {
  background: #fed7d7;
  border: 1px solid #feb2b2;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}

.error-message {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c53030;
  font-weight: 500;
}

.error-message i {
  font-size: 1.2rem;
}

/* Results Section */
.results-section {
  background: #f0fff4;
  border: 1px solid #9ae6b4;
  border-radius: 12px;
  padding: 25px;
  margin: 25px 0;
}

.results-header h3 {
  color: #22543d;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-content h4 {
  color: #2d3748;
  margin: 15px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Agent Analysis Styling */
.agent-analysis {
  background: #f0f9ff;
  border: 1px solid #0ea5e9;
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
  font-weight: 600;
  color: #0c4a6e;
}

/* Form Layout Fixes */
.input-section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 30px;
  margin: 25px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.generate-btn {
  background: linear-gradient(135deg, #b7791f, #d69e2e);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px auto 0;
  min-width: 200px;
}

.generate-btn:hover {
  background: linear-gradient(135deg, #975a16, #b7791f);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(183, 121, 31, 0.4);
}

.generate-btn:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hypothesis-container {
    padding: 20px;
    margin: 20px;
  }
  
  .agent-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .input-tabs {
    flex-direction: column;
    gap: 10px;
  }
  
  .tab-btn {
    width: 100%;
  }
}

/* Debug and enhanced tab styling */
.input-tabs {
  display: flex !important;
  gap: 15px !important;
  margin-bottom: 25px !important;
  justify-content: center !important;
  visibility: visible !important;
  z-index: 100 !important;
}

.tab-btn {
  background: #b7791f !important;
  color: white !important;
  border: 2px solid #d69e2e !important;
  padding: 15px 30px !important;
  border-radius: 30px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 150px !important;
  justify-content: center !important;
  visibility: visible !important;
}

.tab-btn:hover {
  background: #975a16 !important;
  border-color: #b7791f !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(183, 121, 31, 0.4) !important;
}

.tab-btn.active {
  background: #975a16 !important;
  border-color: #b7791f !important;
  box-shadow: 0 4px 20px rgba(183, 121, 31, 0.6) !important;
}

/* Enhanced input panel styling */
.input-panel {
  display: none !important;
  background: rgba(255,255,255,0.95) !important;
  border-radius: 15px !important;
  padding: 25px !important;
  margin: 20px 0 !important;
  border: 1px solid #e2e8f0 !important;
  visibility: visible !important;
}

.input-panel.active {
  display: block !important;
  animation: fadeIn 0.3s ease-in !important;
}

/* Enhanced file upload area */
.file-upload-area {
  border: 3px dashed #b7791f !important;
  border-radius: 15px !important;
  padding: 40px 20px !important;
  text-align: center !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  background: #f7fafc !important;
  position: relative !important;
}

.file-upload-area:hover {
  border-color: #975a16 !important;
  background: #edf2f7 !important;
  transform: translateY(-2px) !important;
}

.file-upload-area i {
  font-size: 4rem !important;
  margin-bottom: 20px !important;
  color: #b7791f !important;
  display: block !important;
}

.file-upload-area p {
  color: #2d3748 !important;
  font-size: 18px !important;
  margin: 15px 0 !important;
  font-weight: 500 !important;
}

.file-upload-area input[type="file"] {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  cursor: pointer !important;
}

/* Textarea styling */
#text-content {
  width: 100% !important;
  min-height: 200px !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 20px !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  resize: vertical !important;
  background: #ffffff !important;
  color: #2d3748 !important;
}

#text-content:focus {
  border-color: #b7791f !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(183, 121, 31, 0.1) !important;
}
