/* Force overlay and scroll button styles */
#loadingOverlay {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.85) !important;
    z-index: 99999 !important;
    justify-content: center !important;
    align-items: center !important;
}

#loadingOverlay.show {
    display: flex !important;
}

.loading-content {
    text-align: center !important;
    color: white !important;
}

.loading-spinner {
    width: 60px !important;
    height: 60px !important;
    border: 5px solid rgba(255, 255, 255, 0.3) !important;
    border-top: 5px solid #ffffff !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
    margin: 0 auto 20px !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.3rem !important;
    font-weight: 500 !important;
    color: white !important;
}

#scrollToTop {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 50px !important;
    height: 50px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    font-size: 24px !important;
    cursor: pointer !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    z-index: 99998 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#scrollToTop.show {
    opacity: 0.7 !important;
    visibility: visible !important;
}

#scrollToTop.show:hover {
    opacity: 1 !important;
}
