/* Calorie Counter Styles */
.calorie-counter {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--nav-bg);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

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

.section-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin: 0;
}

.date-picker {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.date-nav {
  background: transparent;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.date-nav:hover {
  background: rgba(67, 97, 238, 0.1);
  color: var(--primary-color);
}

.current-date {
  font-weight: 500;
}

.calorie-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 2rem;
}

.progress-circle {
  position: relative;
  width: 200px;
  height: 200px;
}

.progress-ring circle {
  transform: rotate(-90deg);
  transition: stroke-dashoffset 0.5s ease;
}

.progress-ring-bg {
  stroke: rgba(67, 97, 238, 0.1);
}

.progress-ring-fill {
  stroke: var(--primary-color);
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.calories-consumed {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.calories-total {
  font-size: 1rem;
  opacity: 0.8;
}

.progress-legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.macro-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.macro-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.macro-dot.protein {
  background: #4361ee;
}

.macro-dot.carbs {
  background: #4cc9f0;
}

.macro-dot.fats {
  background: #f72585;
}

.meal-sections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.meal-card {
  background: var(--bg-color);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.meal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.meal-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.meal-calories {
  font-weight: 600;
  color: var(--primary-color);
}

.food-items {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.food-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  border-radius: 8px;
  background: rgba(67, 97, 238, 0.03);
  transition: all 0.2s ease;
}

.food-item:hover {
  background: rgba(67, 97, 238, 0.08);
}

.food-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.food-name {
  font-weight: 500;
}

.food-macros {
  font-size: 0.8rem;
  opacity: 0.7;
}

.food-calories {
  font-weight: 600;
}

.add-food-btn {
  width: 100%;
  padding: 0.75rem;
  background: transparent;
  border: 1px dashed #ddd;
  border-radius: 8px;
  color: var(--primary-color);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.add-food-btn:hover {
  background: rgba(67, 97, 238, 0.05);
  border-color: var(--primary-color);
}

.quick-add {
  display: flex;
  justify-content: center;
}

.quick-add-btn {
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quick-add-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

#food{
  background-color: transparent;
  border: 0px solid black;
  height: 20px;
  width: 100%;
  color: white;
}
#grams{
  background-color: transparent;
  border: 0px solid black;
  height: 20px;
  width: 100%;
  color: white;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .calorie-progress {
    flex-direction: column;
    align-items: center;
  }
  
  .progress-legend {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .counter-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}