@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=Syne:wght@600;700;800&display=swap');

/* ════════════════════════════════════════════════════════════════════
   THEME TOKENS — mirror the sidebar so the whole shell feels unified
   ════════════════════════════════════════════════════════════════════ */
:root {
  --nv-accent:       #c4b5fd;
  --nv-accent-strong:#a78bfa;
  --nv-glass:        rgba(255,255,255,0.07);
  --nv-glass-hover:  rgba(255,255,255,0.13);
  --nv-border:       rgba(255,255,255,0.10);
  --nv-ease:         cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar {
  height: 64px;
  /* deep royal purple with a soft top sheen — matches the sidebar shell */
  background:
    radial-gradient(120% 180% at 0% -40%, #4a1486 0%, transparent 55%),
    linear-gradient(90deg, #240a48 0%, #1c0738 55%, #14052b 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  box-shadow: 0 2px 28px rgba(0, 0, 0, 0.40);
  position: sticky;
  top: 0;
  z-index: 100;
  font-family: 'DM Sans', sans-serif;
  border-bottom: 1px solid var(--nv-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
}

/* subtle diagonal sheen overlay for a glassy feel */
.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(255,255,255,0.05) 0%, transparent 28%);
  pointer-events: none;
}

/* ── Left: page title ── */
.left {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.pageTitle {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.2px;
}

.breadcrumb {
  font-size: 0.75rem;
  color: var(--nv-accent);
  font-weight: 600;
  opacity: 0.85;
  letter-spacing: 0.3px;
}

.divider {
  color: rgba(255,255,255,0.25);
  font-size: 0.85rem;
}

/* ── Right: actions ── */
.right {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

/* ── Icon button base ── */
.iconBtn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--nv-glass);
  border: 1px solid var(--nv-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s var(--nv-ease), transform 0.15s var(--nv-ease),
              border-color 0.18s var(--nv-ease);
  color: rgba(255,255,255,0.88);
  position: relative;
}

.iconBtn:hover {
  background: var(--nv-glass-hover);
  border-color: rgba(167,139,250,0.30);
  transform: translateY(-1px);
}

/* ── Notification dot ── */
.notifDot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  background: #f43f5e;
  border-radius: 50%;
  border: 1.5px solid #1c0738;
  box-shadow: 0 0 6px rgba(244, 63, 94, 0.7);
}

/* ── Separator ── */
.sep {
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,0.14);
  margin: 0 4px;
}

/* ── Avatar button ── */
.avatarBtn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 5px;
  border-radius: 11px;
  background: var(--nv-glass);
  border: 1px solid var(--nv-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  cursor: pointer;
  transition: background 0.18s var(--nv-ease), border-color 0.18s var(--nv-ease);
}

.avatarBtn:hover {
  background: var(--nv-glass-hover);
  border-color: rgba(167,139,250,0.30);
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--nv-accent-strong), #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(167,139,250,0.40), 0 2px 8px rgba(124,58,237,0.35);
}

.avatarInfo {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.avatarName {
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  line-height: 1;
}

.avatarRole {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.50);
  line-height: 1;
}

/* ════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVENESS
   ════════════════════════════════════════════════════════════════════ */

/* ── Tablet & below (≤ 1024px) ── */
@media (max-width: 1024px) {
  .navbar {
    padding: 0 16px 0 70px;
    height: 58px;
  }

  .breadcrumb,
  .divider {
    display: none;
  }

  .pageTitle {
    font-size: 0.98rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
  }

  .right {
    gap: 6px;
  }

  .iconBtn {
    width: 34px;
    height: 34px;
  }

  .avatarInfo {
    display: none;
  }

  .avatarBtn {
    padding: 4px;
    gap: 0;
  }
}

/* ── Phone (≤ 600px) ── */
@media (max-width: 600px) {
  .navbar {
    padding: 0 12px 0 64px;
    height: 56px;
  }

  .pageTitle {
    font-size: 0.92rem;
    max-width: 140px;
  }

  .iconBtn:first-child {
    display: none;
  }

  .right {
    gap: 4px;
  }

  .sep {
    margin: 0 2px;
    height: 18px;
  }

  .avatar {
    width: 26px;
    height: 26px;
    font-size: 0.7rem;
  }
}

/* ── Very small phones (≤ 380px) ── */
@media (max-width: 380px) {
  .navbar {
    padding: 0 10px 0 60px;
  }

  .pageTitle {
    max-width: 100px;
    font-size: 0.85rem;
  }

  .iconBtn:nth-of-type(2) {
    display: none;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .iconBtn:hover,
  .avatarBtn:hover { transform: none; }
}