/* Dark Mode Base */
:root {
  --bg: #1e1e1e;
  --card: #2a2a2a;
  --text: #e2e2e2;
  --accent: #10a37f;
  --accent-hover: #0e8f6c;
  --font: 'Segoe UI', Roboto, sans-serif;
}

* {
  margin: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: start;
  padding: 2rem;
}

.container {
  max-width: 600px;
  margin: 2rem auto;
  background: var(--card);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  color: var(--text);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.main {
  width: 100%;
  max-width: 1400px;
  padding: 0 2rem;
}

header {
  text-align: center;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-container {
  margin-bottom: 1.5rem;
}

.logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

header h1 {
  font-size: 3rem;
  color: var(--accent);
}

.tagline {
  font-size: 1.25rem;
  color: #ccc;
  margin-top: 0.5rem;
}

.tool-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

.tool-card {
  background-color: var(--card);
  padding: 2rem;
  border-radius: 15px;
  text-decoration: none;
  color: var(--text);
  font-weight: bold;
  transition: all 0.3s ease;
  border: 1px solid #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 280px;
  justify-content: flex-start;
  gap: 1rem;
}

.card-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(0.4) sepia(0) saturate(0) hue-rotate(0deg);
  transition: all 0.3s ease;
}

.tool-card:hover .card-icon img {
  filter: invert(0.6) sepia(0) saturate(0) hue-rotate(0deg);
}

.tool-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.tool-card p {
  font-size: 1.1rem;
  color: #ccc;
  font-weight: normal;
  line-height: 1.4;
}

.tool-card:hover {
  background-color: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.tool-card:hover h2 {
  color: white;
}

.tool-card:hover p {
  color: rgba(255, 255, 255, 0.9);
}

footer {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.9rem;
  color: #777;
}

/* BMI Calculator styles */

.breadcrumb {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
}

input,
select {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  margin-top: 0.3rem;
  border-radius: 6px;
  border: 1px solid #444;
  background: var(--bg);
  color: var(--text);
}

.btn {
  margin-top: 1.5rem;
  padding: 0.8rem 1.2rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn:hover {
  background-color: var(--accent-hover);
}

.results {
  margin-top: 2rem;
  background: #222;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  line-height: 1.5;
  font-size: 1rem;
}

.hidden {
  display: none;
}

/* Remove BMI scroller styles */
.bmi-bar,
.bmi-marker,
.bmi-labels {
  display: none;
}

.info-section {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #ccc;
  background: #111;
  padding: 1rem;
  border-radius: 10px;
}

.chart-container {
  width: 100%;
  height: 300px;
  margin: 2rem 0;
  padding: 1rem;
  background: #222;
  border-radius: 10px;
}

.bmi-categories-chart {
  margin: 2rem 0;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.bmi-categories-chart h3 {
  margin-bottom: 1rem;
  color: #333;
}

.bmi-categories {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bmi-categories .category {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  color: white;
  font-weight: 500;
}

.bmi-categories .category .range {
  flex: 1;
}

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

/* BMI Category Colors */
.severe-thinness {
  background-color: #ff4d4d;
}

.moderate-thinness {
  background-color: #ff8080;
}

.mild-thinness {
  background-color: #ffb366;
}

.normal {
  background-color: #4CAF50;
}

.overweight {
  background-color: #ffb366;
}

.obese-1 {
  background-color: #ff8080;
}

.obese-2 {
  background-color: #ff4d4d;
}

.obese-3 {
  background-color: #cc0000;
}

/* Body Fat Category Colors */
.essential-fat {
  background-color: #4CAF50;
}

.athletic {
  background-color: #2196F3;
}

.fitness {
  background-color: #9C27B0;
}

.average {
  background-color: #FF9800;
}

.obese {
  background-color: #f44336;
}

/* Macro Bar Visualization */
.macro-bar-container {
  margin: 2rem 0;
}

.macro-bar {
  height: 30px;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
}

.macro-section {
  height: 100%;
  transition: width 0.3s ease;
}

.macro-section.protein {
  background-color: #4CAF50;
}

.macro-section.fats {
  background-color: #FFC107;
}

.macro-section.carbs {
  background-color: #2196F3;
}

.macro-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.legend-color.protein {
  background-color: #4CAF50;
}

.legend-color.fats {
  background-color: #FFC107;
}

.legend-color.carbs {
  background-color: #2196F3;
}

