/* Profile Menu - Vertical Dropdown */
.profileMenuContainer {
  position: relative;
  margin: 0;
}

.profileMenuTrigger {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid var(--topbarIconColour, #fff);
  color: var(--topbarIconColour, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.profileMenuTrigger:hover {
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border-color: var(--topbarIconColour, #fff);
}

.profileMenuTrigger i {
  font-size: 1.2rem;
}

/* Dropdown Panel */
.profileDropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 200px;
  background: #fff;
  border-radius: 8px;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
  z-index: 1050;
  overflow: hidden;
}

.profileMenuContainer:hover .profileDropdown,
.profileMenuContainer.open .profileDropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profileMenuContainer:hover .profileMenuTrigger,
.profileMenuContainer.open .profileMenuTrigger {
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Dropdown Header */
.profileDropdownHeader {
  padding: 14px 16px;
  background: var(--secondaryColour);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.profileDropdownHeader i {
  margin-right: 8px;
  opacity: 0.9;
}

/* Menu Items */
.profileDropdownMenu {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.profileDropdownItem {
  display: block;
}

.profileDropdownItem a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  color: #444;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.profileDropdownItem a:hover {
  background: #f5f7f9;
  color: var(--primaryColour);
}

.profileDropdownItem a i {
  width: 18px;
  text-align: center;
  font-size: 14px;
  color: #888;
  transition: color 0.15s ease;
}

.profileDropdownItem a:hover i {
  color: var(--primaryColour);
}

/* Divider */
.profileDropdownDivider {
  height: 1px;
  background: #eee;
  margin: 6px 12px;
  list-style: none;
}

/* Logout specific styling */
.profileDropdownItem.logout a {
  color: #c53030;
}

.profileDropdownItem.logout a i {
  color: #c53030;
}

.profileDropdownItem.logout a:hover {
  background: #fef2f2;
  color: #991b1b;
}

.profileDropdownItem.logout a:hover i {
  color: #991b1b;
}

/* Small arrow pointer on dropdown */
.profileDropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 14px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.04);
  z-index: -1;
}
