#back-to-top {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: rgba(52, 152, 219, 0.8);
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#back-to-top:hover {
  background-color: rgba(41, 128, 185, 1);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

#back-to-top.show {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  #back-to-top {
    background-color: rgba(52, 152, 219, 0.9);
  }
  
  /* Citation section removed as paper has not been published yet */
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
  #back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    padding: 12px;
  }
}
