/* ================================================================
   PropVista — Navbar Premium Glassmorphism Override
   Loaded AFTER app.css so all rules here win cleanly.
   To make future navbar changes, edit ONLY this file.
   ================================================================ */

/* ── Full-viewport positioning wrapper ──
   This div is fixed to the viewport. It provides the 24px side
   padding that replaces the old auto-margin / max-width approach.
   The navbar pill sits inside it and simply fills its width.      */
.pv-navbar-wrapper {
  position: fixed !important;
  top: 10px !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  padding: 0 20px !important;
  pointer-events: auto !important;
  transition: top 0.3s ease !important;
}

/* On homepage: navbar is positioned closer to the top of the screen */
body.is-home-page .pv-navbar-wrapper {
  top: 16px !important;
}
body.is-home-page.navbar-scrolled .pv-navbar-wrapper {
  top: 8px !important;
}

/* ── Container: floating premium glass pill ── */
.pv-navbar {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  position: relative !important;
  top: auto !important;
  z-index: auto !important;
  border-radius: 20px !important;
  /* Premium Light Tint - Benchmark: Favorites */
  background: rgba(248, 250, 252, 0.72) !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow:
    0 8px 32px rgba(15, 23, 42, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.40) inset !important;
  padding: 0 !important;
  transition:
    background    300ms ease,
    box-shadow    300ms ease,
    backdrop-filter 300ms ease !important;
}

/* ── Scrolled state (triggered on body) ── */
.navbar-scrolled .pv-navbar {
  background: rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(30px) !important;
  -webkit-backdrop-filter: blur(30px) !important;
  box-shadow: 
    0 12px 50px rgba(0, 0, 0, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.15) inset !important;
}

/* ── Legacy scrolled class compatibility ── */
.pv-navbar.navbar-scrolled {
  background: rgba(255, 255, 255, 0.18) !important;
}

/* ── Mobile open: fully solid dark ── */
.pv-navbar.navbar-open {
  background: rgba(8, 18, 38, 0.95) !important;
  backdrop-filter: blur(32px) !important;
  -webkit-backdrop-filter: blur(32px) !important;
  border-bottom-left-radius: 16px !important;
  border-bottom-right-radius: 16px !important;
}

/* ── Inner grid: transparent, no card ── */
.pv-nav-inner {
  display: grid !important;
  grid-template-columns: auto 1fr auto !important;
  align-items: center !important;
  gap: 1.25rem !important;
  min-height: 58px !important;
  height: 58px !important;
  /* Balanced horizontal padding */
  padding: 0 1.25rem !important;
  /* Kill any old card paint */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  max-width: none !important;
  margin: 0 !important;
}

/* ── Brand: always dark navy for light theme ── */
.pv-navbar .pv-brand strong {
  color: #0b215b !important;
  font-weight: 700 !important;
  font-size: 1.15rem !important;
}
.pv-navbar .pv-brand small {
  color: #64748b !important;
  font-size: 0.68rem !important;
}
.pv-navbar .pv-brand-mark {
  width: 44px !important;
  height: 44px !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.40) !important;
}

/* ── Nav links ── */
.pv-nav-links {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.1rem !important;
  flex-wrap: nowrap !important;
}
.pv-nav-links a {
  color: #1e293b !important;
  padding: 0.4rem 0.8rem !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  letter-spacing: 0.01em !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  border: 1px solid transparent !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease !important;
}
.pv-nav-links a:hover {
  color: #4f46e5 !important;        /* Indigo on hover */
  background-color: rgba(99, 102, 241, 0.08) !important;
  border-color: rgba(99, 102, 241, 0.18) !important;
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.08),
    0 8px 24px rgba(99, 102, 241, 0.06) !important;
}
.pv-nav-links a.active {
  color: #4f46e5 !important;
  background-color: rgba(99, 102, 241, 0.12) !important;
  font-weight: 700 !important;
}

/* ── Actions row ── */
.pv-nav-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.4rem !important;
  flex-shrink: 0 !important;
}
.pv-nav-actions form {
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
}
.pv-nav-actions > a,
.pv-nav-actions > div,
.pv-nav-actions > form {
  display: inline-flex !important;
  align-items: center !important;
}

/* ── Icon action buttons (search, bell) ── */
.pv-navbar .pv-icon-action {
  width: 38px !important;
  height: 38px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 10px !important;
  background: rgba(248, 250, 252, 0.8) !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
  color: #1e293b !important;
  font-size: 1rem !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
  cursor: pointer !important;
}
.pv-navbar .pv-icon-action:hover {
  background: #ffffff !important;
  border-color: #4f46e5 !important;
  color: #4f46e5 !important;
}

/* ── Avatar ── */
.pv-navbar .pv-avatar {
  width: 36px !important;
  height: 36px !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  flex-shrink: 0 !important;
  object-fit: cover !important;
}

/* ── Profile link ── */
.pv-nav-profile-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  text-decoration: none !important;
  color: #1e293b !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  padding: 0.3rem 0.55rem !important;
  border-radius: 10px !important;
  transition: background 0.2s ease, color 0.2s ease !important;
}
.pv-nav-profile-link:hover {
  color: #4f46e5 !important;
  background: rgba(99, 102, 241, 0.06) !important;
}

/* ── Logout button ── */
.pv-nav-logout {
  height: 34px !important;
  padding: 0 0.95rem !important;
  border-radius: 8px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: #475569 !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
}
.pv-nav-logout:hover {
  background: #e2e8f0 !important;
  color: #1e293b !important;
}

/* ── Sign-in / Get-started CTAs (unauthenticated) ── */
.pv-nav-actions .pv-btn {
  height: 36px !important;
  padding: 0 1.15rem !important;
  border-radius: 10px !important;
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
}
.pv-nav-actions .pv-btn-ghost {
  color: #1e293b !important;
  background: rgba(248, 250, 252, 0.8) !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
}
.pv-nav-actions .pv-btn-ghost:hover {
  background: #ffffff !important;
  border-color: #4f46e5 !important;
  color: #4f46e5 !important;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12) !important;
  transform: translateY(-1px) !important;
}
.pv-nav-actions .pv-btn-primary {
  background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.30) !important;
}
.pv-nav-actions .pv-btn-primary:hover {
  background: linear-gradient(135deg, #4338ca, #6d28d9) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.40) !important;
}

/* ── Mobile hamburger ── */
.pv-mobile-toggle {
  display: none !important;
  border: 1px solid rgba(255, 255, 255, 0.20) !important;
  background: rgba(255, 255, 255, 0.10) !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  font-size: 1.2rem !important;
  transition: background 0.2s ease !important;
  align-items: center !important;
  justify-content: center !important;
}
.pv-mobile-toggle:hover {
  background: rgba(139, 92, 246, 0.20) !important;
}

/* ── Notification dot ── */
.pv-navbar .notify-dot::after {
  right: 6px !important;
  top: 5px !important;
  width: 7px !important;
  height: 7px !important;
  border: 1.5px solid rgba(15, 23, 42, 0.60) !important;
  background: #ef4444 !important;
}

/* ── Badge pulse animation ── */
.pv-icon-action .pv-nav-badge,
.pv-icon-action .badge {
  animation: pv-badge-pulse 1.8s ease-in-out infinite !important;
}
@keyframes pv-badge-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(239, 68, 68, 0.70); }
  70%  { box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.00); }
  100% { box-shadow: 0 0 0 0   rgba(239, 68, 68, 0.00); }
}

/* ══════════════════════════════════════════════════════════════
   PropVista — Unified Navbar Dropdown Design System
   One shared token set: search + notification dropdowns.
   Design: light glass · dark text · blue accents · soft shadow
   ══════════════════════════════════════════════════════════════ */

/* ── Shared base: both dropdowns inherit this ── */
.pv-navbar .dropdown-menu {
  /* Background */
  background: rgba(255, 255, 255, 0.96) !important;
  /* Border */
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  /* Shadow */
  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.12),
    0 4px 12px rgba(15, 23, 42, 0.06) !important;
  /* Radius */
  border-radius: 18px !important;
  /* Glass blur */
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
  /* Animate in */
  animation: pv-dropdown-in 0.18s cubic-bezier(0.16, 1, 0.3, 1) both !important;
  transform-origin: top right !important;
  overflow: hidden !important;
}

@keyframes pv-dropdown-in {
  from { opacity: 0; transform: scale(0.96) translateY(-4px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);    }
}

/* ── Dropdown items (shared) ── */
.pv-navbar .dropdown-item {
  color: #0f172a !important;          /* --pv-ink */
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease !important;
}
.pv-navbar .dropdown-item:hover,
.pv-navbar .dropdown-item:focus {
  background-color: rgba(99, 102, 241, 0.06) !important;
  color: #4f46e5 !important;
  border-color: rgba(99, 102, 241, 0.18) !important;
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.08),
    0 8px 24px rgba(99, 102, 241, 0.06) !important;
}
.pv-navbar .dropdown-toggle::after { display: none !important; }

/* ── Dropdown divider ── */
.pv-navbar .dropdown-menu .border-bottom,
.pv-navbar .dropdown-menu li.border-bottom {
  border-bottom-color: rgba(148, 163, 184, 0.18) !important;
}
.pv-navbar .dropdown-menu .border-top {
  border-top-color: rgba(148, 163, 184, 0.18) !important;
}

/* ── Notification dropdown: header row ── */
.pv-navbar .dropdown-menu .fw-bold {
  color: #0f172a !important;
  font-size: 0.875rem !important;
  letter-spacing: -0.01em !important;
}

/* ── Notification dropdown: muted accent link (Mark all read / View all) ── */
.pv-navbar .dropdown-menu a.fw-semibold,
.pv-navbar .dropdown-menu a.fw-bold {
  color: #2563eb !important;          /* --pv-accent */
  font-size: 0.8rem !important;
}
.pv-navbar .dropdown-menu a.fw-semibold:hover,
.pv-navbar .dropdown-menu a.fw-bold:hover {
  color: #1d4ed8 !important;
}

/* ── Notification item: icon circle ── */
.pv-navbar .dropdown-menu .rounded-circle {
  background: rgba(37, 99, 235, 0.09) !important;
  color: #2563eb !important;
}

/* ── Notification item: title text ── */
.pv-navbar .dropdown-item strong {
  color: #0f172a !important;   /* ink — maximum contrast */
  font-weight: 600 !important;
}

/* ── Notification item: body text (slate-600) ── */
.pv-navbar .dropdown-item span:not(:last-child) {
  color: #475569 !important;   /* solid slate — fully readable */
}

/* ── Notification item: timestamp (slate-400) ── */
.pv-navbar .dropdown-item span:last-child {
  color: #94a3b8 !important;   /* muted but visible */
}

/* ── Search hint text ── */
.pv-navbar .dropdown-menu .mt-2.small {
  color: #64748b !important;
}

/* ── Empty state ── */
.pv-navbar .dropdown-menu .bi-bell-slash {
  color: rgba(15, 23, 42, 0.25) !important;
}



/* ── Responsive: ≤ 992 px (tablet + mobile) ── */
@media (max-width: 992px) {
  .pv-navbar {
    width: calc(100% - 24px) !important;
    border-radius: 16px !important;
  }
  .pv-nav-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    padding: 0.55rem 1.1rem !important;
    gap: 0.5rem !important;
  }
  .pv-mobile-toggle {
    display: inline-flex !important;
    order: 3 !important;
  }
  .pv-nav-links {
    order: 4 !important;
    width: 100% !important;
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0.6rem 0 0.75rem !important;
    gap: 0.15rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.10) !important;
    margin-top: 0.5rem !important;
  }
  .pv-nav-links.is-open {
    display: flex !important;
  }
  .pv-nav-links a {
    padding: 0.75rem 1rem !important;
    border-radius: 10px !important;
    font-size: 0.9rem !important;
  }
  .pv-nav-actions {
    order: 2 !important;
    margin-left: auto !important;
  }
}

/* ── Responsive: ≤ 480 px (mobile) ── */
@media (max-width: 480px) {
  .pv-navbar {
    width: calc(100% - 16px) !important;
    top: 8px !important;
    border-radius: 14px !important;
  }
  .pv-nav-inner {
    padding: 0.45rem 0.85rem !important;
    min-height: 54px !important;
  }
  /* Hide tagline on very small screens */
  .pv-navbar .pv-brand small { display: none !important; }
  /* Shrink icon buttons */
  .pv-navbar .pv-icon-action { width: 34px !important; height: 34px !important; }
}

/* ══════════════════════════════════════════
   NAVBAR GLASS EFFECTS FOR HOMEPAGE ONLY
   ══════════════════════════════════════════ */
body.is-home-page .pv-navbar {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.is-home-page:not(.navbar-scrolled) .pv-navbar .pv-brand strong,
body.is-home-page:not(.navbar-scrolled) .pv-navbar .pv-brand-mark {
  color: #ffffff !important;
}

body.is-home-page:not(.navbar-scrolled) .pv-navbar .pv-brand small {
  color: rgba(255, 255, 255, 0.6) !important;
}

body.is-home-page:not(.navbar-scrolled) .pv-navbar .pv-nav-links a {
  color: rgba(255, 255, 255, 0.85) !important;
}

body.is-home-page:not(.navbar-scrolled) .pv-navbar .pv-nav-links a:hover,
body.is-home-page:not(.navbar-scrolled) .pv-navbar .pv-nav-links a.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

body.is-home-page:not(.navbar-scrolled) .pv-navbar .pv-icon-action {
  color: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

body.is-home-page:not(.navbar-scrolled) .pv-navbar .pv-nav-profile-link {
  color: rgba(255, 255, 255, 0.85) !important;
}

body.is-home-page:not(.navbar-scrolled) .pv-navbar .pv-nav-logout {
  color: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

body.is-home-page.navbar-scrolled .pv-navbar {
  background: rgba(8, 16, 36, 0.5) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
}

body.is-home-page.navbar-scrolled .pv-navbar .pv-brand strong,
body.is-home-page.navbar-scrolled .pv-navbar .pv-brand-mark {
  color: #ffffff !important;
}

body.is-home-page.navbar-scrolled .pv-navbar .pv-brand small {
  color: rgba(255, 255, 255, 0.5) !important;
}

body.is-home-page.navbar-scrolled .pv-navbar .pv-nav-links a {
  color: rgba(255, 255, 255, 0.8) !important;
}

body.is-home-page.navbar-scrolled .pv-navbar .pv-nav-links a:hover,
body.is-home-page.navbar-scrolled .pv-navbar .pv-nav-links a.active {
  color: #ffffff !important;
}

body.is-home-page.navbar-scrolled .pv-navbar .pv-icon-action {
  color: rgba(255, 255, 255, 0.8) !important;
}
