/* ── Consulthero Dashboard ─────────────────────────────────────────────── */

.ch-dash-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
  background: var(--cream-50);
}

/* Sidebar */
.ch-dash-sidebar {
  background: var(--paper);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.ch-dash-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
}
.ch-dash-nav-link:hover { background: var(--cream-100); color: var(--ink); }
.ch-dash-nav-link.active { background: var(--blue-50, #eff6ff); color: var(--navy); font-weight: 600; }

/* Main */
.ch-dash-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.ch-dash-topbar {
  padding: 20px 32px 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  margin-bottom: 28px;
}

.ch-dash-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 16px;
}

.ch-dash-content {
  padding: 0 32px 48px;
  flex: 1;
}

/* Empty state */
.ch-dash-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 32px;
  color: var(--ink-2);
  gap: 12px;
}
.ch-dash-empty h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}
.ch-dash-empty p {
  font-size: 15px;
  color: var(--ink-2);
  max-width: 380px;
  line-height: 1.6;
  margin: 0;
}

/* ── Responsive: collapse sidebar on narrow screens ──────────────────── */
@media (max-width: 768px) {
  .ch-dash-layout {
    grid-template-columns: 1fr;
  }
  .ch-dash-sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
  }
  .ch-dash-sidebar > div:first-child {
    padding: 0;
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .ch-dash-sidebar > div:last-child {
    padding: 0;
    border: none;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .ch-dash-topbar { padding: 16px 16px 0; }
  .ch-dash-content { padding: 0 16px 32px; }
  .ch-dash-title { font-size: 20px; }
}
