/* ==========================================
   Sticky Quick Actions
========================================== */

.quick-actions {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 9999;

  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;

  pointer-events: none;
}

.quick-actions__item {
  pointer-events: auto;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 72px;
  height: 72px;
  padding-right: 0;

  overflow: hidden;

  border-radius: 18px 0 0 18px;

  text-decoration: none;
  color: white;

  background: linear-gradient(135deg, #0c3c4c, #145c72);

  box-shadow:
    0 12px 30px rgba(0,0,0,.18),
    0 4px 10px rgba(0,0,0,.08);

  backdrop-filter: blur(12px);

  transition:
    width .35s ease,
    transform .25s ease,
    box-shadow .25s ease,
    background .25s ease,
    justify-content .35s ease,
    padding-right .35s ease;
}

.quick-actions__item:hover {
  width: 285px;
  padding-right: 22px;
  justify-content: flex-end;

  background: linear-gradient(135deg, #0f4f63, #1d7895);
  color: white;
  /* transform: translateX(-8px); */

  box-shadow:
    0 20px 45px rgba(0,0,0,.25),
    0 8px 18px rgba(0,0,0,.15);
}

.quick-actions__label {
  white-space: nowrap;

  font-size: 15px;
  font-weight: 600;
  letter-spacing: .2px;

  max-width: 0;
  margin-right: 0;
  overflow: hidden;

  opacity: 0;
  transform: translateX(20px);

  transition:
    opacity .25s ease,
    transform .35s ease,
    max-width .35s ease,
    margin-right .35s ease;
}

.quick-actions__item:hover .quick-actions__label {
  max-width: 200px;
  margin-right: 16px;

  opacity: 1;
  transform: translateX(0);
}

.quick-actions__icon {
  width: 72px;
  height: 72px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 24px;

  position: relative;
}

.quick-actions__icon::before {
  content: "";

  position: absolute;
  width: 46px;
  height: 46px;

  border-radius: 50%;

  background: rgba(255,255,255,.12);

  transition: .3s;
}

.quick-actions__item:hover .quick-actions__icon::before {
  transform: scale(1.15);
  background: rgba(255,255,255,.18);
}

.quick-actions__icon i {
  position: relative;
  z-index: 1;
  transition: transform .3s;
}

.quick-actions__item:hover .quick-actions__icon i {
  transform: scale(1.12) rotate(-8deg);
}

/* Floating entrance animation */

.quick-actions__item {
  animation: slideIn .5s ease backwards;
}

.quick-actions__item:nth-child(2) {
  animation-delay: .08s;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(80px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Mobile */

@media (max-width: 575px) {

  .quick-actions {
    gap: 10px;
  }

  .quick-actions__item {
    width: 58px;
    height: 58px;
    padding-right: 0;
    border-radius: 14px 0 0 14px;
  }

  .quick-actions__item:hover {
    width: 240px;
    padding-right: 16px;
  }

  .quick-actions__icon {
    width: 58px;
    height: 58px;
    font-size: 18px;
  }

  .quick-actions__icon::before {
    width: 38px;
    height: 38px;
  }

  .quick-actions__label {
    font-size: 14px;
  }

}