/* User Header Profile Dropdown Block styling */
.header-user-actions-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

.header-user-actions-wrapper .header-action-icon {
  font-size: 20px;
  color: #64748b;
  transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.header-user-actions-wrapper .user-header-profile {
  position: relative;
  padding: 5px 0;
}

.header-user-actions-wrapper .user-header-profile .profile-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.header-user-actions-wrapper .user-header-profile .profile-trigger .profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease-in-out;
}

.header-user-actions-wrapper .user-header-profile .profile-trigger .profile-avatar .user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-user-actions-wrapper .user-header-profile .profile-trigger .profile-avatar .user-avatar-icon {
  font-size: 16px;
  color: #64748b;
}

.header-user-actions-wrapper .user-header-profile .profile-trigger .profile-username {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  transition: color 0.2s ease-in-out;
}

.header-user-actions-wrapper .user-header-profile .profile-trigger:hover .profile-avatar {
  border-color: #04519b;
  box-shadow: 0 0 0 3px rgba(4, 81, 155, 0.15);
}

.header-user-actions-wrapper .user-header-profile .profile-trigger:hover .profile-username {
  color: #033c73;
}

/* The Dropdown box */
.header-user-actions-wrapper .user-header-profile .profile-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  min-width: 240px;
  padding: 16px 0 8px 0;
  z-index: 1100;
  
  /* Hide state by default */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Caret arrow */
.header-user-actions-wrapper .user-header-profile .profile-dropdown::after {
  content: "";
  position: absolute;
  top: -6px;
  right: 18px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  border-left: 1px solid #e2e8f0;
  transform: rotate(45deg);
}

/* Safe hover bridge */
.header-user-actions-wrapper .user-header-profile .profile-dropdown::before {
  content: "";
  position: absolute;
  top: -12px;
  right: 0;
  width: 100%;
  height: 12px;
  background: transparent;
}

.header-user-actions-wrapper .user-header-profile .profile-dropdown .dropdown-user-info {
  padding: 0 20px 12px 20px;
}

.header-user-actions-wrapper .user-header-profile .profile-dropdown .dropdown-user-info .dropdown-user-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
  margin-bottom: 2px;
}

.header-user-actions-wrapper .user-header-profile .profile-dropdown .dropdown-user-info .dropdown-user-email {
  font-size: 0.8rem;
  color: #64748b;
  word-break: break-all;
}

.header-user-actions-wrapper .user-header-profile .profile-dropdown .dropdown-divider {
  height: 1px;
  background: #f1f5f9;
  margin-bottom: 8px;
}

.header-user-actions-wrapper .user-header-profile .profile-dropdown .dropdown-menu-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.header-user-actions-wrapper .user-header-profile .profile-dropdown .dropdown-menu-links li {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
}

.header-user-actions-wrapper .user-header-profile .profile-dropdown .dropdown-menu-links li a.menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: #334155 !important;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
  width: 100%;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.header-user-actions-wrapper .user-header-profile .profile-dropdown .dropdown-menu-links li a.menu-link i {
  font-size: 16px;
  color: #64748b;
  width: 20px;
  text-align: center;
  transition: color 0.15s ease-in-out;
}

.header-user-actions-wrapper .user-header-profile .profile-dropdown .dropdown-menu-links li a.menu-link:hover {
  background: #f8fafc;
  color: #04519b !important;
}

.header-user-actions-wrapper .user-header-profile .profile-dropdown .dropdown-menu-links li a.menu-link:hover i {
  color: #04519b;
}

/* Special red style for logout */
.header-user-actions-wrapper .user-header-profile .profile-dropdown .dropdown-menu-links li a.menu-link.log-out {
  color: #ef4444 !important;
}

.header-user-actions-wrapper .user-header-profile .profile-dropdown .dropdown-menu-links li a.menu-link.log-out i {
  color: #ef4444;
}

.header-user-actions-wrapper .user-header-profile .profile-dropdown .dropdown-menu-links li a.menu-link.log-out:hover {
  background: #fef2f2;
  color: #dc2626 !important;
}

.header-user-actions-wrapper .user-header-profile .profile-dropdown .dropdown-menu-links li a.menu-link.log-out:hover i {
  color: #dc2626;
}

/* Hover state to trigger dropdown visibility */
.header-user-actions-wrapper .user-header-profile:hover .profile-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
