/* Reusable dropdown animation and helpers for action-dropdown-menu */
.action-dropdown-menu.invisible {
  display: block; /* keep block so we can measure, but visually hidden via opacity/transform */
}

.action-dropdown-menu.invisible {
  opacity: 0;
  transform: translateY(-4px) scale(0.995);
  transition: opacity 150ms ease, transform 150ms ease;
}

.action-dropdown-menu.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 180ms cubic-bezier(.2,.9,.2,1), transform 180ms cubic-bezier(.2,.9,.2,1);
}

/* Slight, subtle float-in animation */
.action-dropdown-menu.show-animate {
  animation: dropdown-float-in 180ms ease forwards;
}

.action-dropdown-menu.hidden-animate {
  animation: dropdown-float-out 140ms ease forwards;
}

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

@keyframes dropdown-float-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-4px) scale(0.995); }
}

/* Optional small shadow tweak to make it feel above other content */
.action-dropdown-menu {
  box-shadow: 0 6px 18px rgba(20,20,30,0.06), 0 2px 6px rgba(20,20,30,0.04);
}
