/* 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 #D4C5A9;
}

.ancestor-info h3 {
  margin: 0 0 0.5rem 0;
  color: #8B4513;
  font-size: 1.5rem;
  font-family: 'Playfair Display', serif;
}

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

.goal-text {
  color: #A0522D !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, #8B4513 0%, #A0522D 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, #8B4513 0%, #A0522D 100%);
}

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

.node-circle {
  width: 20px;
  height: 20px;
  background: #8B4513;
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(139,69,19,0.4);
}

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

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

.gen-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(139,69,19,0.08) 0%, rgba(139,69,19,0.03) 100%);
  cursor: pointer;
  transition: background 0.2s;
}

.gen-header:hover {
  background: linear-gradient(135deg, rgba(139,69,19,0.15) 0%, rgba(139,69,19,0.06) 100%);
}

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

.gen-header h4 {
  margin: 0;
  flex: 1;
  color: #8B4513;
  font-size: 1.1rem;
  font-family: 'Playfair Display', serif;
}

.progress-badge {
  background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
  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 #8B4513;
  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: #FAF3E8;
  padding: 0.75rem;
  border-radius: 6px;
  margin: 0.75rem 0;
  border-left: 3px solid #D4A574;
}

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

.expected-outcome p {
  margin: 0.25rem 0 0 0;
  color: #5D3A1A;
  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 #D4C5A9;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  background: white;
}

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

.db-btn:hover {
  background: #A0522D;
}

/* 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%; }
}
