/* ============================================================
   PAWS unified topnav — shared styles.
   Loaded on top of each page's own topnav CSS. Only ADDS
   classes/overrides; never restyles existing page classes.
   ============================================================ */

/* Avatar photo in nav (set in Settings) */
img.nav-avatar { object-fit: cover; border: 1px solid #fff; }

/* Desktop "Tools" dropdown */
.nav-tools { position: relative; display: inline-flex; }
.nav-tools-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600;
  color: #64748B; padding: 8px 2px; white-space: nowrap; transition: color .15s;
}
.nav-tools-btn:hover { color: #00A8D6; }
.nav-tools-btn svg { color: #94A3B8; transition: transform .15s; }
.nav-tools.open .nav-tools-btn svg { transform: rotate(180deg); }
.nav-tools-dd {
  display: none; position: absolute; top: calc(100% + 12px); left: 0;
  min-width: 230px; background: #fff; border: 1px solid #E2E8F0;
  border-radius: 12px; box-shadow: 0 16px 40px rgba(15,23,42,.14);
  padding: 6px; z-index: 80;
}
.nav-tools.open .nav-tools-dd { display: block; }
.nav-tools-dd a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; font-size: 13.5px; font-weight: 600;
  color: #334155; text-decoration: none; border-radius: 8px; white-space: nowrap;
}
.nav-tools-dd a:hover { background: rgba(65,131,215,.08); color: #2E6DB4; }
.nav-tools-dd a.active { background: rgba(65,131,215,.12); color: #2E6DB4; font-weight: 700; }
.nav-tools-dd a .dd-emoji { width: 18px; text-align: center; flex-shrink: 0; font-size: 14px; }

/* Dropdown divider (missing on some pages) */
div.nav-dropdown-sep { height: 1px; background: #F1F5F9; margin: 6px 4px; }

/* Logged-in avatar chip + dropdown (self-contained so pages using
   assets/auth.js — dashboard, onboarding, admin — render identically) */
.nav-login { background: none; border: none; color: #64748B; font-size: 14px; font-weight: 600; cursor: pointer; padding: 6px 8px; border-radius: 8px; white-space: nowrap; }
.nav-login:hover { color: #00A8D6; }
.nav-cta { background: linear-gradient(135deg,#4183D7,#2E6DB4); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; padding: 9px 18px; border-radius: 10px; transition: box-shadow .2s; white-space: nowrap; }
.nav-cta:hover { box-shadow: 0 4px 18px rgba(65,131,215,.35); }
.nav-user { position: relative; }
.nav-user-btn { display: flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; padding: 5px 8px; border-radius: 10px; font-family: inherit; }
.nav-user-btn:hover { background: rgba(65,131,215,.08); }
.nav-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,#4183D7,#002B5C); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.nav-name { font-size: 13.5px; font-weight: 700; color: #0F172A; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-user-btn svg { color: #94A3B8; flex-shrink: 0; }
.nav-dropdown { display: none; position: absolute; right: 0; top: calc(100% + 8px); width: 220px; background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; box-shadow: 0 16px 40px rgba(15,23,42,.14); padding: 6px; z-index: 80; }
.nav-dropdown.open { display: block; }
.nav-dropdown a, .nav-dropdown button { display: block; width: 100%; text-align: left; padding: 10px 12px; font-size: 13.5px; font-weight: 600; color: #334155; text-decoration: none; border: none; background: none; border-radius: 8px; cursor: pointer; font-family: inherit; }
.nav-dropdown a:hover, .nav-dropdown button:hover { background: rgba(65,131,215,.08); color: #2E6DB4; }
.nav-dropdown button.danger, .nav-dropdown a.danger { color: #DC2626; }
.nav-dropdown button.danger:hover, .nav-dropdown a.danger:hover { background: rgba(220,38,38,.06); color: #DC2626; }

/* Guest buttons inside toolbars (dashboard/onboarding/admin are not the
   fixed topnav; keep pill-style login/CTA so they fit their headers) */
.auth-pill-login { background: none; border: 1px solid #E2E8F0; color: #334155; font-size: 12.5px; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer; font-family: inherit; }
.auth-pill-cta { background: linear-gradient(90deg,#4183D7,#002B5C); border: none; color: #fff; font-size: 12.5px; font-weight: 700; padding: 7px 14px; border-radius: 999px; cursor: pointer; font-family: inherit; }

/* Mobile drawer — user card + section titles */
.drawer-user {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 4px 14px; margin-bottom: 4px;
  border-bottom: 1px solid #F1F5F9;
}
.drawer-user .nav-avatar { width: 40px; height: 40px; font-size: 15px; }
.drawer-user-name { font-size: 13.5px; font-weight: 700; color: #0F172A; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-user-email { font-size: 11.5px; color: #94A3B8; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-sec-title {
  font-size: 11px; font-weight: 700; color: #94A3B8;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 14px 4px 6px;
}