/* Scroll to Top/Bottom Buttons */
.scroll-buttons-container {
  position: fixed;
  bottom: 150px;  /* Moved higher */
  right: 30px;
  z-index: 999;  /* Lower than debug widget (1000) */
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scroll-btn {
  width: 32px;  /* Reduced by 70% from 45px */
  height: 32px;  /* Reduced by 70% from 45px */
  border-radius: 50%;
  background-color: #87CEEB;  /* Light sky blue */
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}

.scroll-btn:hover {
  background-color: #6BB6D6;  /* Slightly darker light blue on hover */
  transform: scale(1.05);  /* Reduced hover scale */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.scroll-btn.show {
  opacity: 0.6;  /* More subtle opacity */
  visibility: visible;
}

.scroll-btn:hover {
  opacity: 0.85;
}

.scroll-btn svg {
  width: 14px;  /* Reduced by 70% from 20px */
  height: 14px;  /* Reduced by 70% from 20px */
  fill: currentColor;
}

/* Dark theme adjustments */
[data-bs-theme='dark'] .scroll-btn {
  background-color: #5A8FA3;  /* Muted blue-gray for dark theme */
  color: white;
}

[data-bs-theme='dark'] .scroll-btn:hover {
  background-color: #6FA4BA;  /* Slightly lighter on hover */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .scroll-buttons-container {
    bottom: 90px;  /* Moved higher for mobile */
    right: 20px;
  }
  
  .scroll-btn {
    width: 28px;  /* Reduced for mobile */
    height: 28px;
  }
  
  .scroll-btn svg {
    width: 12px;  /* Reduced for mobile */
    height: 12px;
  }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Optional: Add animation when buttons appear/disappear */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 0.6;
    transform: translateY(0);
  }
}

.scroll-btn.show {
  animation: fadeInUp 0.3s ease-out forwards;
}