/* Back to Top Button Styles */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B82F6, #10B981);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    text-decoration: none;
    left: auto;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: scale(1.1) translateY(0);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #2563EB, #059669);
}

.back-to-top:active {
    transform: scale(0.95) translateY(0);
}

.back-to-top i {
    font-size: 16px;
    line-height: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        left: auto;
        width: 38px;
        height: 38px;
    }
    
    .back-to-top i {
        font-size: 14px;
    }
}

/* Accessibility improvements */
.back-to-top:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* Hide on print */
@media print {
    .back-to-top {
        display: none !important;
    }
}

/* Smooth scroll for browsers that support it */
html {
    scroll-behavior: smooth;
}

/* Fallback for older browsers */
@supports not (scroll-behavior: smooth) {
    html {
        scroll-behavior: auto;
    }
}
