/* ===== WEIGHT TRACKER ===== */
.weight-page {
  padding: 1rem 1rem 2rem;
}

.weight-page .section-header {
  margin-bottom: 1rem;
}

.weight-page .section-header h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--bark);
}

.weight-card {
  background: var(--warm-white);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--mist);
}

/* Input */
.weight-input-card {
  text-align: center;
}

.weight-label {
  font-size: 0.75rem;
  color: var(--bark-light);
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.weight-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.weight-step-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--mist);
  background: var(--cream);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bark);
  transition: border-color 0.15s;
}

.weight-step-btn:active {
  border-color: var(--sage);
  background: var(--sage-muted);
}

.weight-diff-input {
  width: 100px;
  font-family: var(--font-body);
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  background: transparent;
  border: none;
  outline: none;
  color: var(--bark);
  -moz-appearance: textfield;
}

.weight-diff-input::-webkit-outer-spin-button,
.weight-diff-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.weight-log-btn {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 100px;
  border: none;
  background: var(--bark);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.weight-log-btn:active {
  opacity: 0.85;
}

.weight-already {
  font-size: 0.7rem;
  color: var(--bark-light);
  margin-top: 0.5rem;
}

/* Chart */
.weight-chart-empty {
  text-align: center;
  padding: 2rem 1rem;
}

.weight-chart-empty p {
  font-size: 0.85rem;
  color: var(--bark-light);
}

.weight-trend-wrap {
  display: flex;
  justify-content: center;
  padding-top: 0.4rem;
}

.weight-trend-toggle {
  font-family: var(--font-body);
  font-size: 0.7rem;
  padding: 0.25rem 0.75rem;
  border-radius: 8px;
  border: 1.5px solid var(--mist);
  background: var(--cream);
  color: var(--bark-light);
  cursor: pointer;
  transition: all 0.15s;
}

.weight-trend-toggle.active {
  border-color: var(--sage);
  background: var(--sage-muted);
  color: var(--sage);
}

/* Stats */
.weight-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  text-align: center;
}

.weight-stat-value {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 700;
  display: block;
  color: var(--bark);
}

.weight-stat-label {
  font-size: 0.65rem;
  color: var(--bark-light);
  margin-top: 0.15rem;
  display: block;
}

/* History */
.weight-history {
  padding: 0;
  overflow: hidden;
}

.weight-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
}

.weight-border {
  border-top: 1px solid var(--mist);
}

.weight-date {
  font-size: 0.8rem;
  color: var(--bark);
}

.weight-row-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.weight-diff {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
}

.weight-delete-btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid var(--mist);
  background: var(--cream);
  font-size: 0.65rem;
  color: var(--bark-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.weight-delete-btn:active {
  background: var(--blush);
  border-color: var(--terracotta-light);
}

.weight-show-toggle {
  width: 100%;
  padding: 0.7rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--sage);
  background: none;
  border: none;
  border-top: 1px solid var(--mist);
  cursor: pointer;
}
