/* Heald Brand Colors – severity */
:root {
  --primary-teal: #2FBFB3;
  --secondary-bg: #F4FFFB;
  --normal-color: #2FBFB3;
  --borderline-color: #FFB020;
  --alarming-color: #E74C3C;
  --optimal-green: #28B463;
  --neutral-gray: #E8E8E8;
  --text-primary: #2C3E50;
  --text-secondary: #7F8C8D;
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --card-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.biomarker-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin: 16px 0;
  padding: 12px 0;
}

.biomarker-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid #F0F0F0;
  position: relative;
}

.biomarker-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.biomarker-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.biomarker-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
  flex: 1;
  padding-right: 12px;
}

.biomarker-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.biomarker-unit {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-left: 4px;
}

.biomarker-range-container {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 8px;
}

.range-strip {
  width: 60px;
  height: 180px;
  background: var(--neutral-gray);
  border-radius: 8px;
  position: relative;
  flex-shrink: 0;
  border: 1px solid #E0E0E0;
}

.range-segment {
  position: absolute;
  width: 100%;
  left: 0;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.range-segment:hover {
  opacity: 0.9;
}

.range-label {
  position: absolute;
  left: -50px;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.range-label-top {
  top: -8px;
}

.range-label-bottom {
  bottom: -8px;
}

.value-marker {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--text-primary);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 10;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
}

.value-marker.high,
.value-marker.low,
.value-marker.alarming {
  background: var(--alarming-color);
}

.value-marker.borderline {
  background: var(--borderline-color);
}

.value-marker.normal,
.value-marker.optimal {
  background: var(--normal-color);
}

.biomarker-info {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #F0F0F0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
}

.status-badge.optimal,
.status-badge.normal {
  background: var(--secondary-bg);
  color: var(--normal-color);
}

.status-badge.borderline {
  background: #FFF8E6;
  color: var(--borderline-color);
}

.status-badge.high,
.status-badge.low,
.status-badge.alarming {
  background: #FFEBEE;
  color: var(--alarming-color);
}

/* More Info Panel */
.more-info-panel {
  display: none;
  margin-top: 16px;
  padding: 16px;
  background: var(--secondary-bg);
  border-radius: 8px;
  border-left: 4px solid var(--primary-teal);
}

.more-info-panel.active {
  display: block;
  animation: slideDown 0.3s ease-out;
}

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

.info-section {
  margin-bottom: 16px;
}

.info-section:last-child {
  margin-bottom: 0;
}

.info-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.info-content {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.disclaimer {
  margin-top: 40px;
  padding: 20px;
  background: #FFF9E6;
  border-radius: 8px;
  border-left: 4px solid #FFC107;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.disclaimer strong {
  color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .biomarker-container {
    grid-template-columns: 1fr;
  }
  
  .range-strip {
    width: 50px;
    height: 160px;
  }
  
  .range-label {
    left: -40px;
    font-size: 10px;
  }
}
