import streamlit as st def apply_bg(url: str = None, overlay: str = "rgba(0,0,0,0.60)") -> None: """Apply full-page background image with overlay. Single authoritative selector.""" if url: bg = ( f"linear-gradient(180deg,rgba(0,0,0,0.62) 0%,rgba(0,0,0,0.48) 50%,rgba(0,0,0,0.62) 100%)," f"url(\'{url}\') center center / cover no-repeat fixed" ) else: bg = "linear-gradient(135deg,#1a0f08 0%,#2d1810 50%,#1a0f08 100%)" st.markdown(f""" """, unsafe_allow_html=True)