/* ==========================================================================
   WPM User Dropdown & Navigation Menu Styles
   --------------------------------------------------------------------------
   Ensures consistent vertical icon and text alignment in user navigation
   menus, as well as proper breathing room between user avatar and badges.
   ========================================================================== */

/* User avatar spacing in dropdown menus and user boxes */
.profile-userpic,
.wpm-user-dropdown-menu .profile-userpic {
  margin: 14px auto 26px auto !important;
}

/* User title container */
.profile-usertitle-name,
.wpm-user-dropdown-menu .profile-usertitle-name {
  margin-top: 4px !important;
  margin-bottom: 16px !important;
  text-align: center !important;
}

.profile-usertitle-name a,
.wpm-user-dropdown-menu .profile-usertitle-name a {
  display: block !important;
  text-decoration: none !important;
  color: inherit !important;
}

/* Custom username badge (boxen_usernamen_color div) or default badge */
.profile-usertitle-name div,
.profile-usertitle-name span.wpm-user-badge,
.profile-usertitle-name .badge,
.wpm-user-dropdown-menu .profile-usertitle-name div,
.wpm-user-dropdown-menu .profile-usertitle-name span.wpm-user-badge {
  display: inline-block !important;
  margin: 2px auto 6px auto !important;
  vertical-align: middle !important;
  max-width: 100% !important;
}

/* User group/rank title below badge */
.profile-usertitle-name .wpm-user-role,
.wpm-user-dropdown-menu .profile-usertitle-name .wpm-user-role {
  display: block !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #e2e8f0 !important;
  margin-top: 6px !important;
  letter-spacing: 0.3px !important;
  text-transform: none !important;
}

/* ==================== DROPDOWN MENU ALIGNMENT ==================== */
.wpm-user-dropdown-menu {
  min-width: 240px !important;
  padding: 8px 0 !important;
}

.wpm-user-dropdown-menu > li > a,
.dropdown-menu > li > a {
  display: flex !important;
  align-items: center !important;
  padding: 8px 18px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}

.wpm-user-dropdown-menu > li > a:hover,
.wpm-user-dropdown-menu > li > a:focus,
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
  text-decoration: none !important;
}

/* Fixed-width centered icon column */
.wpm-user-dropdown-menu > li > a > .wpm-menu-icon,
.dropdown-menu > li > a > .wpm-menu-icon,
.wpm-user-dropdown-menu > li > a > i:first-child,
.dropdown-menu > li > a > i:first-child,
.wpm-user-dropdown-menu > li > a > img:first-child,
.dropdown-menu > li > a > img:first-child {
  width: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  height: 24px !important;
  text-align: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 12px !important;
  flex-shrink: 0 !important;
  font-size: 14px !important;
}

.wpm-user-dropdown-menu > li > a > .wpm-menu-icon i,
.dropdown-menu > li > a > .wpm-menu-icon i {
  text-align: center !important;
  margin: 0 !important;
  display: inline-block !important;
}

/* Straight text alignment */
.wpm-user-dropdown-menu > li > a > .wpm-menu-text,
.dropdown-menu > li > a > .wpm-menu-text {
  flex: 1 1 auto !important;
  text-align: left !important;
  white-space: nowrap !important;
}

.wpm-menu-badge {
  display: inline-block !important;
  margin-left: 6px !important;
  vertical-align: middle !important;
}

/* ==========================================================================
   WPM Auth & Member Profile Navigation Tabs
   --------------------------------------------------------------------------
   Ensures consistent button spacing, responsive wrapping, and proper
   breathing room between buttons and the separator line, as well as between
   the separator line and the form controls below.
   ========================================================================== */
.wpm-auth-tabs,
.wpm-profile-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px 10px !important;
  padding-bottom: 14px !important;
  margin-bottom: 22px !important;
}

.wpm-auth-tabs::before,
.wpm-auth-tabs::after,
.wpm-profile-tabs::before,
.wpm-profile-tabs::after {
  display: none !important;
}

.wpm-auth-tabs > li,
.wpm-profile-tabs > li {
  float: none !important;
  margin: 0 !important;
  display: inline-flex !important;
}

.wpm-auth-tabs > li > a,
.wpm-profile-tabs > li > a {
  margin-right: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  border-radius: 20px !important;
  padding: 8px 18px !important;
  transition: all 0.2s ease !important;
}

.wpm-auth-tabs > li.active > a,
.wpm-auth-tabs > li.active > a:hover,
.wpm-auth-tabs > li.active > a:focus,
.wpm-profile-tabs > li.active > a,
.wpm-profile-tabs > li.active > a:hover,
.wpm-profile-tabs > li.active > a:focus {
  border-bottom-color: inherit !important;
}

