/* ── nav bar ── */
  /*  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    body { background: #0d0f14; font-family: 'Syne', sans-serif; min-height: 100vh; }
    body::before {
      content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
      background-image:
        linear-gradient(rgba(79,255,176,.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79,255,176,.022) 1px, transparent 1px);
      background-size: 40px 40px;
    }

:root {
      --stt_bg:      #0d0f14;
      --surface: #13161e;
      --panel:   #1a1e29;
      --stt_border:  #252b3b;
      --green:   #4fffb0;
      --cyan:    #00c9ff;
      --warn:    #ff6b6b;
      --purple:  #b48cff;
      --yellow:  #f7c948;
      --stt_text:    #e8eaf0;
      --stt_muted:   #5a6175;
      --nav-h:   64px;
    }*/

  .vs-nav {
      position: sticky; top: 0; z-index: 200;
      height: var(--nav-h);
      background: rgba(13,15,20,.9);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--stt_border);
    }
    .vs-nav__inner {
      max-width: 1200px; margin: 0 auto; padding: 0 26px;
      height: 100%; display: flex; align-items: center;
      justify-content: space-between; gap: 12px;
    }

    /* ── logo (identical across all navbars) ── */
    .vs-logo {
      display: flex; align-items: center; gap: 10px;
      text-decoration: none; color: inherit; flex-shrink: 0;
    }
    .vs-logo__ring {
      width: 34px; height: 34px; border-radius: 50%;
      border: 2px solid var(--green);
      display: flex; align-items: center; justify-content: center;
      box-shadow: 0 0 12px rgba(79,255,176,.2); flex-shrink: 0;
    }
    .vs-logo__ring svg { width: 16px; height: 16px; fill: var(--green); }
    .vs-logo__text { display: flex; flex-direction: column; line-height: 1.15; }
    .vs-logo__name { font-size: .95rem; font-weight: 800; letter-spacing: -.02em; color: var(--stt_text); }
    .vs-logo__tag  { font-family: 'DM Mono', monospace; font-size: .6rem; color: var(--stt_muted); letter-spacing: .04em; }

    /* ── right side ── */
    .vs-nav__right { display: flex; align-items: center; gap: 8px; }

    /* ── user icon button (base) ── */
    .vs-user-btn {
      width: 36px; height: 36px; border-radius: 50%;
      border: 1px solid var(--stt_border); background: var(--panel);
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; flex-shrink: 0; text-decoration: none;
      transition: border-color .2s, box-shadow .2s, background .2s;
      position: relative;
    }
    .vs-user-btn svg { width: 18px; height: 18px; fill: var(--stt_muted); transition: fill .2s; }
    .vs-user-btn:hover { border-color: var(--green); background: rgba(79,255,176,.07); box-shadow: 0 0 10px rgba(79,255,176,.16); }
    .vs-user-btn:hover svg { fill: var(--green); }

    /* logged-in variants */
    .vs-user-btn--user  { border-color: rgba(0,201,255,.35); box-shadow: 0 0 8px rgba(0,201,255,.12); }
    .vs-user-btn--user  svg { fill: var(--cyan); }
    .vs-user-btn--user:hover  { border-color: var(--cyan); box-shadow: 0 0 12px rgba(0,201,255,.22); }
    .vs-user-btn--user:hover  svg { fill: var(--cyan); }

    .vs-user-btn--wanderer { border-color: rgba(180,140,255,.35); box-shadow: 0 0 8px rgba(180,140,255,.12); }
    .vs-user-btn--wanderer svg { fill: var(--purple); }
    .vs-user-btn--wanderer:hover { border-color: var(--purple); box-shadow: 0 0 12px rgba(180,140,255,.22); }
    .vs-user-btn--wanderer:hover svg { fill: var(--purple); }

    /* online dot */
    .vs-online-dot {
      position: absolute; bottom: 1px; right: 1px;
      width: 8px; height: 8px; border-radius: 50%;
      border: 2px solid var(--stt_bg);
    }
    .vs-online-dot--user  { background: var(--cyan);   box-shadow: 0 0 5px rgba(0,201,255,.5); }
    .vs-online-dot--wanderer { background: var(--purple); box-shadow: 0 0 5px rgba(180,140,255,.5); }

    /* role badge next to icon (optional) */
    .vs-role-badge {
      font-family: 'DM Mono', monospace; font-size: .62rem;
      padding: 2px 8px; border-radius: 20px;
      font-weight: 500; white-space: nowrap;
    }
    .vs-role-badge--wanderer { background: rgba(180,140,255,.1); border: 1px solid rgba(180,140,255,.25); color: var(--purple); }
    .vs-role-badge--user  { background: rgba(0,201,255,.08);  border: 1px solid rgba(0,201,255,.2);   color: var(--cyan); }

    /* ── slide panel ── */
    .vs-menu-overlay {
      display: none; position: fixed; inset: 0; z-index: 300;
    }
    .vs-menu-overlay.open { display: block; }

    .vs-menu-backdrop {
      position: absolute; inset: 0;
      background: rgba(0,0,0,.55); backdrop-filter: blur(3px);
      animation: vsBackdropIn .22s ease;
    }
    @keyframes vsBackdropIn { from{opacity:0} to{opacity:1} }

    .vs-menu-panel {
      position: absolute; top: 0; right: 0; bottom: 0;
      width: 66.666%; max-width: 340px; min-width: 230px;
      background: var(--surface); border-left: 1px solid var(--stt_border);
      display: flex; flex-direction: column;
      box-shadow: -20px 0 60px rgba(0,0,0,.5);
      animation: vsPanelIn .25s cubic-bezier(.22,.68,0,1.15);
      overflow-y: auto;
    }
    @keyframes vsPanelIn { from{transform:translateX(100%);opacity:.3} to{transform:none;opacity:1} }

    /* top accent — colour changes per role */
    .vs-menu-panel::before {
      content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    }
    .vs-menu-panel--user::before  { background: linear-gradient(90deg, transparent, var(--cyan),   var(--green),  transparent); }
    .vs-menu-panel--wanderer::before { background: linear-gradient(90deg, transparent, var(--purple), var(--cyan),   transparent); }

    /* panel header */
    .vs-menu-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 20px 20px 16px; border-bottom: 1px solid var(--stt_border);
    }
    .vs-menu-user-info { display: flex; align-items: center; gap: 10px; }
    .vs-menu-avatar {
      width: 38px; height: 38px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    }
    .vs-menu-avatar--user  { background: rgba(0,201,255,.1);  border: 2px solid rgba(0,201,255,.3);  }
    .vs-menu-avatar--user  svg { fill: var(--cyan); }
    .vs-menu-avatar--wanderer { background: rgba(180,140,255,.1); border: 2px solid rgba(180,140,255,.3); }
    .vs-menu-avatar--wanderer svg { fill: var(--purple); }
    .vs-menu-avatar svg { width: 18px; height: 18px; }

    .vs-menu-username { font-size: .86rem; font-weight: 700; color: var(--stt_text); }
    .vs-menu-role     { font-family: 'DM Mono', monospace; font-size: .63rem; color: var(--stt_muted); margin-top: 2px; }
    .vs-menu-role--wanderer { color: var(--purple); }
    .vs-menu-role--user  { color: var(--cyan); }

    .vs-menu-close {
      width: 28px; height: 28px; border-radius: 50%;
      border: 1px solid var(--stt_border); background: var(--panel);
      color: var(--stt_muted); font-size: .85rem; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: border-color .18s, color .18s; flex-shrink: 0;
    }
    .vs-menu-close:hover { border-color: var(--warn); color: var(--warn); }

    /* section label */
    .vs-menu-section {
      font-family: 'DM Mono', monospace; font-size: .63rem;
      letter-spacing: .09em; text-transform: uppercase; color: var(--stt_muted);
      padding: 16px 20px 6px;
    }

    /* menu links */
    .vs-menu-links { display: flex; flex-direction: column; padding: 0 10px; gap: 2px; }
    .vs-menu-link {
      display: flex; align-items: center; gap: 12px;
      padding: 10px 12px; border-radius: 9px;
      border: 1px solid transparent; color: var(--stt_muted);
      text-decoration: none; font-size: .84rem; font-weight: 600;
      transition: color .18s, border-color .18s, background .18s;
    }
    .vs-menu-link__icon {
      width: 32px; height: 32px; border-radius: 9px;
      display: flex; align-items: center; justify-content: center; flex-shrink: 0;
      transition: background .18s;
    }
    .vs-menu-link__icon svg { width: 16px; height: 16px; fill: currentColor; }
    .vs-menu-link__body { flex: 1; }
    .vs-menu-link__title { display: block; }
    .vs-menu-link__sub   { font-family: 'DM Mono', monospace; font-size: .63rem; color: var(--stt_muted); font-weight: 400; margin-top: 1px; }
    .vs-menu-link__arrow { width: 13px; height: 13px; fill: var(--stt_muted); opacity: .4; transition: opacity .18s, transform .18s; }

    /* STT link */
    .vs-menu-link--stt:hover { color: var(--green); border-color: rgba(79,255,176,.18); background: rgba(79,255,176,.05); }
    .vs-menu-link--stt:hover .vs-menu-link__icon { background: rgba(79,255,176,.1); color: var(--green); }
    .vs-menu-link--stt:hover .vs-menu-link__arrow { opacity:1; fill: var(--green); transform: translateX(2px); }
    /* TTS link */
    .vs-menu-link--tts:hover { color: var(--cyan);  border-color: rgba(0,201,255,.18);  background: rgba(0,201,255,.05); }
    .vs-menu-link--tts:hover .vs-menu-link__icon { background: rgba(0,201,255,.1); color: var(--cyan); }
    .vs-menu-link--tts:hover .vs-menu-link__arrow { opacity:1; fill: var(--cyan); transform: translateX(2px); }
    /* profile link */
    .vs-menu-link--profile:hover { color: var(--stt_text); border-color: var(--stt_border); background: var(--panel); }
    .vs-menu-link--profile:hover .vs-menu-link__icon { background: rgba(255,255,255,.05); color: var(--stt_text); }
    .vs-menu-link--profile:hover .vs-menu-link__arrow { opacity:1; transform: translateX(2px); }
    /* wanderer link */
    .vs-menu-link--wanderer:hover { color: var(--purple); border-color: rgba(180,140,255,.18); background: rgba(180,140,255,.05); }
    .vs-menu-link--wanderer:hover .vs-menu-link__icon { background: rgba(180,140,255,.1); color: var(--purple); }
    .vs-menu-link--wanderer:hover .vs-menu-link__arrow { opacity:1; fill: var(--purple); transform: translateX(2px); }

    /* divider + logout */
    .vs-menu-divider { height: 1px; background: var(--stt_border); margin: 8px 20px; }
    .vs-menu-spacer  { flex: 1; min-height: 16px; }
    .vs-menu-logout {
      display: flex; align-items: center; gap: 10px;
      margin: 0 10px 16px; padding: 10px 12px; border-radius: 9px;
      border: 1px solid transparent; color: var(--stt_muted);
      font-size: .84rem; font-weight: 600; text-decoration: none;
      transition: color .18s, background .18s, border-color .18s; cursor: pointer;
    }
    .vs-menu-logout svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
    .vs-menu-logout:hover { color: var(--warn); background: rgba(255,107,107,.06); border-color: rgba(255,107,107,.18); }

    /* ── shared JS: vs-menu-open / vs-menu-close classes ── */
    /* (no extra CSS needed — open class toggles display via JS) */



    /*============SUB NAV BAR for Admin & User====================*/

.hi_div{
  color:#4e7ac2;
}
/* Container wrapper */
.menu-container {
  position: relative;
  display: inline-block;
}

/* Stripped down button to look like a standalone icon */
.menu-icon-trigger {
  background: none;
  border: none;
  padding: 8px 30px;
  font-size: 2.5rem; /* Size of the main menu icon */
  color: #4b5563;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2 ease;
}

/* Subtle hover background circle around the icon */
.menu-icon-trigger:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* The dropdown container box */
.menu-dropdown {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background-color: #ffffff;
  min-width: 220px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 6px 0;
  margin: 0;
  z-index: 100;
}

.menu-dropdown.show {
  display: block;
}

/* List Item Container styling */
.menu-dropdown li {
  padding: 2px 6px;
}

/* Links styled as horizontal flex containers for the icons */
.menu-dropdown li a {
  display: flex;
  align-items: center;
  gap: 12px; /* Gap between the mini icon and text */
  padding: 8px 12px;
  color: #374151;
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: background-color 0.15s, color 0.15s;
}

/* Hover state for items */
.menu-dropdown li a:hover {
  background-color: #f3f4f6;
  color: #111827;
}

/* Target the specific mini icon container */
.menu-dropdown li a .link-icon {
  font-size: 1.1rem;
  width: 20px; /* Fixed width prevents alignment shifts */
  display: flex;
  justify-content: center;
  align-items: center;
  color: #6b7280;
}

/* Special styling for the active action link */
.menu-dropdown li a.action-link {
  color: #2563eb;
}

.menu-dropdown li a.action-link .link-icon {
  color: #2563eb;
}

/* Thin separator line */
.menu-divider {
  height: 1px;
  background-color: #e5e7eb;
  margin: 6px 0;
}
