
.navbar-brand-logo {
    display: inline-block; /* Always show the logo */
    width: 40px;
    height: 40px;
    min-width: 40px; /* Prevent shrinking when space is tight */
    min-height: 40px;
}

.navbar-brand-text {
    display: inline-block; /* Show text by default */
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}


/* Make the navbar-toggler align to the left */
.navbar-toggler {
    margin-left: 0;
    order: -1;
    margin-right: 10px; /* Ensures the toggler appears before other elements */
}

.navbar-icons {
  display: flex;
  justify-content: flex-end;
  margin-left: auto;
  order: 10;
  z-index: 1000; /* Add z-index to the container */
}

/* Fix notification dropdown z-index */
.navbar-icons .dropdown {
    position: relative;
    z-index: 1000; /* Higher than container */
}

.navbar-icons .dropdown-menu {
    z-index: 1000;
    position: absolute;
}

/* Ensure dropdown appears above map elements */
#notification-dropdown-menu {
    z-index: 1000;
    position: absolute;
}

/* Make sure header itself has high z-index */
#header {
    position: relative;
    z-index: 1000;
}

/* Media query to hide logo text when menu is expanded but space is tight */
@media (min-width: 992px) and (max-width: 1200px) {
    .navbar-brand-text {
        display: none;
    }
}

/* Media query to hide logo text on very small screens */
@media (max-width: 525px) {
    .navbar-brand-text {
        display: none;
    }
}

/* Media query for screens smaller than 768px (typical mobile breakpoint) */
@media (max-width: 768px) {
    .navbar-expand {
        max-width: 100% !important;
    }
}

@media (max-width: 991.98px) {
    .navbar-icons {
      position: absolute;
      top: 0.5rem;
      right: 0rem;
      z-index: 1001; /* Even higher for mobile */
    }
    
    .navbar-icons .dropdown-menu {
        z-index: 1002 !important; /* Highest for mobile dropdown */
    }
}