/* ── dashboard.css ── */

/* Header */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 10px;
}
.dash-title {
  font-size: 18px; font-weight: 700;
  color: var(--text-primary);
}
.dash-subtitle {
  font-size: 13px; color: var(--text-secondary);
  margin-left: 8px;
}

/* Hero Card */
.hero-card {
  margin: 8px 16px 0;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 60%, #5EEAD4 100%);
  border-radius: var(--radius-lg);
  padding: 24px 20px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(27,191,165,0.40);
}
.hero-bg-blob {
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  top: -60px; right: -40px;
  pointer-events: none;
}
.hero-bg-blob::after {
  content: '';
  position: absolute;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  bottom: -120px; left: -80px;
}

.hero-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
}
.hero-weight-block {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.hero-weight-num {
  font-family: var(--font-num);
  font-size: 64px; font-weight: 900;
  color: #fff;
  line-height: 1;
}
.hero-weight-unit { font-size: 18px; color: rgba(255,255,255,0.85); font-weight: 600; }

.hero-target-badge {
  background: rgba(255,255,255,0.22);
  border-radius: 12px;
  padding: 8px 14px;
  display: flex; flex-direction: column; align-items: flex-end;
  backdrop-filter: blur(4px);
}
.hero-target-num { font-family: var(--font-num); font-size: 20px; font-weight: 800; color: #fff; }
.hero-target-label { font-size: 11px; color: rgba(255,255,255,0.80); margin-top: 2px; }

.hero-stats {
  display: flex;
  background: rgba(255,255,255,0.18);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  backdrop-filter: blur(4px);
}
.hero-stat-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.hero-stat-label { font-size: 11px; color: rgba(255,255,255,0.75); }
.hero-stat-val { font-family: var(--font-num); font-size: 18px; font-weight: 800; color: #fff; }
.hero-stat-val.neg { color: #fff; }
.hero-stat-divider { width: 1px; background: rgba(255,255,255,0.25); margin: 0 4px; }

.hero-target-badge { cursor: pointer; transition: transform .15s; }
.hero-target-badge:active { transform: scale(.95); }

/* Progress bar */
.hero-progress-wrap {
  margin-bottom: 16px;
}
.hero-progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 11px;
  color: rgba(255,255,255,0.80);
  font-family: var(--font-num);
}
.hero-progress-pct {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}
.hero-progress-track {
  height: 8px;
  background: rgba(255,255,255,0.25);
  border-radius: 99px;
  position: relative;
  overflow: visible;
}
.hero-progress-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: #fff;
  border-radius: 99px;
  transition: width .8s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 0 8px rgba(255,255,255,0.5);
}
.hero-progress-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--teal-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.20);
  transition: left .8s cubic-bezier(.34,1.56,.64,1);
}
.hero-progress-deadline {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255,255,255,0.70);
  text-align: right;
}

/* Goal modal extras */
.goal-section-label {
  font-size: 13px; font-weight: 600;
  color: var(--text-secondary);
  margin: 0 0 10px;
}
.goal-optional { font-weight: 400; color: var(--text-muted); }
.goal-weight-row {
  display: flex; align-items: center;
  justify-content: center; gap: 16px;
  margin-bottom: 20px;
}
.goal-weight-center {
  display: flex; align-items: baseline; gap: 4px;
}
.goal-date-row {
  display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap;
}
.goal-date-btn {
  flex: 1;
  padding: 9px 4px;
  border-radius: 20px;
  border: 2px solid var(--teal-bg);
  background: var(--teal-bg);
  color: var(--text-secondary);
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.goal-date-btn.active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
  box-shadow: 0 3px 10px rgba(27,191,165,0.35);
}
.goal-date-input {
  width: 100%; padding: 10px 14px;
  border: 2px solid var(--teal-bg);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text-primary);
  outline: none;
  background: var(--teal-bg);
  margin-bottom: 16px;
  transition: border-color .15s;
}
.goal-date-input:focus { border-color: var(--teal); }
.goal-preview {
  background: var(--teal-bg);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--teal-dark);
  line-height: 1.7;
  min-height: 48px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-weight: 500;
}

/* Profile goal summary chip */
.profile-goal-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--teal-dark);
  background: var(--teal-bg);
  border-radius: 20px;
  padding: 3px 10px;
  font-weight: 600;
}
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 8px;
}
.section-title { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.section-more { background: none; border: none; cursor: pointer; font-size: 13px; color: var(--teal); font-family: var(--font-body); }

/* Log List */
.log-list { display: flex; flex-direction: column; gap: 10px; padding: 0 16px; }

.log-item {
  background: var(--card);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  padding: 14px 16px;
  gap: 14px;
  box-shadow: var(--card-shadow);
  animation: slideUp .3s ease both;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.log-weather {
  font-size: 22px;
  width: 32px; text-align: center;
}
.log-time-block { display: flex; flex-direction: column; min-width: 56px; }
.log-date { font-size: 11px; color: var(--text-muted); }
.log-time { font-size: 12px; color: var(--text-secondary); }

.log-weight-block { flex: 1; }
.log-weight { font-family: var(--font-num); font-size: 22px; font-weight: 800; color: var(--text-primary); }
.log-unit { font-size: 13px; color: var(--text-secondary); }

.log-change {
  display: flex; align-items: center; gap: 4px;
  font-family: var(--font-num); font-size: 15px; font-weight: 700;
}
.log-change.up { color: var(--red); }
.log-change.down { color: var(--teal-dark); }
.log-change-label { font-size: 11px; color: var(--text-muted); font-family: var(--font-body); font-weight: 400; }

.log-thumb {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--teal-bg);
  overflow: hidden;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
