/* Scroll to Top Button Styles */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 99;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    color: white;
}

.scroll-to-top i {
    font-size: 1.2rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        left: 20px;
        width: 40px;
        height: 40px;
    }
    
    .scroll-to-top i {
        font-size: 1rem;
    }
}

/* When dark mode toggle and floating appointment button are visible, adjust position */
@media (min-width: 768px) {
    .scroll-to-top {
        bottom: 90px;
    }
}

/* Dark mode styles */
.dark-mode .scroll-to-top {
    background-color: var(--primary-color);
}

.dark-mode .scroll-to-top:hover {
    background-color: var(--primary-color-dark);
}
