/* Back to Top Button Styles */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #46B088 0%, #3A9B7A 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(70, 176, 136, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

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

.back-to-top:hover {
    background: linear-gradient(135deg, #3A9B7A 0%, #2E7A5F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(70, 176, 136, 0.4);
}

.back-to-top:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(70, 176, 136, 0.3);
}

/* Back to Top Icon */
.back-to-top-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.back-to-top:hover .back-to-top-icon {
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .back-to-top-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .back-to-top-icon {
        width: 18px;
        height: 18px;
    }
}

/* Animation for smooth appearance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-to-top.show {
    animation: fadeInUp 0.3s ease-out;
}

/* Focus styles for accessibility */
.back-to-top:focus {
    outline: 2px solid #46B088;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .back-to-top {
        background: #000;
        border: 2px solid #fff;
    }
    
    .back-to-top:hover {
        background: #333;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .back-to-top,
    .back-to-top-icon {
        transition: none;
    }
    
    .back-to-top.show {
        animation: none;
    }
}
