/* ============================================
   GRIND & GLOW — Dashboard Styles
   ============================================ */

.dashboard-layout {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* ---- GREETING ---- */
.dash-greeting {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.dash-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--text-primary);
}

.dash-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.dash-quote {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-style: italic;
  max-width: 320px;
  line-height: 1.6;
}

/* ---- MOOD CARD ---- */
.mood-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.mood-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

/* Wrapper that stacks the button and its label */
.mood-btn-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.mood-btn-wrapper .mood-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.mood-btn {
  font-size: 2rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  width: 68px;
  height: 68px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.mood-btn:hover {
  transform: scale(1.12);
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: var(--shadow-sm);
}
.mood-btn.selected {
  border-color: var(--accent-dark);
  background: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(255, 123, 172, 0.25);
  transform: scale(1.1);
}
.mood-btn .mood-label {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-family: var(--font-body);
  color: var(--text-muted);
  white-space: nowrap;
}

.mood-selected {
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 1.5rem;
}

/* ---- STATS ROW ---- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  transition: var(--transition);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--accent-dark);
  font-weight: 700;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-weight: 500;
}

/* ---- PROGRESS BAR ---- */
.progress-bar-wrapper {
  margin-top: 0.75rem;
}
.progress-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.progress-bar-bg {
  background: var(--bg-alt);
  border-radius: 50px;
  height: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.progress-bar-fill {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--pink-300), var(--accent-dark));
  transition: width 0.6s ease;
  min-width: 0%;
}

/* ---- MOOD HISTORY ---- */
.mood-history-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.mood-history-grid {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.mood-history-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.7rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.mood-history-item .emoji { font-size: 1.4rem; }

.empty-state {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 1.5rem;
  font-style: italic;
}

/* ---- HABIT QUICK VIEW on DASHBOARD ---- */
.quick-habits {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.quick-habits-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.quick-habit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem;
  transition: var(--transition);
}
.quick-habit-item.done {
  background: var(--accent-light);
  border-color: var(--pink-200);
}

.quick-habit-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: var(--transition);
}
.quick-habit-item.done .quick-habit-check {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: white;
}

.quick-habit-name {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 500;
}
.quick-habit-item.done .quick-habit-name {
  text-decoration: line-through;
  color: var(--text-muted);
}

.quick-habit-streak {
  font-size: 0.8rem;
  color: var(--accent-dark);
  font-weight: 600;
  background: var(--accent-light);
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 700px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .dash-greeting { flex-direction: column; }
  .dash-quote { max-width: 100%; }
}
