/* ================================================
   Self-Help App — Custom Design Tokens & Styles
   Loaded after Bootstrap to override defaults.
   ================================================ */

/* Design tokens */
:root {
  --sh-intake-color:   #0d6efd;  /* blue   — intake */
  --sh-exp-color:      #fd7e14;  /* orange — expenditure */
  --sh-weight-color:   #6c757d;  /* grey   — weight */
  --sh-trend-color:    #6f42c1;  /* purple — trend */
  --sh-section-gap:    1.5rem;
  --sh-card-gap:       1rem;
}

/* Off-white page background so cards pop */
body {
  background-color: #f0f2f5;
}

/* Subtle elevation on every card */
.card {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.10);
}

/* ================================================
   Bottom navigation (mobile only, < md)
   ================================================ */
.sh-bottom-nav {
  background-color: #212529;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: env(safe-area-inset-bottom, 0); /* iOS notch */
}

.sh-bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 0.5rem 0;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.7rem;
  line-height: 1.2;
  transition: color 0.15s ease;
}

.sh-bottom-nav__item i {
  font-size: 1.35rem;
  display: block;
  margin-bottom: 0.15rem;
}

.sh-bottom-nav__item.active,
.sh-bottom-nav__item:hover {
  color: #fff;
}

.sh-bottom-nav__item.active i {
  color: var(--sh-intake-color);
}

/* Extra bottom padding on mobile so content doesn't hide behind the bar */
@media (max-width: 767.98px) {
  .pb-bottom-nav {
    padding-bottom: 5rem !important;
  }
}

/* ================================================
   Meal picker cards
   ================================================ */
.sh-picker-card {
  transition: box-shadow .15s, transform .1s;
  cursor: pointer;
}
.sh-picker-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  transform: translateY(-2px);
}
