/* 🌙 Dropdown container */
.user-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #2d2c3e;
  border: 2px solid #EB9532;
  /* orange */
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.user-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(235, 149, 50, 0.6);
}

.dropdown {
  position: relative;
  display: inline-block;
}

/* Trigger (profile image) */
.dropdown-trigger {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.profile-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid orange;
  background: #2a2a3b;
  transition: transform 0.2s, box-shadow 0.2s;
}

.profile-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
}

/* Dropdown menu */
.dropdown-content {
  display: none;
  position: absolute;
  background: rgba(43, 42, 42, 0.4);
  min-width: 160px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  z-index: 999;
  animation: fadeOut 0.25s ease forwards;
  top: 35px;
  /* below icon */
  right: 0;
}

.dropdown-content.show {
  display: block;
}

.dropdown-content a {
  color: #fff;
  padding: 8px;
  text-decoration: none;
  display: block;
  transition: background 0.25s;
  font-size: 14px;
}

.dropdown-content a:hover {
  background: #2a9d8f;
}

@keyframes fadeOut {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 📱 Responsive */
@media (max-width: 480px) {

  .user-icon {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #2d2c3e;
    border: 2px solid #EB9532;
    /* orange */
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .user-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(235, 149, 50, 0.6);
  }

  .dropdown-trigger {
    font-size: 16px;
    padding: 10px 14px;
  }

  .dropdown-content {
    min-width: 100px;
    top: 30px;
    background: rgba(0, 0, 0, 0.9);
  }

  .dropdown-content a {
    color: #fff;
    padding-left: 4px;
    padding-right: 8px;
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 12px;
    white-space: nowrap;
  }

}