.ChangeAvatar {
  display: flex;
  justify-content: center;
  align-items: center;

  .avatarUpload {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
  }

  .avatarContainer {
    width: 100px;
    height: 100px;
    position: relative;
    cursor: pointer;
    border-radius: 50%;
    background-color: #f5f5f5;
    // BUGFIX: Improve visibility of the avatar edit button
    // Issue: Using overflow:hidden clipped the edit button so users could not see it completely
    // Fix: Switch to overflow: visible so the button remains fully visible outside the avatar area
    overflow: visible;

    :global(.ui-avatar) {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      overflow: hidden;
    }

    .editIcon {
      position: absolute;
      display: flex;
      align-items: center;
      justify-content: center;
      bottom: -4px;
      right: -4px;
      width: 32px;
      height: 32px;
      // BUGFIX: Refine edit-button styling
      // Issue: The edit button did not match the design, missing brand color and visual hierarchy
      // Fix: Add a blue background, circular shape, white border, and shadow so the button stands out on any background
      background-color: #1890ff;
      border-radius: 50%;
      border: 2px solid white;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
      z-index: 10;
    }
  }
}
