<div class="relative" id="notifRoot">
  <button id="notifBell" class="relative">
    🔔
    <span id="notifCount"
          class="absolute -top-1 -right-1 text-xs bg-red-600 text-white rounded-full px-1.5">0</span>
  </button>

  <div id="notifMenu"
       class="hidden absolute right-0 mt-2 w-96 max-h-96 overflow-auto bg-white shadow rounded">
    <div class="flex items-center justify-between p-2 border-b">
      <strong>Notifications</strong>
      <button id="markAllRead" class="text-sm text-blue-600">Mark all as read</button>
    </div>
    <ul id="notifList" class="divide-y"></ul>
  </div>
</div>
