/* health-tracker.css - Health Tracking Styles */

/* ============================================
   HEALTH TRACKER CONTAINER
   ============================================ */

.health-tracker-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: #f8f9fa;
  min-height: 100vh;
}

.health-tracker-header {
  background: linear-gradient(135deg, #283655 0%, #1e2a43 100%);
  color: white;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(40, 54, 85, 0.2);
}

.health-tracker-header h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 15px;
}

.health-tracker-header p {
  margin: 10px 0 0 0;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ============================================
   HEALTH STATS GRID
   ============================================ */

.health-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.health-stat-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #283655;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.health-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #283655, #1e2a43);
}

.health-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.health-stat-card.weight {
  border-left-color: #DFA774;
}

.health-stat-card.weight::before {
  background: linear-gradient(90deg, #DFA774, #d4955f);
}

.health-stat-card.calories {
  border-left-color: #ff9800;
}

.health-stat-card.calories::before {
  background: linear-gradient(90deg, #ff9800, #f57c00);
}

.health-stat-card.water {
  border-left-color: #00bcd4;
}

.health-stat-card.water::before {
  background: linear-gradient(90deg, #00bcd4, #0097a7);
}

.health-stat-card.exercise {
  border-left-color: #9c27b0;
}

.health-stat-card.exercise::before {
  background: linear-gradient(90deg, #9c27b0, #7b1fa2);
}

.stat-icon {
  font-size: 2.5rem;
  color: #283655;
  margin-bottom: 15px;
  display: block;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #283655;
  margin: 0;
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  color: #666;
  margin: 5px 0 0 0;
  font-weight: 500;
}

.stat-change {
  font-size: 0.9rem;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.stat-change.positive {
  color: #28a745;
}

.stat-change.negative {
  color: #f44336;
}

.stat-change.neutral {
  color: #666;
}

/* ============================================
   HEALTH SECTIONS
   ============================================ */

.health-section {
  background: white;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.health-section h2 {
  margin: 0 0 20px 0;
  color: #283655;
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.health-section h2::before {
  content: '';
  width: 4px;
  height: 24px;
  background: #283655;
  border-radius: 2px;
}

/* ============================================
   WEIGHT TRACKING
   ============================================ */

.weight-chart {
  height: 300px;
  background: #f8f9fa;
  border-radius: 8px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 1.1rem;
}

.weight-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 15px;
  align-items: end;
  margin-top: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;
  color: #283655;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input {
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #283655;
  box-shadow: 0 0 0 3px rgba(40, 54, 85, 0.1);
}

.btn-add {
  background: #283655;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-add:hover {
  background: #1e2a43;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 54, 85, 0.3);
}

/* ============================================
   CALORIE TRACKING
   ============================================ */

.calorie-goal {
  background: linear-gradient(135deg, #fff3e0 0%, #ffcc02 100%);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #ff9800;
}

.calorie-progress {
  background: #e9ecef;
  height: 20px;
  border-radius: 10px;
  overflow: hidden;
  margin: 15px 0;
}

.calorie-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff9800, #f57c00);
  transition: width 0.3s ease;
  position: relative;
}

.calorie-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.calorie-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.calorie-stat {
  text-align: center;
  padding: 15px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.calorie-stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #283655;
  margin: 0;
}

.calorie-stat-label {
  font-size: 0.85rem;
  color: #666;
  margin: 5px 0 0 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   WATER TRACKING
   ============================================ */

.water-tracker {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
}

.water-glasses {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.water-glass {
  width: 40px;
  height: 50px;
  border: 3px solid #e9ecef;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background: white;
}

.water-glass.filled {
  background: linear-gradient(to top, #00bcd4, #4dd0e1);
  border-color: #00bcd4;
  transform: scale(1.05);
}

.water-glass.filled::after {
  content: '💧';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
}

.water-glass:hover {
  border-color: #00bcd4;
  transform: scale(1.1);
}

.water-stats {
  flex: 1;
  text-align: center;
}

.water-amount {
  font-size: 2rem;
  font-weight: 700;
  color: #00bcd4;
  margin: 0;
}

.water-goal {
  color: #666;
  margin: 5px 0 0 0;
}

/* ============================================
   EXERCISE TRACKING
   ============================================ */

.exercise-list {
  margin-top: 20px;
}

.exercise-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.exercise-item:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

.exercise-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.exercise-icon {
  font-size: 1.5rem;
  color: #9c27b0;
}

.exercise-details h4 {
  margin: 0;
  color: #283655;
  font-size: 1rem;
}

.exercise-details p {
  margin: 2px 0 0 0;
  color: #666;
  font-size: 0.85rem;
}

.exercise-duration {
  font-weight: 600;
  color: #9c27b0;
}

/* ============================================
   HEALTH GOALS
   ============================================ */

.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.goal-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #283655;
  transition: transform 0.3s ease;
}

.goal-card:hover {
  transform: translateY(-2px);
}

.goal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.goal-title {
  margin: 0;
  color: #283655;
  font-size: 1.1rem;
  font-weight: 600;
}

.goal-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.goal-status.active {
  background: #ebeef3;
  color: #283655;
}

.goal-status.completed {
  background: #f0ebe3;
  color: #DFA774;
}

.goal-progress {
  background: #e9ecef;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin: 10px 0;
}

.goal-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #283655, #1e2a43);
  transition: width 0.3s ease;
}

.goal-description {
  color: #666;
  font-size: 0.9rem;
  margin: 10px 0 0 0;
}

/* ============================================
   HEALTH INSIGHTS
   ============================================ */

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

.insight-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.insight-card:hover {
  transform: translateY(-2px);
}

.insight-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.insight-title {
  margin: 0 0 10px 0;
  color: #283655;
  font-size: 1rem;
  font-weight: 600;
}

.insight-description {
  color: #666;
  font-size: 0.85rem;
  margin: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .health-tracker-container {
    padding: 15px;
  }

  .health-tracker-header {
    padding: 20px;
  }

  .health-tracker-header h1 {
    font-size: 2rem;
  }

  .health-stats {
    grid-template-columns: 1fr;
  }

  .health-section {
    padding: 20px;
  }

  .weight-form {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .water-tracker {
    flex-direction: column;
    text-align: center;
  }

  .water-glasses {
    justify-content: center;
  }

  .exercise-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .goals-grid {
    grid-template-columns: 1fr;
  }

  .insights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .health-tracker-header h1 {
    font-size: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .water-glass {
    width: 35px;
    height: 45px;
  }

  .exercise-item {
    padding: 10px;
  }
}



