/* Discussion page specific styles */
body {
  font-family: "Open Sans", sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  color: #333;
  line-height: 1.6;
}

.chart-container {
  margin-bottom: 30px;
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: #fffef9;
}

.controls-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 20px;
}

.control-group {
  display: flex;
  flex-direction: column;
  min-width: 200px;
}

.control-label {
  font-weight: 600;
  margin-bottom: 5px;
}

select,
input,
button {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

button {
  background-color: #4299e1;
  color: white;
  cursor: pointer;
  border: none;
  font-weight: 600;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #3182ce;
}

.info-panel {
  background-color: #ebf8ff;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
  border-left: 4px solid #3182ce;
}

.clinical-panel {
  background-color: #f0fff4;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
  border-left: 4px solid #38a169;
}

.false-normal-panel {
  background-color: #fef2f2;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
  border-left: 4px solid #dc2626;
}

h1,
h2,
h3 {
  color: #2d3748;
}

h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

h2 {
  font-size: 22px;
  margin-top: 30px;
}

h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

th {
  background-color: #f8fafc;
  font-weight: 600;
}

.bmi-category {
  font-weight: 600;
}

.underweight {
  color: #805ad5;
}

.normal {
  color: #38a169;
}

.overweight {
  color: #ed8936;
}

.obese {
  color: #e53e3e;
}

.morbid-obese {
  color: #9b2c2c;
}

.comparison-table {
  width: 100%;
  overflow-x: auto;
}

.highlight {
  background-color: #fffbeb;
  font-weight: 600;
}

.positive-diff {
  color: #dd6b20;
}

.negative-diff {
  color: #3182ce;
}

#bmi-display {
  font-weight: bold;
  color: #2d3748;
}

.xkcd-title {
  font-family: "Comic Neue", cursive;
  text-align: center;
  margin-top: 10px;
  color: #666;
  font-size: 15px;
  transform: rotate(-0.5deg);
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.legend-color {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border-radius: 3px;
}

.false-normal-zone {
  background-color: rgba(239, 68, 68, 0.15);
}

#false-normal-stats {
  font-weight: bold;
  color: #dc2626;
}

.home-link {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #3182ce;
  font-weight: 600;
  transition: all 0.2s ease;
  background-color: #ebf8ff;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #bee3f8;
}

.home-link:hover {
  background-color: #bee3f8;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.home-icon {
  margin-right: 6px;
  width: 16px;
  height: 16px;
}
/* Add to your discussion.css file */

.zone-legend {
    margin: 15px 0;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #6b7280;
  }
  
  .zone-legend h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    color: #374151;
  }
  
  .legend-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
  }
  
  .legend-color {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    margin-right: 10px;
    margin-top: 3px;
  }
  
  .blue-zone {
    background-color: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
  }
  
  .red-zone {
    background-color: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
  }
  
  .stats-container {
    margin-top: 15px;
  }
  
  .stats-container h4 {
    margin-bottom: 10px;
    font-size: 16px;
  }
/* Methodology Section Styles */
.methodology-panel {
    background-color: #f5f0ff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #8b5cf6;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.1);
  }
  
  
  .methodology-panel ol {
    padding-left: 20px;
    margin-bottom: 0;
    counter-reset: methodology-counter;
  }
  
  .methodology-panel ol > li {
    margin-bottom: 10px;
    line-height: 1.5;
    position: relative;
  }
  
  .methodology-panel ol > li::marker {
    color: #8b5cf6;
    font-weight: 600;
  }
  
  .methodology-panel ul {
    padding-left: 20px;
    margin-top: 5px;
    margin-bottom: 5px;
  }
  
  .methodology-panel ul > li::marker {
    color: #8b5cf6;
  }
  
  .methodology-panel p:last-child {
    margin-bottom: 0;
  }
  
  .methodology-panel strong {
    color: #6d28d9;
    font-weight: 600;
  }
  
  /* Dark mode support */
  html[data-theme="dark"] .methodology-panel {
    background-color: #2e1065;
    border-left-color: #a78bfa;
    box-shadow: 0 2px 10px rgba(167, 139, 250, 0.15);
  }
  
  html[data-theme="dark"] .methodology-panel h3 {
    color: #c4b5fd;
  }
  
  html[data-theme="dark"] .methodology-panel strong {
    color: #ddd6fe;
  }
  
  html[data-theme="dark"] .methodology-panel ol > li::marker,
  html[data-theme="dark"] .methodology-panel ul > li::marker {
    color: #a78bfa;
  }
  
  /* Responsive adjustments */
  @media (max-width: 640px) {
    .methodology-panel {
      padding: 12px;
    }
    
    .methodology-panel ol,
    .methodology-panel ul {
      padding-left: 16px;
    }
  }
  
  /* Print styles */
  @media print {
    .methodology-panel {
      background-color: white !important;
      border-left: 2pt solid black;
      padding: 1cm;
      margin: 1cm 0;
    }
    
    .methodology-panel h3,
    .methodology-panel strong {
      color: black !important;
    }
  }

/* Make sure container is positioned relative for absolute positioning of the link */
.container,
body {
  position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .chart-container {
    height: 400px !important;
  }

  h1 {
    font-size: 24px;
  }

  .home-link {
    position: static;
    margin-bottom: 20px;
    display: inline-flex;
  }
}
  @media (max-width: 640px) {
    .legend-item {
      margin-bottom: 12px;
    }
    
    .zone-legend {
      padding: 12px;
    }
  }