/*
 * Ultra-minimal inline CSS for absolute compatibility
 * High-specificity selectors with !important for universal compatibility
 */

/* Remove all Bootstrap default dropdown behaviors */
.dropdown::after,
.dropdown-toggle::after,
.dropdown::before,
.dropdown-toggle::before,
body [data-bs-toggle="dropdown"]::after,
body [data-bs-toggle="dropdown"]::before {
  display: none !important;
}

/* Ensure our dropdown has highest priority */
.navbar-user-dropdown {
  position: relative !important;
  z-index: 9999 !important;
  display: inline-block !important;
  margin-left: 10px !important;
}

/* Ensure button styling works on all pages */
.navbar-user-dropdown-btn {
  display: flex !important;
  align-items: center !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
  border: none !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
  border-radius: 4px !important;
  cursor: pointer !important;
}

/* Ensure username display is consistent */
.navbar-user-dropdown-btn .username {
  margin: 0 6px !important;
  max-width: 120px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Ensure caret displays properly */
.navbar-user-dropdown-btn .caret {
  width: 0 !important;
  height: 0 !important;
  margin-left: 4px !important;
  border-left: 4px solid transparent !important;
  border-right: 4px solid transparent !important;
  border-top: 4px solid white !important;
  display: inline-block !important;
}

/* Ensure dropdown content displays properly */
.navbar-user-content {
  /* Initial state is hidden */
  display: none !important;
  /* Absolute positioning relative to parent */
  position: absolute !important;
  right: 0 !important;
  top: 100% !important;
  /* Ensure it's above everything */
  z-index: 10000 !important;
  /* Basic styling */
  background-color: #fff !important;
  min-width: 180px !important;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15) !important;
  border-radius: 4px !important;
  margin-top: 6px !important;
}

/* Dropdown links */
.navbar-user-content a {
  color: #333 !important;
  padding: 12px 16px !important;
  text-decoration: none !important;
  display: block !important;
  font-size: 14px !important;
}

/* Dropdown links hover */
.navbar-user-content a:hover {
  background-color: #f5f5f5 !important;
  color: #0d6efd !important;
}

/* Avatar circle */
.circle-initial {
  width: 24px !important;
  height: 24px !important;
  background-color: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

/* Universal page-specific overrides with highest specificity */
html body .navbar-user-dropdown,
html body.dashboard .navbar-user-dropdown,
html body.freelancer .navbar-user-dropdown,
html body.index .navbar-user-dropdown {
  z-index: 9999 !important;
}

html body .navbar-user-content,
html body.dashboard .navbar-user-content,
html body.freelancer .navbar-user-content,
html body.index .navbar-user-content {
  z-index: 10000 !important;
}
