/* Header */
.header {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  width: calc(100vw - var(--sidebar-w));
  height: var(--header-h);
  background: var(--GlobalWhite);
  display: flex;
  align-items: center;
  padding: 0 40px;
  box-sizing: border-box;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Header title */
.header-title {
  margin-right: auto;
  width: 319px;
  height: 24px;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  line-height: 120%;
  color: var(--GlobalBlack);
  flex: none;
  order: 0;
  flex-grow: 0;
}

/* Mobile Logo - hidden on desktop */
.header-logo-mobile {
  display: none;
  height: 40px;
  width: auto;
}

/* Header right section */
.header-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  gap: 16px;
  margin-left: auto;
  width: 104px;
  height: 56px;
  flex: none;
  order: 1;
  flex-grow: 0;
}
/* Help button */
.header-help-btn {
  width: 20px;
  height: 20px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  flex: none;
  order: 0;
  flex-grow: 0;
  transition: background 0.1s ease;
}

.header-icon {
  width: 100%;
  height: 100%;
}

/* circleBadge for header */
.header-right .circleBadge {
  width: 56px;
  height: 56px;
  border: 3px solid var(--GlobalBlue);
  background: var(--GlobalWhite);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: none;
  order: 1;
  flex-grow: 0;
  transition: background 0.1s ease;
}

.header-right .circleBadge span {
  width: 27.94px;
  height: 14.24px;
  color: var(--GlobalLightBlue);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 20px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* User Menu Wrapper */
.user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Submenu */
.submenu {
  position: fixed;
  top: 96px;
  right: 40px;
  width: 150px;
  height: 158px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  background: var(--GlobalBlue);
  box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1);
  border-radius: 20px 0px 20px 20px;
  z-index: 25000;
}

.submenu.hidden {
  display: none;
}

/* Submenu Items */
.submenu-item {
  width: 130px;
  height: 46px;
  padding: 8px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 120%;
  color: var(--GlobalLinkGray);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.1s ease;
}

.submenu-item:hover {
  background: var(--GlobalBlueHover);
}

/* Button reset for logout */
.submenu-logout {
  width: 130px;
}

/* ===============================
   MOBILE RESPONSIVE
   =============================== */
@media (max-width: 768px) {
  .header {
    left: 0; /* No sidebar offset on mobile */
    width: 100%;
    padding: 0 16px;
    height: 80px;
  }

  /* Show mobile logo, hide desktop title */
  .header-logo-mobile {
    display: block;
  }

  .header-title {
    display: none;
  }

  .header-help-btn {
    display: none; /* Hide help button on mobile */
  }

  .header-right {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    width: auto;
  }
}
