@import './default.css';

.dashboard {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.dashboard__heading {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--textMuted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 var(--space-3);
}

.dashboard__section {}

.dashboard__track {
  display: flex;
}

.dashboard__empty {
  color: var(--textMuted);
  font-size: var(--text-sm);
}

/* ── Stat cards ───────────────────────────────────────────────────────────── */

.dashboard__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

@media (max-width: 480px) {
  .dashboard__stats {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-5) var(--space-6);
  background: var(--bgSurface);
  border: 1px solid var(--borderColor);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.stat-card__label {
  font-size: var(--text-sm);
  color: var(--textMuted);
}

.stat-card__value {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--textColor);
}

/* ── Workday health ───────────────────────────────────────────────────────── */

.dashboard__health {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.health-day {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--borderColor);
  background: var(--bgColor);
  text-decoration: none;
  color: var(--textColor);
  transition: background 0.1s;
}

.health-day:hover {
  background: var(--bgSurfaceHover);
}

.health-day__date {
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  flex: 1;
}

.health-day__time {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--textMuted);
  min-width: 4rem;
  text-align: right;
}

.health-day__badge {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  background: var(--accentBg);
  color: var(--accentText);
}

/* ── Upcoming time off ────────────────────────────────────────────────────── */

.dashboard__subheading {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--textColor);
  margin: var(--space-4) 0 var(--space-2);
}

.dashboard__hint {
  font-size: var(--text-sm);
  color: var(--textMuted);
  margin: 0 0 var(--space-3);
}

.dashboard__timeoff {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.timeoff-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--borderColor);
  background: var(--bgSurface);
}

.timeoff-row__type {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--textColor);
  min-width: 7rem;
}

.timeoff-row__dates {
  font-size: var(--text-sm);
  color: var(--textMuted);
  flex: 1;
}

.timeoff-row__duration {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--textMuted);
}

/* ── Budget rows ──────────────────────────────────────────────────────────── */

.dashboard__budgets {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.budget-row {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--borderColor);
  background: var(--bgColor);
}

.budget-row__info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-2);
}

.budget-row__project {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--textColor);
}

.budget-row__pct {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--textColor);
}

.budget-row__bar-track {
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--bgSurfaceHover);
  overflow: hidden;
}

.budget-row__bar {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--accentColor);
  transition: width 0.3s ease;
}
