/*calorie-calculator.css */

.body-visualization-container {
  height: 350px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.stat-item {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #e9ecef;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0d6efd;
  margin-bottom: 5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.stat-label {
  font-size: 0.85rem;
  color: #6c757d;
  font-weight: 500;
}

.tips-list {
  font-size: 0.9rem;
  padding-left: 20px;
  margin-bottom: 0;
}

.tips-list li {
  margin-bottom: 10px;
  color: #495057;
  line-height: 1.4;
}

.chart-container {
  height: 250px;
  position: relative;
}

.health-tips {
  background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
  border-radius: 8px;
  padding: 15px;
  border-left: 4px solid #28a745;
}

/* BMI indicator styles */
.bmi-indicator {
  height: 20px;
  background: linear-gradient(90deg, #dc3545 0%, #fd7e14 20%, #ffc107 40%, #28a745 60%, #dc3545 100%);
  border-radius: 10px;
  position: relative;
  margin: 15px 0;
}

.bmi-marker {
  position: absolute;
  top: -5px;
  width: 4px;
  height: 30px;
  background: #000;
  transform: translateX(-50%);
}

.bmi-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #6c757d;
}

/* Zigzag calendar */
.zigzag-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin: 15px 0;
}

.day-card {
  background: white;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.day-card.high {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border-left: 4px solid #28a745;
}

.day-card.low {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  border-left: 4px solid #dc3545;
}

.day-name {
  font-weight: bold;
  margin-bottom: 5px;
}

.day-calories {
  font-size: 1.2rem;
  font-weight: bold;
}

/* Meal plan styles */
.meal-time {
  font-weight: bold;
  color: #495057;
}

.meal-foods {
  font-size: 0.9rem;
  color: #6c757d;
}

/* Responsive design */
@media (max-width: 768px) {
  .chart-container {
    height: 200px;
  }
  
  .body-visualization-container {
    height: 250px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .stat-value {
    font-size: 1.2rem;
  }
  
  .zigzag-calendar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .body-visualization-container {
    height: 200px;
  }
  
  .btn-group .btn {
    font-size: 0.8rem;
    padding: 0.375rem 0.5rem;
  }
  
  .zigzag-calendar {
    grid-template-columns: 1fr;
  }
}

/* 3D body visualization controls */
.body-3d-controls {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

.control-button {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(5px);
}

.control-button:hover {
  background: rgba(13, 110, 253, 0.9);
  color: white;
  transform: translateX(2px);
}

.control-button.active {
  background: #0d6efd;
  color: white;
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

/* Nutrition color coding */
.nutrition-protein { color: #dc3545; }
.nutrition-fat { color: #fd7e14; }
.nutrition-carbs { color: #28a745; }

/* BMI category colors */
.bmi-underweight { color: #dc3545; }
.bmi-normal { color: #28a745; }
.bmi-overweight { color: #ffc107; }
.bmi-obese { color: #dc3545; }

/* Animation for macro elements */
@keyframes macroPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.macro-pulse {
  animation: macroPulse 2s infinite;
}