import streamlit as st def apply_enhanced_custom_css(): current_theme = st.session_state.get("theme", "dark") colors = { "light": { "bg_primary": "#e0f2f7", "bg_secondary": "#b3e5ee", "text_primary": "#1a1a1a", "text_secondary": "#1a1a1a", "border": "rgba(0, 0, 0, 0.1)", "shadow": "rgba(0, 0, 0, 0.1)", "input_bg": "#b3e5ee", "input_border": "#e0e0e0", "title_gradient": "linear-gradient(120deg, #06b6d4, #0891b2, #06b6d4)", "typical_question_bg": "#b3e5ee", "typical_question_text": "#1a1a1a", "header_bg": "#b3e5ee", "footer_bg": "#b3e5ee", "button_bg": "#b3e5ee", "button_text": "#1a1a1a", "input_text": "#000000", "input_placeholder": "rgba(0, 0, 0, 0.6)", "chat_message_bg": "rgba(179, 229, 238, 0.7)", "button_hover_bg": "#0891b2", "button_hover_text": "#FFFFFF", "input_focus_border": "#0891b2" }, "dark": { "bg_primary": "#04768a", "bg_secondary": "#035d6d", "text_primary": "#ffffff", "text_secondary": "#ffffff", "border": "rgba(255, 255, 255, 0.2)", "shadow": "rgba(0, 0, 0, 0.3)", "input_bg": "#035d6d", "input_border": "#04768a", "title_gradient": "linear-gradient(120deg, #00ffff, #00ccff, #00ffff)", "typical_question_bg": "#024857", "typical_question_text": "#ffffff", "header_bg": "#035d6d", "footer_bg": "#035d6d", "button_bg": "#024857", "button_text": "#ffffff", "input_text": "#ffffff", "input_placeholder": "rgba(255, 255, 255, 0.6)", "chat_message_bg": "rgba(3, 93, 109, 0.7)", "button_hover_bg": "#046d82", "button_hover_text": "#ffffff", "input_focus_border": "#00ccff" } } theme_colors = colors[current_theme] css = f""" """ st.markdown(css, unsafe_allow_html=True)