/* ============================================
   WHITE OAK MEDIA — Client Portal Styles
   03-layout.css — Login, topnav, topbar, sidebar, notification panel, page header, responsive, scrollbar
   ============================================ */

/* ---------- Login ---------- */
.login-container {
  display: flex; min-height: 100vh;
}
.login-left {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--color-navy);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
/* Removed: radial gradient anti-pattern per WOM design system */
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 1rem; z-index: 1; }
.login-tree { width: 120px; height: 120px; object-fit: contain; filter: brightness(0) invert(0.96); }
.login-brand h1 { font-family: var(--font-display); color: var(--color-cream); font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; }
.login-tagline {
  text-align: center; color: rgba(242,241,236,0.6);
  font-size: 1rem; line-height: 1.6; margin-top: 1.5rem; z-index: 1;
}
.login-right {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 3rem; background: var(--color-cream);
}
.login-card {
  width: 100%; max-width: 420px;
  background: var(--color-white); border-radius: var(--radius-lg);
  padding: 2.5rem; box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-light);
}
.login-card-header { margin-bottom: 1.75rem; }
.login-card-header h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: var(--color-navy); margin-top: 0.5rem; letter-spacing: -0.025em; }
.login-divider {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.25rem 0; color: var(--color-text-muted); font-size: 0.8rem;
}
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--color-border); }
.login-demo-info {
  margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--color-border);
}
.login-demo-info p { font-size: 0.8rem; color: var(--color-text-secondary); margin-top: 0.375rem; }

/* ---------- Top Nav ---------- */
/* ---------- Top Bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; height: 56px;
  /* Respect notch/Dynamic Island safe area */
  padding-top: env(safe-area-inset-top, 0px);
  height: calc(56px + env(safe-area-inset-top, 0px));
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: fixed; top: 0; left: 0; right: 0; z-index: 110;
}
.topbar-left { display: flex; align-items: center; gap: 0.75rem; }
.topbar-right { display: flex; align-items: center; gap: 0.75rem; }
.nav-logo { height: 30px; width: auto; object-fit: contain; }
.sidebar-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-md);
  border: none; background: none; color: var(--color-text-secondary);
  cursor: pointer; transition: all var(--transition);
}
.sidebar-toggle:hover { background: var(--color-cream); color: var(--color-text); }

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed; top: 56px; left: 0; bottom: 0;
  width: 220px; background: var(--color-white);
  border-right: 1px solid var(--color-border);
  z-index: 105; overflow-y: auto; overflow-x: hidden;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
}
.sidebar-nav { display: flex; flex-direction: column; padding: 0.75rem 0.5rem; gap: 0.15rem; flex: 1; }
.sidebar-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.3);
  z-index: 104; opacity: 0; transition: opacity 0.25s;
}

/* Sidebar nav items */
.nav-tab {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.85rem; border-radius: var(--radius-md);
  font-size: 0.85rem; font-weight: 500; color: var(--color-text-secondary);
  cursor: pointer; transition: all var(--transition);
  border: none; background: none; text-align: left; width: 100%;
  white-space: nowrap; overflow: hidden;
}
.nav-tab svg { flex-shrink: 0; }
.nav-tab span { overflow: hidden; text-overflow: ellipsis; }
.nav-tab:hover { color: var(--color-text); background: var(--color-cream); }
.nav-tab.active { color: var(--color-primary); background: var(--color-primary-light); font-weight: 600; }

/* Collapsed state */
.sidebar.collapsed { width: 56px; }
.sidebar.collapsed .nav-tab span { opacity: 0; width: 0; }
.sidebar.collapsed .nav-tab { justify-content: center; padding: 0.6rem; }

/* Main content offset */
.main-content { margin-left: 220px; margin-top: 56px; transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
.sidebar.collapsed ~ .main-content,
.main-content.sidebar-collapsed { margin-left: 56px; }

/* Legacy compat — keep topnav classes working for old references */
.topnav { display: none; }
.topnav-right { display: flex; align-items: center; gap: 0.75rem; }
.nav-icon-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-md);
  border: none; background: none; color: var(--color-text-secondary);
  cursor: pointer; transition: all var(--transition);
}
.nav-icon-btn:hover { background: var(--color-cream); color: var(--color-text); }
.notification-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--color-primary); color: white;
  font-size: 0.65rem; font-weight: 700; border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
}
.nav-user { display: flex; align-items: center; gap: 0.625rem; padding-left: 0.75rem; border-left: 1px solid var(--color-border); }
.nav-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--color-primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem;
}
.nav-user-details { display: flex; flex-direction: column; }
.nav-user-name { font-size: 0.825rem; font-weight: 600; color: var(--color-text); line-height: 1.2; }
.nav-user-role { font-size: 0.7rem; color: var(--color-text-muted); }

/* ---------- Notification Panel ---------- */
.notification-panel {
  position: fixed; top: 56px; right: 0;
  width: 380px; max-height: calc(100vh - 56px);
  background: var(--color-white);
  border-left: 1px solid var(--color-border);
  box-shadow: var(--shadow-xl);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  z-index: 200; overflow-y: auto;
}
.notification-panel.open { transform: translateX(0); }
.notif-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--color-border);
  position: sticky; top: 0; background: var(--color-white);
}
.notif-panel-header h3 { font-size: 1rem; font-weight: 700; }
.notif-overlay {
  position: fixed; inset: 0; background: rgba(29,36,44,0.2);
  z-index: 199; opacity: 0; pointer-events: none;
  transition: opacity var(--transition-slow);
}
.notif-overlay.open { opacity: 1; pointer-events: all; }
.notif-item {
  display: flex; gap: 0.75rem; padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-border-light);
  cursor: pointer; transition: background var(--transition);
}
.notif-item:hover { background: var(--color-cream); }
.notif-item.unread { background: var(--color-primary-subtle); }
.notif-item.unread:hover { background: var(--color-primary-light); }
.notif-icon {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.85rem;
}
.notif-icon.phase { background: var(--color-info-bg); color: var(--color-info); }
.notif-icon.request { background: var(--color-warning-bg); color: var(--color-warning); }
.notif-icon.update { background: var(--color-success-bg); color: var(--color-success); }
.notif-icon.alert { background: var(--color-danger-bg); color: var(--color-danger); }
.notif-content { flex: 1; min-width: 0; }
.notif-content p { font-size: 0.85rem; color: var(--color-text); line-height: 1.4; }
.notif-content .notif-time { font-size: 0.72rem; color: var(--color-text-muted); margin-top: 0.25rem; }
.notif-empty { padding: 3rem 1.5rem; text-align: center; color: var(--color-text-muted); font-size: 0.9rem; }

/* ---------- Page Header ---------- */
.page-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem;
}
.page-header h1 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; color: var(--color-navy); margin-top: 0.25rem; letter-spacing: -0.025em; }


/* ---------- Responsive + Mobile Nav (Bottom tabs) ---------- */
/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .section-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .project-detail-grid { grid-template-columns: 1fr; }
  .section-grid { grid-template-columns: 1fr; }
  .section-grid-2 { grid-template-columns: 1fr; }
  .section-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .login-container { flex-direction: column; }
  .login-left { min-height: 200px; padding: 2rem; }
  .login-right { padding: 1.5rem; }
  .topbar { padding: 0 0.75rem; height: 52px; }
  /* 44px minimum touch targets (WCAG 2.5.5) */
  .sidebar-toggle, .nav-icon-btn { width: 44px; height: 44px; }
  /* Safe area for notched phones */
  .topbar {
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
    height: calc(52px + env(safe-area-inset-top, 0px));
  }
  /* Hide password + logout from topbar — they live in the More drawer on mobile */
  #btn-change-password, #btn-logout { display: none; }
  .sidebar { display: none; }
  .sidebar.mobile-open { display: flex; width: 260px; top: calc(52px + env(safe-area-inset-top, 0px)); z-index: 120; }
  .sidebar-overlay.active { display: block; opacity: 1; z-index: 115; }
  .main-content {
    margin-left: 0;
    margin-top: calc(52px + env(safe-area-inset-top, 0px));
    /* Momentum scrolling on iOS */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }
  .main-content.sidebar-collapsed { margin-left: 0; }
  .nav-user-details { display: none; }
  .nav-user { padding-left: 0.5rem; gap: 0.375rem; }
  .notification-panel { top: 52px; max-height: calc(100vh - 52px); }
  .page { padding: 1rem; }
  .page-header { margin-bottom: 1.25rem; }
  .page-header h1 { font-size: 1.25rem; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .stat-card { padding: 1rem; }
  .stat-card .stat-value { font-size: 1.5rem; }
  .client-projects-grid { grid-template-columns: 1fr; }
  .monitoring-grid { grid-template-columns: 1fr; }

  /* Tables: make them scrollable */
  .clients-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .clients-table th:nth-child(4), .clients-table td:nth-child(4),
  .clients-table th:nth-child(5), .clients-table td:nth-child(5) { display: none; }
  .clients-table th, .clients-table td { padding: 0.75rem 0.875rem; font-size: 0.8rem; }

  /* Section cards */
  .section-card-header { padding: 0.875rem 1rem; }
  .section-card-header h3 { font-size: 0.9rem; }
  .section-card-desc { margin: 0.5rem 1rem 0.75rem; }

  /* Project rows */
  .project-row { padding: 0.875rem 1rem; }
  .request-row { padding: 0.875rem 1rem; }
  .deadline-row { padding: 0.75rem 1rem; }
  .task-item { padding: 0.5rem 1rem; }
  .timeline { padding: 0.75rem 1rem; }
  .update-form { padding: 1rem; }
  .phase-control { padding: 0.875rem 1rem; }
  .project-info { padding: 0.875rem 1rem; }
  .site-monitor { padding: 0.875rem 1rem; }

  /* Monitor card */
  .monitor-card-header { padding: 1rem; }
  .monitor-card-body { padding: 1rem; }
  .monitor-card-stats { grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; }

  /* Modals — bottom sheet style on mobile */
  .modal-overlay { align-items: flex-end !important; padding: 0 !important; }
  .modal-overlay.open .modal,
  .modal-overlay.open .modal-content,
  .modal-overlay.active .modal,
  .modal-overlay.active .modal-content {
    animation: slideUpSheet 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  }
  @keyframes slideUpSheet {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }
  .modal, .modal-content {
    width: 100%; max-width: none !important; margin: 0;
    border-radius: 20px 20px 0 0 !important;
    max-height: 92vh; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: max(env(safe-area-inset-bottom, 0px), 0.5rem);
  }
  .modal form, .modal-content form { padding: 1rem; }
  .modal-header { padding: 1rem; }
  .modal-actions, .form-actions { flex-wrap: wrap; }

  /* Notification panel */
  .notification-panel { width: 100%; top: 56px; max-height: calc(100vh - 56px); }

  /* Invoice table */
  .invoice-table { font-size: 0.78rem; }
  .invoice-table th, .invoice-table td { padding: 0.5rem 0.625rem; }
  .invoice-items-table { font-size: 0.78rem; }

  /* Team grid */
  .team-grid { grid-template-columns: 1fr; padding: 1rem; gap: 0.75rem; }

  /* Time tracking */
  .time-filter-bar { gap: 0.5rem; }
  .timer-display { font-size: 1.5rem; }

  /* Reports */
  .reports-grid { grid-template-columns: 1fr; }
  .stats-grid-3 { grid-template-columns: 1fr; }

  /* Activity */
  .activity-filters { gap: 0.375rem; }
  .activity-filter { padding: 0.35rem 0.75rem; font-size: 0.75rem; }

  /* Workload */
  .workload-bar-name { width: 80px; font-size: 0.75rem; }

  /* Referrals */
  .referral-card { padding: 1.25rem; }

  /* Upsell */
  .upsell-grid { grid-template-columns: 1fr; }

  /* Quick stats */
  .client-quick-stats { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .quick-stat { padding: 0.75rem; }

  /* Bible verse */
  .client-verse-card { padding: 1rem 1.25rem; }
  .verse-text { font-size: 0.85rem; }

  /* Form row stack on mobile */
  .form-row { flex-direction: column; }

  /* Invoice item rows */
  .invoice-item-row { flex-wrap: wrap; }
  .invoice-item-row input { min-width: 0; }

  /* File preview */
  .file-preview-layout { grid-template-columns: 1fr; }
  .file-preview-sidebar { border-left: none; border-top: 1px solid var(--color-border); padding-left: 0; padding-top: 1rem; }

  /* Email log */
  .email-log-item { padding: 0.75rem 1rem; gap: 0.75rem; }
  .email-log-icon { width: 30px; height: 30px; font-size: 0.75rem; }

  /* Project detail header */
  .project-detail-header h1 { font-size: 1.35rem; }

  /* Tutorial */
  .tutorial-card { width: 96%; }
  .tutorial-step { padding: 2rem 1.5rem 1.5rem; min-height: 220px; }
  .tutorial-step h2 { font-size: 1.25rem; }
  .tutorial-step p { font-size: 0.9rem; }
}
@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .phase-step-label { font-size: 0.55rem; max-width: 50px; }
  .request-detail-meta { grid-template-columns: 1fr; }
  .phase-step-dot { width: 28px; height: 28px; font-size: 0.65rem; }
  .page { padding: 0.75rem; }
  .page-header h1 { font-size: 1.1rem; }
  .stat-card .stat-value { font-size: 1.25rem; }
  .client-quick-stats { grid-template-columns: 1fr; }
  .client-verse-card { flex-direction: column; gap: 0.5rem; }
  .monitor-card-stats { grid-template-columns: 1fr; }
  .login-card { padding: 1.5rem; }
  .login-card-header h2 { font-size: 1.2rem; }

  /* Approval actions stack */
  .approval-actions { flex-direction: column; }
  .approval-actions .btn { width: 100%; justify-content: center; }

  /* Request detail */
  .request-detail-actions { flex-direction: column; }
  .request-detail-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Mobile Nav (Bottom tabs) ---------- */
.mobile-nav { display: none; }
.mobile-more-overlay { display: none; }
.mobile-more-drawer { display: none; }

@media (max-width: 768px) {
  .mobile-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--color-white); border-top: 1px solid var(--color-border);
    display: flex; align-items: stretch; justify-content: space-around;
    padding: 0.35rem 0 calc(0.35rem + env(safe-area-inset-bottom, 0px));
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(29,36,44,0.06);
  }
  .mobile-nav .nav-tab {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.2rem; font-size: 0.6rem; font-weight: 500;
    padding: 0.5rem 0.25rem; flex: 1;
    color: var(--color-text-muted); background: none; border: none; cursor: pointer;
    transition: color 0.15s;
    border-radius: 0;
    min-width: 0;
    min-height: 52px;
  }
  .mobile-nav .nav-tab:active { opacity: 0.65; transition: opacity 0.05s; }
  .mobile-nav .nav-tab svg { flex-shrink: 0; }
  .mobile-nav .nav-tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .mobile-nav .nav-tab:hover,
  .mobile-nav .nav-tab.active {
    color: var(--color-primary); background: none;
  }
  .mobile-nav .nav-tab.active svg { stroke: var(--color-primary); }
  .main-content { padding-bottom: 80px; }
  .portal-footer { padding-bottom: calc(80px + 0.5rem); }

  /* Toast above mobile nav */
  .toast-container { bottom: calc(90px + env(safe-area-inset-bottom)) !important; }

  /* Mobile "More" Drawer */
  .mobile-more-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(29,36,44,0.3);
    z-index: 150;
    transition: opacity 0.2s;
    opacity: 0;
  }
  .mobile-more-overlay.open { display: block; opacity: 1; }
  .mobile-more-drawer {
    display: block; position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--color-white);
    border-top-left-radius: 16px; border-top-right-radius: 16px;
    box-shadow: 0 -8px 30px rgba(29,36,44,0.15);
    z-index: 200;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 0.5rem);
    max-height: 70vh; overflow-y: auto;
  }
  .mobile-more-drawer.open { transform: translateY(0); }
  .mobile-more-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem 0.75rem;
    font-size: 1rem; font-weight: 700; color: var(--color-navy);
    border-bottom: 1px solid var(--color-border-light);
  }
  .mobile-more-header .modal-close { margin: 0; }
  .mobile-more-list { padding: 0.5rem 0; }
  .mobile-more-item {
    display: flex; align-items: center; gap: 1rem;
    width: 100%; padding: 0.875rem 1.25rem;
    border: none; background: none; cursor: pointer;
    font-size: 0.9rem; font-weight: 500; color: var(--color-text);
    transition: background 0.15s;
    font-family: inherit;
    text-align: left;
  }
  .mobile-more-item:hover { background: var(--color-cream); }
  .mobile-more-item.active { color: var(--color-primary); background: var(--color-primary-light); }
  .mobile-more-item svg { flex-shrink: 0; color: var(--color-text-secondary); }
  .mobile-more-item.active svg { color: var(--color-primary); stroke: var(--color-primary); }
}


/* ---------- Scrollbar ---------- */
/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-cream-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Collapsible sections */
.collapsible-section.collapsed .collapsible-body { display: none; }
.collapsible-section.collapsed .collapsible-arrow { transform: rotate(-90deg); }
.collapsible-header { display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding: 0.5rem 0; }
.collapsible-header:hover { opacity: 0.8; }
.collapsible-arrow { transition: transform 0.2s; font-size: 0.85rem; color: var(--color-text-muted); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ---------- Reduced Motion ---------- */
/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   PHASE 1 REFRESH — Topbar, sidebar (dark midnight), page header
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Topbar polish ──────────────────────────────────────────────── */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--wom-stone);
  box-shadow: 0 1px 0 rgba(20, 28, 36, 0.02);
}
.nav-icon-btn { color: var(--wom-dim); }
.nav-icon-btn:hover { background: var(--wom-cream); color: var(--wom-navy); }
.nav-user { border-left: 1px solid var(--wom-stone); }
.nav-avatar {
  background: var(--wom-oak);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.nav-user-name { color: var(--wom-navy); font-weight: 700; }
.nav-user-role { color: var(--wom-dim); }
.notification-badge {
  background: var(--wom-oak);
  font-weight: 800;
  box-shadow: 0 0 0 2px #fff;
}

/* ─── Sidebar — DARK MIDNIGHT ────────────────────────────────────── */
.sidebar {
  background: var(--wom-midnight);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.sidebar-nav { padding: 1rem 0.6rem; gap: 0.15rem; }

/* Nav items in dark sidebar */
.nav-tab {
  color: rgba(243, 241, 235, 0.62);
  font-weight: 500;
  border-radius: 8px;
  padding: 0.625rem 0.85rem;
  position: relative;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-tab svg { opacity: 0.75; transition: opacity 0.15s ease; }
.nav-tab:hover {
  color: var(--wom-cream);
  background: rgba(255, 255, 255, 0.05);
}
.nav-tab:hover svg { opacity: 1; }
.nav-tab.active {
  color: var(--wom-cream);
  background: rgba(180, 81, 67, 0.16);
  font-weight: 600;
}
.nav-tab.active svg { opacity: 1; color: var(--wom-oak-light); }
.nav-tab.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--wom-oak);
  border-radius: 0 3px 3px 0;
}

/* Nav section labels (when we add them in Phase 2 they'll look right) */
.nav-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 241, 235, 0.32);
  padding: 1rem 0.85rem 0.4rem;
  user-select: none;
}
.nav-section-label:first-child { padding-top: 0.25rem; }

/* Collapsed sidebar in dark mode */
.sidebar.collapsed .nav-section-label { opacity: 0; height: 0; padding: 0; overflow: hidden; }
.sidebar.collapsed .nav-tab.active::before { left: 0; }

/* ─── Page Header ────────────────────────────────────────────────── */
.page-header h1 {
  color: var(--wom-navy-deep);
  letter-spacing: -0.025em;
  font-size: 1.875rem;
}
.page-header .label-upper { color: var(--wom-oak); }

