/* NAV BAR CSS */

.user-dropdown-toggle::after {
  display: none !important; /* hide the little caret/arrow */
}

.nav-search-wrapper {
  margin-left: auto;
}

.navbar-logo {
  max-width: 45px;
  max-height: 45px;
  filter: drop-shadow(0 3px 7px rgba(255, 223, 0, 0.25));
}





.bg-body-tertiary {
  border-radius: 12px;
  border-top: none !important;
}

/* inbox css */
.dm-badge {
  position: absolute;
  bottom: 0;
  left: 100%;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.70rem;
  line-height: 1;
  transform: translate(-70%, 5%);
  font-weight: 700;
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
}

/* Dropdown active/click color (remove Bootstrap blue) */
.dropdown-menu .dropdown-item:active,
.dropdown-menu .dropdown-item.active {
  background-color: rgba(255, 223, 0, 0.15);
  color: #FFDF00;
}

/* Navbar search focus ring (gold) */
#nav-search-input:focus,
#nav-search-input-mobile:focus {
  border-color: rgba(255, 223, 0, 0.35);
  box-shadow: 0 0 0 0.2rem rgba(255, 223, 0, 0.15);
  outline: none;
}

/* =========================
   DESKTOP NAVBAR LAYOUT ONLY
   ========================= */
@media (min-width: 768px) {

  /* Make the desktop row feel more intentional */
  .gh-navbar-desktop {
    display: flex !important;
    align-items: center;
    gap: 0.9rem;
    justify-content: space-between;
  }

  /* LEFT icon nav "pill" */
  .gh-desktop-nav {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.45rem;
    border-radius: 14px;
    background: rgba(15, 15, 18, 0.55);
    border: 1px solid rgba(255, 223, 0, 0.12);
    box-shadow: 0 10px 24px rgba(0,0,0,0.45);
    backdrop-filter: blur(8px);
  }

  .gh-desktop-nav-link {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #c9c9c9;
    transition: transform 120ms ease, background-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
  }

  .gh-desktop-nav-link i {
    font-size: 1.15rem;
    line-height: 1;
  }

  .gh-desktop-nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(0,0,0,0.35);
  }

  .gh-desktop-nav-link.active {
    background: rgba(255, 223, 0, 0.14);
    color: #ffdf00;
    box-shadow: 0 10px 20px rgba(0,0,0,0.45);
  }

  /* CENTER search alignment (functionality unchanged) */
  .gh-desktop-search {
    flex: 1 1 auto;
    justify-content: center;
    margin: 0;
  }

  .gh-desktop-search .nav-search-wrapper {
    margin-left: 0; /* override default auto margin only on desktop */
    width: min(520px, 100%);
  }

  /* RIGHT actions cluster */
  .gh-desktop-actions {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.45rem;
    border-radius: 14px;
    background: rgba(15, 15, 18, 0.45);
    border: 1px solid rgba(255, 223, 0, 0.10);
    box-shadow: 0 10px 24px rgba(0,0,0,0.40);
    backdrop-filter: blur(8px);
  }

  .gh-action-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #c9c9c9;
    transition: transform 120ms ease, background-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
  }

  .gh-action-icon i {
    font-size: 1.15rem;
    line-height: 1;
  }

  .gh-action-icon:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(0,0,0,0.35);
  }

  /* User pill keeps existing dropdown functionality */
  .gh-user-pill {
    padding: 0.25rem 0.55rem;
    border-radius: 14px;
    transition: background-color 120ms ease, box-shadow 120ms ease;
  }

  .gh-user-pill:hover {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 18px rgba(0,0,0,0.30);
  }

  /* =========================================================
   Shared dropdown panel styling (Notifications + Profile)
   ========================================================= */

  .notif-dropdown-menu,
  .profile-dropdown-menu {
    min-width: 280px;
    background: rgba(11, 11, 12, 0.96);
    border: 1px solid rgba(255, 223, 0, 0.14);
    border-radius: 14px;
    box-shadow: 0 18px 36px rgba(0,0,0,0.60);
    backdrop-filter: blur(10px);
    overflow: hidden; /* makes divider + hover fill cleanly */
    padding: 0;
  }

  /* Dropdown items: align like your notif list rows */
  .profile-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.70rem 0.85rem;
    color: #e6e6e6;
    font-weight: 600;
  }

  .profile-dropdown-menu .dropdown-item i {
    font-size: 1.05rem;
    line-height: 1;
    opacity: 0.95;
  }

  .profile-dropdown-menu .dropdown-item:hover {
    background-color: transparent !important;
    color: #FFDF00 ;
  }

  /* Divider matches your gold-accent theme */
  .profile-dropdown-menu .dropdown-divider {
    margin: 0;
    border-top: 1px solid rgba(255, 223, 0, 0.10);
  }

  /* =========================================================
     DESKTOP THEME TOOLTIP (CSS only, no JS)
     Usage: add class "gh-has-tip" + data-tooltip="Label"
     ========================================================= */
  .gh-has-tip {
    position: relative;
  }

  .gh-has-tip::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    transform: translateX(-50%) translateY(-4px);
    white-space: nowrap;

    padding: 0.35rem 0.6rem;
    border-radius: 10px;

    background: rgba(15, 15, 18, 0.95);
    border: 1px solid rgba(255, 223, 0, 0.22);
    box-shadow: 0 14px 28px rgba(0,0,0,0.55);

    color: #ffdf00;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2px;

    opacity: 0;
    pointer-events: none;
    z-index: 2100;

    transition: opacity 120ms ease, transform 120ms ease;
  }

  .gh-has-tip::before {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(100% + 4px);
    transform: translateX(-50%);
    width: 8px;
    height: 8px;

    background: rgba(15, 15, 18, 0.95);
    border-left: 1px solid rgba(255, 223, 0, 0.22);
    border-top: 1px solid rgba(255, 223, 0, 0.22);
    transform: translateX(-50%) rotate(45deg);

    opacity: 0;
    pointer-events: none;
    z-index: 2100;

    transition: opacity 120ms ease, transform 120ms ease;
  }

  .gh-has-tip:hover::after,
  .gh-has-tip:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  .gh-has-tip:hover::before,
  .gh-has-tip:focus-visible::before {
    opacity: 1;
  }

  /* Prevent tooltip from appearing while notification dropdown is open */
  .dropdown.show > .gh-has-tip::after,
  .dropdown.show > .gh-has-tip::before {
    opacity: 0 !important;
  }
}

/* --- Mobile bottom nav shell --- */
.gh-mobile-bottom-shell {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1030; /* above content, below modals */
  display: none; /* shown only via media query */
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 0.75rem;
  pointer-events: none; /* prevent blocking clicks above */
}

/* enable children to be clickable */
.gh-mobile-bottom-shell > * {
  pointer-events: auto;
}

/* --- The rounded black bar --- */
.gh-mobile-bottom-nav {
  background: #111;
  border-radius: 999px;
  padding: 0.45rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.75);
}

/* Individual items */
.gh-mobile-nav-item {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: #b8b8b8;
  font-size: 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.gh-mobile-nav-item i {
  font-size: 1.2rem;
}

/* Fine-tune spacing of mobile icons around the center + button */
.gh-mobile-nav-item:nth-child(2) {
  margin-right: 3rem;
}

.gh-mobile-nav-item:nth-child(3) {
  margin-left: 3rem;
}

/* Active state */
.gh-mobile-nav-item.active,
.gh-mobile-nav-item.active i {
  color: #ffdf00;
}

/* --- Floating center button --- */
.gh-mobile-center-fab {
  position: absolute;
  bottom: 1.9rem;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #ffdf00;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0,0,0,0.9);
}

.gh-mobile-center-fab i {
  font-size: 1.5rem;
}

/* show only on mobile */
@media (max-width: 767.98px) {
  .gh-mobile-bottom-shell {
    display: flex;
  }

  /* Mobile search container (tuned so icons fit: PM + Bell + Profile) */
  .gh-mobile-search-wrap {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 320px;
  }

  /* Input itself */
  #nav-search-input-mobile {
    height: 34px;
    font-size: 0.85rem;
    padding: 0.25rem 0.6rem;
  }

  html, body {
    height: auto;
    overflow-y: auto;
  }

  /* =========================================================
     MOBILE TOP ACTION ICONS (match desktop feel)
     - gives PM + Bell + Profile a consistent box
     ========================================================= */

  .gh-mobile-pm,
  .gh-mobile-profile {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    padding: 0 !important; /* prevent Bootstrap nav-link padding shifting badges */
    color: #c9c9c9;
  }

  /* Keep hover subtle on mobile (tap feedback) */
  .gh-mobile-pm:active,
  .gh-mobile-profile:active {
    transform: translateY(1px);
  }

  /* =========================================================
     MOBILE BADGE POSITIONING (match desktop)
     - overrides the older "bottom/left:100%" dm-badge logic
     ========================================================= */



  /* Optional: make badges feel tighter/cleaner on mobile */
  .gh-mobile-pm .dm-badge,
  #notifBellMobile .notif-badge {
    font-size: 0.70rem;
    line-height: 1;
  }
}

/* Make tablet layout wider without touching desktop */
@media (min-width: 768px) and (max-width: 991.98px) {
  .container {
    max-width: 92%;
  }
}

/* Mobile top navbar */
@media (max-width: 767.98px) {
  nav.navbar {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }
}

/* Mobile bottom nav avatar (kept for other uses) */
.gh-mobile-avatar {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 4px rgba(0,0,0,0.4);
}

/* Mobile TOP profile avatar */
.gh-mobile-top-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 0 6px rgba(0,0,0,0.45);
  border: 1px solid rgba(255, 223, 0, 0.18);
}

/* =========================================================
   FIX: Notifications dropdown going behind page content
   Desktop-only stacking / z-index corrections
   ========================================================= */
@media (min-width: 768px) {

  /* Ensure navbar itself is above page content */
  nav.navbar {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    position: sticky;
    top: 0;
    z-index: 1060;
  }

  /* Make sure containers do not clip the dropdown */
  .navbar,
  .navbar .container-fluid,
  .gh-navbar-desktop,
  .gh-desktop-actions {
    overflow: visible !important;
  }

  /* Force the dropdown menu above everything else */
  .notif-dropdown-menu {
    z-index: 2000 !important;
    position: absolute;
  }

  /* Raise the dropdown parent slightly */
  .gh-desktop-actions .dropdown {
    position: relative;
    z-index: 2001;
  }
}



/* =========================================================
   MOBILE: Make DM + Notification badges match desktop style
   (remove filled background pill)
   ========================================================= */
@media (max-width: 767.98px) {

  /* DM badge + Notification badge */
  .dm-badge,
  .notif-badge {
    /* background: transparent !important;         <-- removes the filled pill */
    border: 1px dashed #2a2b31 !important;      /* matches your badge-tag vibe */
    color: #b89c01 !important;                  /* your secondary yellow */
    box-shadow: none !important;
  }

  /* In case you target by IDs in HTML (common in your setup) */
  #dmBadgeMobile,
  #notifBadgeMobile {
    /* background: transparent !important; */
    border: 1px dashed #2a2b31 !important;
    color: #b89c01 !important;
    box-shadow: none !important;
  }
}


/* =========================================================
   MOBILE: Force logo size (override everything)
   ========================================================= */
@media (max-width: 767.98px) {
  .navbar-logo {
    width: 30px !important;
    height: 30px !important;
    max-width: none !important;
    max-height: none !important;
  }

   /* Keep logo + search + icons on a single line */
  nav.navbar .container-fluid {
    flex-wrap: nowrap !important;
    align-items: center;
  }

  /* Logo should not grow and should stay tight */
  .navbar-brand {
    flex: 0 0 auto;
    margin-right: 0.4rem;
    padding: 0;
    display: flex;
    align-items: center;
  }

  /* This block must be allowed to shrink without forcing wrap */
  .gh-mobile-search-wrap {
    flex: 1 1 auto;
    min-width: 0; /* critical: allows input to shrink instead of wrapping */
    max-width: none; /* remove your 320px cap so it can adapt */
  }

  /* Let the form + wrapper shrink properly */
  .gh-mobile-search-wrap form,
  .gh-mobile-search-wrap .nav-search-wrapper {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }

  /* Input should be responsive */
  #nav-search-input-mobile {
    width: 100%;
    min-width: 0;
  }
}