/* Print styles for export */
@media print {
  .export-btn,
  .db-btn,
  .step-actions select,
  .expand-icon,
  .close-modal {
    display: none !important;
  }
  
  .dna-workspace {
    box-shadow: none;
    max-width: 100%;
  }
  
  .gen-content {
    display: block !important;
  }
}

/* DNA Research Workspace Styles */

.dna-workspace {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.workspace-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e0e0e0;
}

.ancestor-info h3 {
  margin: 0 0 0.5rem 0;
  color: #2c3e50;
  font-size: 1.5rem;
}

.ancestor-info p {
  margin: 0.25rem 0;
  color: #666;
  font-size: 0.9rem;
}

.goal-text {
  color: #667eea !important;
  font-weight: 600;
  margin-top: 0.5rem !important;
}

.action-bar {
  display: flex;
  gap: 0.5rem;
}

.export-btn {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.export-btn:hover {
  transform: translateY(-2px);
}

/* Timeline */
.timeline-container {
  position: relative;
  padding-left: 80px;
}

.timeline-line {
  position: absolute;
  left: 40px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

.timeline-node {
  position: absolute;
  left: -40px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.node-circle {
  width: 20px;
  height: 20px;
  background: #667eea;
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(102,126,234,0.4);
}

.node-year {
  font-weight: 700;
  color: #667eea;
  font-size: 1rem;
  white-space: nowrap;
}

/* Generation Cards */
.generation-card {
  position: relative;
  margin-bottom: 2rem;
  background: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
}

.gen-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #667eea15 0%, #667eea05 100%);
  cursor: pointer;
  transition: background 0.2s;
}

.gen-header:hover {
  background: linear-gradient(135deg, #667eea25 0%, #667eea10 100%);
}

.expand-icon {
  font-size: 0.8rem;
  color: #667eea;
  font-weight: 700;
}

.gen-header h4 {
  margin: 0;
  flex: 1;
  color: #2c3e50;
  font-size: 1.1rem;
}

.progress-badge {
  background: #667eea;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.gen-content {
  padding: 1rem 1.5rem;
}

/* Step Cards */
.step-card {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid #667eea;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.step-header input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.priority-badge {
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
}

.step-body p {
  margin: 0.5rem 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

.expected-outcome {
  background: #fff3e0;
  padding: 0.75rem;
  border-radius: 6px;
  margin: 0.75rem 0;
}

.expected-outcome strong {
  color: #e65100;
  font-size: 0.85rem;
}

.expected-outcome p {
  margin: 0.25rem 0 0 0;
  color: #5d4037;
  font-size: 0.85rem;
}

.step-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.step-actions select {
  padding: 0.4rem 0.6rem;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  background: white;
}

.db-btn {
  padding: 0.4rem 0.8rem;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.db-btn:hover {
  background: #2980b9;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .dna-workspace {
    padding: 1rem;
  }
  
  .workspace-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .action-bar {
    width: 100%;
  }
  
  .export-btn {
    flex: 1;
  }
  
  .timeline-container {
    padding-left: 60px;
  }
  
  .timeline-line {
    left: 30px;
  }
  
  .timeline-node {
    left: -30px;
  }
  
  .node-year {
    font-size: 0.85rem;
  }
  
  .step-actions {
    flex-direction: column;
  }
  
  .step-actions select,
  .db-btn {
    width: 100%;
  }
}
