/**
 * Health Calculators Styles
 * Responsive design for SmartHerb health calculators
 */

/* ============================================
   Calculator Page Layout
   ============================================ */

.calculator-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.calculator-hero {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.calculator-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.calculator-subtitle {
  font-size: 1.25rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================
   Unit Switcher
   ============================================ */

.unit-switcher {
  margin-bottom: 2rem;
}

.unit-switcher-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #f5f5f5;
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.unit-switcher-wrapper label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #666;
  margin: 0;
}

.unit-buttons {
  display: flex;
  gap: 0.5rem;
}

.unit-btn {
  padding: 0.5rem 1rem;
  border: 2px solid #ddd;
  background: white;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
}

.unit-btn:hover {
  border-color: #4CAF50;
  color: #4CAF50;
}

.unit-btn.active {
  background: #4CAF50;
  border-color: #4CAF50;
  color: white;
}

/* ============================================
   Calculator Container
   ============================================ */

.calculator-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Calculator Inputs
   ============================================ */

.calculator-inputs {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-section {
  margin-bottom: 2rem;
}

.form-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f0f0f0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #4CAF50;
}

.input-with-unit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.input-with-unit input {
  flex: 1;
}

.unit-label {
  font-weight: 600;
  color: #666;
  font-size: 0.875rem;
  min-width: 40px;
}

.form-hint {
  display: block;
  font-size: 0.75rem;
  color: #999;
  margin-top: 0.25rem;
}

/* Custom Macros */
.custom-macros {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.macro-total {
  text-align: center;
  font-weight: 600;
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 6px;
  background: #f0f0f0;
}

.macro-total.valid {
  background: #e8f5e9;
  color: #2e7d32;
}

.macro-total.invalid {
  background: #ffebee;
  color: #c62828;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #4CAF50;
  color: white;
}

.btn-primary:hover {
  background: #45a049;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-secondary {
  background: #f5f5f5;
  color: #666;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

/* ============================================
   Calculator Results
   ============================================ */

.calculator-results {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.results-placeholder {
  text-align: center;
  color: #999;
}

.results-placeholder svg {
  margin-bottom: 1rem;
  opacity: 0.5;
}

.results-placeholder p {
  font-size: 1rem;
}

.results-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

/* Result Cards */
.result-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .result-cards {
    grid-template-columns: 1fr;
  }
}

.result-card {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.result-card.highlight {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  border-color: #4CAF50;
}

.result-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.result-card.highlight .result-label {
  color: white;
}

.result-value {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.result-unit {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.result-description {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Macro Results */
.macro-results {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #f0f0f0;
}

.macro-results h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

.macro-preset-name {
  font-size: 0.875rem;
  font-weight: 400;
  color: #666;
}

.macro-bars {
  margin-bottom: 2rem;
}

.macro-bar {
  margin-bottom: 1.5rem;
}

.macro-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.macro-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #333;
}

.macro-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
}

.macro-icon.carbs {
  background: #FF9800;
}

.macro-icon.protein {
  background: #2196F3;
}

.macro-icon.fat {
  background: #9C27B0;
}

.macro-values {
  font-size: 0.875rem;
  color: #666;
}

.macro-values strong {
  color: #333;
  font-size: 1rem;
}

.macro-bar-track {
  height: 32px;
  background: #f0f0f0;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.macro-bar-fill {
  height: 100%;
  transition: width 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 1rem;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

.macro-bar-fill.carbs {
  background: linear-gradient(90deg, #FF9800 0%, #FFB74D 100%);
}

.macro-bar-fill.protein {
  background: linear-gradient(90deg, #2196F3 0%, #64B5F6 100%);
}

.macro-bar-fill.fat {
  background: linear-gradient(90deg, #9C27B0 0%, #BA68C8 100%);
}

.macro-calories {
  font-size: 0.75rem;
  color: #999;
  text-align: right;
}

/* Macro Summary */
.macro-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: #f9f9f9;
  border-radius: 10px;
  padding: 1.5rem;
}

@media (max-width: 640px) {
  .macro-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}

.macro-summary-item {
  text-align: center;
}

.summary-label {
  font-size: 0.75rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.summary-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
}

/* Results Tips */
.results-tips {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #e3f2fd;
  border-radius: 10px;
  border-left: 4px solid #2196F3;
}

.results-tips h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1565C0;
}

.results-tips ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.results-tips li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #333;
}

.results-tips li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #2196F3;
  font-weight: 700;
  font-size: 1.25rem;
}

/* Results Actions */
.results-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

.results-actions button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ============================================
   Calculator Info Section
   ============================================ */

.calculator-info {
  max-width: 900px;
  margin: 0rem auto;
  padding: 0 1rem;
  line-height: 1.8;
}

.calculator-info h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.calculator-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

.calculator-info h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #444;
}

.calculator-info p {
  margin-bottom: 1rem;
  color: #555;
}

.calculator-info ul {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.calculator-info li {
  margin-bottom: 0.25rem;
  color: #555;
}

.calculator-info strong {
  color: #333;
  font-weight: 600;
}

/* ============================================
   Medical Disclaimer
   ============================================ */

.medical-disclaimer {
  max-width: 900px;
  margin: 3rem auto;
  padding: 1.5rem;
  background: #fff3e0;
  border-radius: 10px;
  border-left: 4px solid #FF9800;
}

.medical-disclaimer p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #333;
}

.medical-disclaimer strong {
  color: #E65100;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  .calculator-hero h1 {
    font-size: 2rem;
  }

  .calculator-subtitle {
    font-size: 1rem;
  }

  .calculator-inputs,
  .calculator-results {
    padding: 1.5rem;
  }

  .result-value {
    font-size: 2rem;
  }

  .calculator-info h2 {
    font-size: 1.5rem;
  }

  .calculator-info h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .calculator-page {
    padding: 1rem 0.5rem;
  }

  .unit-buttons {
    width: 100%;
  }

  .unit-btn {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.75rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .result-cards {
    gap: 0.75rem;
  }

  .result-card {
    padding: 1rem;
  }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
  .calculator-inputs,
  .unit-switcher,
  .results-actions,
  .calculator-info {
    display: none;
  }

  .calculator-container {
    grid-template-columns: 1fr;
  }

  .calculator-results {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .result-card.highlight {
    background: white !important;
    color: black !important;
    border: 2px solid #4CAF50 !important;
  }
}

/* ============================================
   Ideal Weight Calculator Specific Styles
   ============================================ */

/* Calculator Card Wrapper */
.calculator-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.calculator-header {
  text-align: center;
  margin-bottom: 2rem;
}

.calculator-header .calculator-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.calculator-header .calculator-icon svg {
  width: 32px;
  height: 32px;
  color: #4CAF50;
}

.calculator-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.calculator-header p {
  font-size: 1rem;
  color: #666;
  margin: 0;
}

/* Form Styles */
.calculator-form {
  max-width: 100%;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
}

.section-title svg {
  color: #4CAF50;
}

.form-divider {
  height: 1px;
  background: #e0e0e0;
  margin: 1.5rem 0;
}

.form-label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-input.invalid {
  border-color: #f44336;
}

.form-help {
  display: block;
  font-size: 0.85rem;
  color: #999;
  margin-top: 0.25rem;
}

.unit-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #f5f5f5;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.unit-section label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #666;
  margin: 0;
}

.unit-selector {
  display: flex;
  gap: 0.5rem;
}

.input-group {
  position: relative;
}

.input-suffix {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 0.9rem;
  font-weight: 600;
  pointer-events: none;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.btn-calculate {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.btn-calculate:hover {
  background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-calculate svg {
  width: 20px;
  height: 20px;
}

/* Results Section */
.results-section {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
}

.results-header {
  text-align: center;
  margin-bottom: 2rem;
}

.results-header .results-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.results-header .results-icon svg {
  width: 32px;
  height: 32px;
  color: #4CAF50;
}

.results-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.result-card.primary-card {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.05) 100%);
  border: 2px solid #4CAF50;
}

.result-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.result-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.result-value-large {
  font-size: 2rem;
  font-weight: 700;
  color: #4CAF50;
  margin-bottom: 0.5rem;
}

.result-sublabel {
  font-size: 0.85rem;
  color: #999;
}

.results-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.results-subtitle svg {
  color: #4CAF50;
}

.disclaimer {
  margin-top: 2rem;
  padding: 1rem;
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  border-radius: 4px;
  display: flex;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #856404;
}

.disclaimer svg {
  flex-shrink: 0;
  color: #ffc107;
  margin-top: 2px;
}

.disclaimer p {
  margin: 0;
  line-height: 1.6;
}

/* Formula Results Grid */
.detailed-results {
  margin-top: 2rem;
}

.formula-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.formula-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.25rem;
  transition: all 0.2s ease;
}

.formula-card:hover {
  border-color: #4CAF50;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

.formula-card.highlighted {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(76, 175, 80, 0.02) 100%);
  border-color: #4CAF50;
}

.formula-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.formula-name {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 0.95rem;
}

.formula-year {
  font-size: 0.75rem;
  color: #999;
  font-weight: 500;
}

.formula-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4CAF50;
  margin-bottom: 0.5rem;
}

.formula-description {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.4;
}

/* Current Weight Comparison Card */
.comparison-card {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(76, 175, 80, 0.02) 100%);
}

.result-value.below {
  color: #FF9800;
}

.result-value.above {
  color: #FF5722;
}

.result-value.ideal {
  color: #4CAF50;
}

/* Recommendations Section */
.recommendations-section {
  margin-top: 2rem;
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.recommendation-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recommendation-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 8px;
  border-left: 4px solid #4CAF50;
  transition: all 0.2s ease;
}

.recommendation-item:hover {
  background: #f5f5f5;
  transform: translateX(4px);
}

.recommendation-item.success {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.05) 100%);
  border-left-color: #4CAF50;
}

.recommendation-item svg {
  flex-shrink: 0;
  color: #4CAF50;
  margin-top: 2px;
}

.recommendation-item div {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #333;
}

.recommendation-item strong {
  color: #1a1a1a;
  font-weight: 600;
}

.recommendation-item a {
  color: #4CAF50;
  text-decoration: none;
  font-weight: 600;
}

.recommendation-item a:hover {
  text-decoration: underline;
}

/* Optional Label */
.optional-label {
  font-size: 0.85rem;
  color: #999;
  font-weight: 400;
}

/* Weight Inputs Container */
.weight-inputs {
  position: relative;
}

/* ============================================
   BMI Calculator Specific Styles
   ============================================ */

/* BMI Score Section */
.bmi-score-section {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem;
  background: #f9f9f9;
  border-radius: 12px;
}

.bmi-score-display {
  margin-bottom: 2rem;
}

.bmi-score-value {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.bmi-score-category {
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Visual BMI Scale */
.bmi-scale {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
}

.bmi-scale-bar {
  display: flex;
  height: 24px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bmi-scale-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.bmi-scale-segment .segment-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.bmi-scale-segment.underweight {
  background: linear-gradient(90deg, #42A5F5, #64B5F6);
}

.bmi-scale-segment.normal {
  background: linear-gradient(90deg, #4CAF50, #66BB6A);
}

.bmi-scale-segment.overweight {
  background: linear-gradient(90deg, #FF9800, #FFA726);
}

.bmi-scale-segment.obese {
  background: linear-gradient(90deg, #FF5722, #D32F2F);
}

.bmi-scale-marker {
  position: absolute;
  top: -8px;
  transform: translateX(-50%);
  transition: left 0.5s ease;
  display: none;
  z-index: 2;
}

.marker-arrow {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid #1a1a1a;
}

.bmi-scale-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #999;
  font-weight: 600;
}

/* ============================================
   Body Fat Calculator Specific Styles
   ============================================ */

.bodyfat-score-section {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(76, 175, 80, 0.02) 100%);
  border-radius: 12px;
}

.bodyfat-score-display {
  margin-bottom: 1rem;
}

.bodyfat-score-value {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.bodyfat-score-label {
  font-size: 1rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.bodyfat-score-category {
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   Water Intake Calculator Specific Styles
   ============================================ */

.water-score-section {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.05) 0%, rgba(33, 150, 243, 0.02) 100%);
  border-radius: 12px;
}

.water-score-display {
  margin-bottom: 1rem;
}

.water-score-value {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: #2196F3;
}

.water-score-label {
  font-size: 1rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.water-score-sublabel {
  font-size: 1.1rem;
  color: #666;
}

/* ============================================
   Checkbox Styling
   ============================================ */

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.checkbox-label:hover {
  background-color: #f5f5f5;
}

.checkbox-label span {
  flex: 1;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.4;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #4CAF50;
}

/* Responsive Design for Calculators */
@media (max-width: 768px) {
  .formula-results {
    grid-template-columns: 1fr;
  }

  .recommendation-item {
    flex-direction: column;
    gap: 0.75rem;
  }

  .recommendation-item svg {
    margin-top: 0;
  }

  .bmi-score-value {
    font-size: 3rem;
  }

  .bmi-scale-segment .segment-label {
    font-size: 0.55rem;
  }

  .bodyfat-score-value,
  .water-score-value {
    font-size: 3rem;
  }
}
