/* ══════════════════════════════════════════════════════════
   ProjectVue — App styles  (style.css)
   DO NOT import landing.css here — it is for the marketing
   page only and is loaded only by layout-landing.pug
   ══════════════════════════════════════════════════════════ */

:root {
  --primary: #0d6efd;
  --success: #198754;
  --danger:  #dc3545;
  --warning: #ffc107;
  --info:    #0dcaf0;
}

/* ── Body ────────────────────────────────────────────────
   CRITICAL: must NOT hardcode a background color here.
   Bootstrap 5.3 dark mode works by swapping --bs-body-bg
   via [data-bs-theme="dark"]. Any hardcoded background-color
   on body will override it and break dark mode.
   The layout-dashboard.pug <style> block sets the dark
   overrides for --bs-body-bg directly on [data-bs-theme="dark"].
   ─────────────────────────────────────────────────────── */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  /* background intentionally NOT set here — let Bootstrap handle it */
}

/* ── Typography ──────────────────────────────────────── */
.navbar-brand { font-weight: 600; }
.form-label   { font-weight: 500; margin-bottom: .5rem; }
.btn          { font-weight: 500; }

/* ── Cards ────────────────────────────────────────────── */
.card {
  border: none;
  box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
  margin-bottom: 1.5rem;
}
.card-header {
  background-color: var(--bs-card-cap-bg, rgba(0,0,0,.03));
  border-bottom: 1px solid var(--bs-border-color);
  font-weight: 600;
}

/* ── Tables ───────────────────────────────────────────── */
.table th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: .875rem;
  color: var(--bs-secondary-color);
}

/* ── Badges ───────────────────────────────────────────── */
.badge {
  font-weight: 500;
  padding: .35em .65em;
}

/* ── Avatar ───────────────────────────────────────────── */
.avatar {
  font-weight: 600;
  font-size: .875rem;
}

/* ── List groups ──────────────────────────────────────── */
.list-group-item          { border-left: none; border-right: none; }
.list-group-item:first-child { border-top: none; }

/* ── Dropdowns ────────────────────────────────────────── */
.dropdown-item i { width: 20px; text-align: center; }

/* ── Misc ─────────────────────────────────────────────── */
footer { margin-top: auto; }

.breadcrumb {
  background: none;
  padding: 0;
  margin-bottom: 1rem;
}

/* ── Alerts ───────────────────────────────────────────── */
.alert               { border: none; border-left: 4px solid; }
.alert-success       { border-left-color: var(--success); }
.alert-danger        { border-left-color: var(--danger); }
.alert-warning       { border-left-color: var(--warning); }
.alert-info          { border-left-color: var(--info); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
  .table-responsive      { font-size: .875rem; }
  .btn-group .btn        { padding: .25rem .5rem; }
}

/* ── Dark mode: Bootstrap dropdown menus ─────────────────
   Bootstrap 5.3 auto-handles most components via CSS vars.
   These extras ensure dropdowns, cards, and input groups
   look correct in the app shell.
   ─────────────────────────────────────────────────────── */
[data-bs-theme="dark"] .card {
  box-shadow: 0 .125rem .25rem rgba(0,0,0,.35);
}
[data-bs-theme="dark"] .dropdown-menu {
  --bs-dropdown-bg: #1c2128;
  --bs-dropdown-border-color: #30363d;
}
[data-bs-theme="dark"] .modal-content {
  background-color: #161b22;
  border-color: #30363d;
}
[data-bs-theme="dark"] .table {
  --bs-table-bg: transparent;
}

/* ============================================
   ProjectVue Nav — matches React NavBar
   Added by patch_pug_nav.sh — May 2026
   ============================================ */

:root {
  --pv-cobalt: #0047AB;
  --pv-cobalt-hover: #003A88;
  --pv-cobalt-pale: #EBF2FF;
  --pv-bg: #F4F6FA;
  --pv-surface: #FFFFFF;
  --pv-surface-2: #F0F2F7;
  --pv-border: #E2E6EF;
  --pv-text: #111827;
  --pv-text-mid: #374151;
  --pv-text-muted: #6B7280;
  --pv-red: #EF4444;
  --pv-amber: #F59E0B;
  --pv-green: #10B981;
  --pv-nav-height: 60px;
}

/* Import DM Sans if not already loaded */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500&family=DM+Mono:wght@400&display=swap');

body {
  font-family: 'DM Sans', sans-serif !important;
  background-color: var(--pv-bg);
}

/* Nav shell */
.pv-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--pv-cobalt);
  height: var(--pv-nav-height);
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.pv-navbar-inner {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 4px;
}

/* Logo */
.pv-navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-right: 16px;
  flex-shrink: 0;
}

.pv-logo-mark {
  width: 26px;
  height: 26px;
  background: rgba(255,255,255,0.15);
  border-radius: 6px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding: 4px 4px 3px;
}

.pv-bar {
  background: white;
  border-radius: 2px;
  width: 4px;
  display: block;
}

.pv-brand-text {
  color: white;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Nav links */
.pv-navbar-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.pv-nav-link {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  font-weight: 400;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.pv-nav-link:hover,
.pv-nav-link.active {
  color: white;
  background: rgba(255,255,255,0.12);
  text-decoration: none;
}

/* Right side */
.pv-navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* User chip */
.pv-nav-user-menu {
  position: relative;
}

.pv-user-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}

.pv-user-chip:hover {
  background: rgba(255,255,255,0.1);
}

.pv-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
  font-weight: 500;
}

.pv-user-name {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
}

.pv-chevron {
  color: rgba(255,255,255,0.6);
  font-size: 10px;
}

/* Dropdown menu */
.pv-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--pv-surface);
  border: 0.5px solid var(--pv-border);
  border-radius: 8px;
  padding: 6px 0;
  min-width: 200px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  z-index: 1100;
}

.pv-dropdown-menu.open {
  display: block;
}

.pv-dropdown-item {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--pv-text);
  text-decoration: none;
  cursor: pointer;
}

.pv-dropdown-item:hover {
  background: var(--pv-surface-2);
  text-decoration: none;
  color: var(--pv-text);
}

.pv-dropdown-item.pv-signout {
  color: var(--pv-red);
}

.pv-dropdown-item.pv-signout:hover {
  background: #fef2f2;
}

.pv-dropdown-divider {
  border: none;
  border-top: 0.5px solid var(--pv-border);
  margin: 4px 0;
}

/* Close dropdown on outside click */
