/* recent-activity.css (HEADER pill) */

.ra-wrap{
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* pill sits to the LEFT of icon, without pushing any header items */
.ra-pill{
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateY(-4px);
  background: #eeeeee;                 /* light gray box */
  color: #1f1f1f;
  font-size: 13px;
  line-height: 1.2;
  padding: 9px 12px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);

  white-space: nowrap;
  overflow: hidden;
  max-width: 360px;

  opacity: 0;
  pointer-events: none;

  /* reveal from RIGHT (icon side) -> LEFT */
  clip-path: inset(0 0 0 100%);
  transition:
    clip-path 1.1s cubic-bezier(.2,.9,.2,1),
    opacity .25s ease,
    transform .6s ease;
}

/* subtle connector line that "starts like a drop" + fades at end */
.ra-pill::after{
  content:"";
  position:absolute;
  right:-10px;
  top:50%;
  transform: translateY(-50%);
  width: 10px;
  height: 2px;
  background: linear-gradient(90deg, rgba(180,180,180,0) 0%, rgba(180,180,180,0.9) 70%, rgba(180,180,180,0) 100%);
  opacity: 0;
  transition: opacity .25s ease;
}

/* open state */
.ra-wrap.ra-open .ra-pill{
  opacity: 1;
  transform: translateY(-50%) translateY(0px);
  clip-path: inset(0 0 0 0);
}

.ra-wrap.ra-open .ra-pill::after{
  opacity: 1;
}

/* keep icon look same as other icons */
.ra-btn{
  /* no extra styling; existing .header-widget styles apply */
}

/* Mobile: shorter pill */
@media (max-width: 767px){
  .ra-pill{
    max-width: 240px;
    font-size: 12px;
    padding: 8px 10px;
    right: calc(100% + 8px);
  }
}