/* Scroll to Top Button Styles */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color, #007bff);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
}

/* Animation for the button */
.scroll-to-top.animate {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--primary-rgb, 0, 123, 255), 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(var(--primary-rgb, 0, 123, 255), 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--primary-rgb, 0, 123, 255), 0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
  
  .scroll-to-top svg {
    width: 20px;
    height: 20px;
  }
}