:host {
  display: inline-block;
  position: relative;
}

.hb-dropdown__trigger {
  display: inline-block;
  cursor: pointer;
}

.hb-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 120px;
  margin-top: 4px;
  padding: 4px 0;
  background-color: var(--hb-color-bg-elevated);
  border-radius: var(--hb-border-radius-base);
  box-shadow: var(--hb-box-shadow);
  animation: hb-dropdown-fade-in 0.15s ease-out;
}

.hb-dropdown__item {
  display: flex;
  align-items: center;
  padding: 6px 16px;
  font-size: var(--hb-font-size-sm);
  color: var(--hb-color-text);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--hb-transition-duration);
}

.hb-dropdown__item:hover:not(.hb-dropdown__item--disabled) {
  background-color: var(--hb-color-fill-tertiary);
  color: var(--hb-color-primary);
}

.hb-dropdown__item--disabled {
  color: var(--hb-color-text-disabled);
  cursor: not-allowed;
}

.hb-dropdown__item--divided {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--hb-color-border-secondary);
}

.hb-dropdown__item--danger {
  color: var(--hb-color-danger);
}
.hb-dropdown__item--danger:hover:not(.hb-dropdown__item--disabled) {
  background-color: var(--hb-color-danger-bg);
  color: var(--hb-color-danger);
}

@keyframes hb-dropdown-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
