/* Visaboards Admin header — matches DashboardMarketingHeader (app) */

.vbhs-header,
.vbhs-header * {
  box-sizing: border-box;
}

.vbhs-header {
  font-family: "Overpass", "Segoe UI", system-ui, sans-serif;
  width: 100%;
}

.vbhs-header__inner {
  display: grid;
  align-items: center;
  gap: 0.5rem 1rem;
  max-width: 1290px;
  margin: 0 auto;
  min-height: 5rem;
  padding: 0.625rem 1.25rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.vbhs-header__inner--logo {
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr) auto;
}

@media (min-width: 1024px) {
  .vbhs-header__inner {
    min-height: 5rem;
    padding-top: 0;
    padding-bottom: 0;
  }
}

.vbhs-header__logo {
  display: flex;
  min-width: 0;
  align-items: center;
  text-decoration: none !important;
  color: #0d4d7a;
  font-weight: 700;
  font-size: 1.125rem;
}

/* Nav — spacing matches app: gap-x-4 / sm:gap-x-5 / lg:gap-x-6 */
.vbhs-header__nav {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 1rem;
  row-gap: 0.5rem;
  min-width: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  color: #1a6bb5;
}

@media (min-width: 640px) {
  .vbhs-header__nav {
    column-gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .vbhs-header__nav {
    display: flex;
    justify-self: center;
  }
}

@media (min-width: 1100px) {
  .vbhs-header__nav {
    font-size: 1.125rem;
    column-gap: 1.5rem;
  }
}

/* Default: no underline (theme often underlines all header links) */
.vbhs-header__nav a,
.vbhs-header__nav-link,
.vbhs-menu-wrap a.vbhs-header__nav-link,
.vbhs-menu-legacy a.vbhs-header__nav-link {
  color: #1a6bb5 !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  white-space: nowrap;
  padding: 0.25rem 0.25rem;
  transition: color 0.15s ease;
}

@media (min-width: 640px) {
  .vbhs-header__nav a,
  .vbhs-header__nav-link {
    padding: 0.25rem 0.375rem;
  }
}

.vbhs-header__nav-link:hover {
  color: #0d4d7a !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
}

/* Active only — same as app (font-semibold + decoration-2 + offset-4) */
.vbhs-header__nav-link--active,
.vbhs-header__nav a.vbhs-header__nav-link--active {
  color: #0d4d7a !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  text-decoration-color: #0d4d7a !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 4px !important;
}

.vbhs-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 2.75rem;
  justify-self: end;
  flex-shrink: 0;
}

.vbhs-header--loading .vbhs-auth--guest,
.vbhs-header--loading .vbhs-auth--user {
  visibility: hidden;
  pointer-events: none;
}

html.vbhs-signed-in .vbhs-auth--guest,
html.vbhs-signed-in .vbhs-auth__sign-in,
.vbhs-header--signed-in .vbhs-auth--guest {
  display: none !important;
}

.vbhs-auth--user {
  display: flex !important;
}

.vbhs-auth {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 640px) {
  .vbhs-auth {
    gap: 0.5rem;
  }
}

.vbhs-auth--hidden,
.vbhs-auth[hidden] {
  display: none !important;
}

.vbhs-auth__sign-in {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 10rem;
  height: 2.25rem;
  padding: 0 1rem;
  border: 0 !important;
  border-radius: 9999px !important;
  background: #0f4f78 !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(15, 79, 120, 0.2);
  transition: background 0.15s ease;
}

.vbhs-auth__sign-in:hover,
.vbhs-auth__sign-in:focus {
  background: #0d4d7a !important;
  color: #fff !important;
}

.vbhs-auth__icon-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  border: none !important;
  border-radius: 0.75rem;
  background: transparent;
  color: #0f4f78 !important;
  text-decoration: none !important;
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease;
  padding: 0;
}

.vbhs-auth__icon-btn:hover {
  background: rgba(186, 230, 253, 0.7) !important;
}

.vbhs-icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  pointer-events: none;
}

.vbhs-auth__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 0.25rem;
  border-radius: 9999px;
  background: #1a6bb5;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.125rem;
  text-align: center;
}

.vbhs-auth__badge[hidden] {
  display: none !important;
}

.vbhs-auth__account {
  position: relative;
  margin-left: 0.15rem;
}

.vbhs-auth__avatar-btn {
  display: inline-flex !important;
  padding: 0;
  border: none !important;
  background: transparent !important;
  cursor: pointer;
  border-radius: 1rem;
  line-height: 0;
}

.vbhs-auth__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 1rem;
  object-fit: cover;
}

.vbhs-auth__avatar--img {
  display: block !important;
  background: #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  outline: 2px solid rgba(26, 107, 181, 0.25);
}

.vbhs-auth__avatar--initial {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: #1d81c2;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(29, 129, 194, 0.25);
  outline: 2px solid rgba(26, 107, 181, 0.25);
}

.vbhs-auth__avatar--img[hidden],
.vbhs-auth__avatar--initial[hidden] {
  display: none !important;
}

.vbhs-auth__dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 99999;
  min-width: 14rem;
  max-width: min(100vw - 1.5rem, 16rem);
  padding: 0.25rem 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.vbhs-auth__dropdown[hidden] {
  display: none !important;
}

.vbhs-auth__dropdown-name {
  margin: 0;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
}

.vbhs-auth__dropdown-item {
  display: block;
  padding: 0.55rem 0.75rem;
  color: #0f172a !important;
  font-size: 0.875rem;
  text-decoration: none !important;
}

.vbhs-auth__dropdown-item:hover {
  background: #f1f5f9;
}

.vbhs-auth__dropdown-sep {
  margin: 0.25rem 0;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.vbhs-menu-wrap,
.vbhs-auth-legacy {
  display: flex;
  align-items: center;
  justify-content: center;
}

.vbhs-menu-wrap--bordered,
.vbhs-auth-wrap--bordered {
  border: 1px solid #1a1a1a;
  padding: 0.35rem 0.75rem;
  border-radius: 2px;
}

.vbhs-menu-legacy {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1rem;
  row-gap: 0.5rem;
}

@media (min-width: 640px) {
  .vbhs-menu-legacy {
    column-gap: 1.25rem;
  }
}

@media (min-width: 1100px) {
  .vbhs-menu-legacy {
    column-gap: 1.5rem;
  }
}
