/* Button Animation Styles - Override any conflicting styles */

/* Shine effect keyframes */
@keyframes button-shine {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  20% {
    opacity: 0.5;
  }
  80% {
    opacity: 0.5;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Add shine overlay to buttons */
.button {
  position: relative;
  overflow: hidden;
}

.button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  z-index: 1;
  transform: translateX(-100%);
}

/* Apply shine effect on hover */
.button:hover::after {
  animation-name: button-shine !important;
  animation-duration: 1s !important;
  animation-timing-function: ease !important;
  animation-delay: 0s !important;
  animation-iteration-count: 1 !important;
  animation-fill-mode: forwards !important;
  animation-direction: normal !important;
}

/* Gentle hover transition */
.button {
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.button--primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
}

/* Pulsating animation for sending state */
@keyframes pulse-bg {
  0% {
    background-color: var(--color-primary-red);
  }
  50% {
    background-color: var(--color-primary-light); /* A lighter shade of your primary color */
  }
  100% {
    background-color: var(--color-primary-red);
  }
}

.button.is-sending {
  animation: pulse-bg 1.5s infinite ease-in-out;
  cursor: wait;
}
