/* public/css/custom_topbar.css */

#topbar {
  background-color: var(--theme-light-topbar-bg);
  backdrop-filter: blur(var(--theme-glass-blur));
  border-bottom: 0.5px solid var(--theme-light-topbar-border-color);
  padding: 0 1rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1025; /* Higher than fixed sidebar (1020), lower than mobile offcanvas (1045) */
}
[data-bs-theme="dark"] #topbar {
  background-color: var(--theme-dark-topbar-bg);
  border-bottom-color: var(--theme-dark-topbar-border-color);
}

#topbar .navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
  margin-right: 0;
  color: var(--theme-light-topbar-text-color);
}
[data-bs-theme="dark"] #topbar .navbar-brand {
  color: var(--theme-dark-topbar-text-color);
}
#topbar .navbar-brand svg path {
  /* Ensure SVG inherits color */
  fill: currentColor;
}

#topbar .topbar-brand-text {
  color: inherit; /* Inherit from .navbar-brand */
  transition: color 0.3s ease;
}
#topbar .topbar-brand-highlight {
  color: var(--theme-light-topbar-brand-highlight-color);
  transition: color 0.3s ease;
}
[data-bs-theme="dark"] #topbar .topbar-brand-highlight {
  color: var(--theme-dark-topbar-brand-highlight-color);
}

.topbar-menu-toggler {
  color: var(--theme-light-hamburger-icon-color);
  background-color: transparent;
  border: none;
  padding: 0.35rem 0.6rem; /* Adjusted padding */
  font-size: 1.6rem;
  line-height: 1;
  border-radius: 0.3rem;
  transition: color 0.3s ease, background-color 0.3s ease;
}
[data-bs-theme="dark"] .topbar-menu-toggler {
  color: var(--theme-dark-hamburger-icon-color);
}
.topbar-menu-toggler:hover {
  color: var(--theme-light-primary-hover-color);
  background-color: rgba(var(--theme-light-primary-rgb, 176, 58, 46), 0.1);
}
[data-bs-theme="dark"] .topbar-menu-toggler:hover {
  color: var(--theme-dark-primary-hover-color);
  background-color: rgba(var(--theme-dark-primary-rgb, 231, 76, 60), 0.1);
}
.topbar-menu-toggler svg {
  fill: currentColor;
  vertical-align: middle; /* Better alignment */
}

#topbar .navbar-nav.ms-md-auto {
  display: none !important;
}

@media (min-width: 992px) {
  #mobileSidebarToggler {
    display: none !important;
  }
  #desktopSidebarToggler {
    display: inline-flex !important;
  }
}
@media (max-width: 991.98px) {
  #mobileSidebarToggler {
    display: inline-flex !important;
  }
  #desktopSidebarToggler {
    display: none !important;
  }
}
