/* Reception — dashboard layout & shared admin components. Depends on tokens + base. */

.layout { display: flex; min-height: 100vh; }

/* ---------- sidebar ---------- */
.sidebar {
  width: 236px; flex: none; display: flex; flex-direction: column;
  background: var(--surface); border-right: 1px solid var(--border);
  position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 60;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 20px 20px 16px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--accent-grad);
  color: #fff; display: flex; align-items: center; justify-content: center; flex: none;
}
.brand-name { font-weight: 750; font-size: 16.5px; letter-spacing: -0.02em; }
.nav { display: flex; flex-direction: column; gap: 2px; padding: 6px 12px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px;
  border-radius: var(--r-md); color: var(--text-2); font-weight: 550; font-size: 13.8px;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-item:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-item.active { background: var(--accent-soft); color: var(--accent); }
.nav-ic { line-height: 0; opacity: 0.85; }
.sidebar-foot { padding: 10px 12px 16px; border-top: 1px solid var(--border); }
.mode-pill {
  margin: 10px 12px 0; padding: 5px 10px; text-align: center;
  border-radius: var(--r-full); background: var(--warning-soft); color: var(--warning);
  font-size: 10.5px; font-weight: 750; letter-spacing: 0.08em;
}

/* ---------- main column & topbar ---------- */
.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 14px; padding: 12px 24px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.topbar-title { font-size: 17px; margin: 0; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.topbar-btn { position: relative; color: var(--text-2); }
.hamburger { display: none; }
.bell-badge {
  position: absolute; top: 3px; right: 3px; min-width: 15px; height: 15px;
  border-radius: 8px; background: var(--danger); color: #fff;
  font-size: 9.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.user-btn { border: 0; cursor: pointer; }

/* ---------- global search ---------- */
.gsearch { position: relative; flex: 1; max-width: 430px; }
.gsearch-ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); line-height: 0; }
.gsearch input { padding-left: 36px; background: var(--surface); border-radius: var(--r-full); }
.gsearch-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 130;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); max-height: 420px; overflow-y: auto; padding: 6px;
}
.gsearch-group {
  padding: 8px 12px 4px; font-size: 10.5px; font-weight: 750;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint);
}
.gsearch-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  border-radius: var(--r-sm); color: var(--text-2); font-size: 13.5px;
}
.gsearch-item:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }

/* ---------- notification dropdown ---------- */
.notif-menu { width: 340px; max-height: 440px; overflow-y: auto; }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 11px 6px; }
.notif-item { padding: 9px 11px; border-radius: var(--r-sm); }
.notif-item.unread { background: var(--accent-softer); }
.notif-item + .notif-item { margin-top: 2px; }
.notif-title { font-weight: 600; font-size: 13px; }
.notif-body { color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.notif-time { color: var(--faint); font-size: 11px; margin-top: 3px; }
.user-meta { padding: 9px 12px 7px; }

/* ---------- page scaffolding ---------- */
.page { padding: 26px 28px 60px; max-width: 1240px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h2 { margin: 0; font-size: 21px; }
.page-head .sub { color: var(--muted); font-size: 13px; width: 100%; margin-top: -6px; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar input[type="search"] { max-width: 260px; }
.toolbar select { width: auto; }

/* ---------- stat cards ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.stat-card .stat-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 650; color: var(--muted); }
.stat-card .stat-value { font-size: 25px; font-weight: 750; letter-spacing: -0.02em; margin-top: 6px; }
.stat-card .stat-sub { font-size: 12px; color: var(--faint); margin-top: 2px; }
.stat-card .up { color: var(--success); }
.stat-card .down { color: var(--danger); }

/* ---------- misc shared ---------- */
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 12px; }
.section-title h3 { margin: 0; }
.color-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.appt-line { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--border); }
.appt-line:last-child { border-bottom: 0; }
.appt-time { font-weight: 700; font-size: 13px; min-width: 74px; }
.rating-stars { color: #f59e0b; letter-spacing: 1px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-105%);
    transition: transform var(--t-med); box-shadow: var(--shadow-lg);
  }
  .layout.nav-open .sidebar { transform: none; }
  .hamburger { display: inline-flex; }
  .topbar { padding: 10px 14px; }
  .topbar-title { display: none; }
  .page { padding: 18px 14px 60px; }
}
@media (max-width: 640px) {
  .gsearch input { font-size: 13px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media print {
  .sidebar, .topbar { display: none !important; }
  .page { padding: 0; max-width: none; }
}
