Spaces:
Sleeping
Sleeping
| /* ============================ | |
| READABILITY / THEME VARIABLES | |
| ============================ */ | |
| :root{ | |
| --bg-purple: rgb(40,9,109); | |
| --escp-gold: rgb(242,198,55); | |
| --text-dark: #0f172a; | |
| --text-muted: #475569; | |
| /* How much to darken the wallpaper */ | |
| --overlay-strength: 0.45; | |
| /* Panels */ | |
| --panel-bg: rgba(255,255,255,0.96); | |
| --panel-radius: 14px; | |
| /* Shadows */ | |
| --shadow-soft: 0 10px 30px rgba(0,0,0,0.22); | |
| --shadow-card: 0 8px 22px rgba(0,0,0,0.18); | |
| /* Readable text on images */ | |
| --title-shadow: 0 2px 10px rgba(0,0,0,0.55); | |
| --text-shadow: 0 1px 6px rgba(0,0,0,0.45); | |
| } | |
| /* ============================ | |
| WALLPAPER + DARK OVERLAY | |
| ============================ */ | |
| html, body { | |
| margin: 0 ; | |
| padding: 0 ; | |
| min-height: 100vh ; | |
| background-color: var(--bg-purple) ; | |
| background-image: | |
| url("https://huggingface.co/spaces/ecaragnano/ALARAAPPREDONE/resolve/main/background_top.png"), | |
| url("https://huggingface.co/spaces/ecaragnano/ALARAAPPREDONE/resolve/main/background_mid.png") ; | |
| background-position: top center, top center ; | |
| background-repeat: no-repeat, repeat-y ; | |
| background-size: 100% auto, 100% auto ; | |
| } | |
| /* Darken wallpaper to improve contrast everywhere */ | |
| body::before{ | |
| content:"" ; | |
| position: fixed ; | |
| inset: 0 ; | |
| background: rgba(0,0,0,var(--overlay-strength)) ; | |
| pointer-events: none ; | |
| z-index: 0 ; | |
| } | |
| /* Bottom banner (kept) */ | |
| body::after { | |
| content: '' ; | |
| position: fixed ; | |
| bottom: 0 ; | |
| left: 0 ; | |
| right: 0 ; | |
| height: 130px ; | |
| background-image: url("https://huggingface.co/spaces/ecaragnano/ALARAAPPREDONE/resolve/main/background_bottom.png") ; | |
| background-size: 100% 100% ; | |
| background-repeat: no-repeat ; | |
| background-position: bottom center ; | |
| pointer-events: none ; | |
| z-index: 2 ; | |
| } | |
| /* ============================ | |
| GRADIO ROOT LAYERING | |
| ============================ */ | |
| .gradio-container{ | |
| position: relative ; | |
| z-index: 1 ; | |
| max-width: 1400px ; | |
| width: 94vw ; | |
| margin: 0 auto ; | |
| /* Less top padding; we’ll create a header panel */ | |
| padding-top: 36px ; | |
| padding-bottom: 150px ; | |
| background: transparent ; | |
| } | |
| /* ============================ | |
| HEADER READABILITY BLOCK | |
| Wrap the top content in a readable “glass” band | |
| ============================ */ | |
| /* Give the entire top-of-app a panel feeling */ | |
| #user_greeting, | |
| #escp_title{ | |
| background: rgba(10, 8, 28, 0.55) ; /* dark glass */ | |
| backdrop-filter: blur(8px) ; | |
| -webkit-backdrop-filter: blur(8px) ; | |
| border: 1px solid rgba(255,255,255,0.14) ; | |
| border-radius: var(--panel-radius) ; | |
| box-shadow: var(--shadow-soft) ; | |
| padding: 16px 18px ; | |
| margin: 12px 0 ; | |
| } | |
| /* Greeting text: enforce strong contrast */ | |
| #user_greeting, | |
| #user_greeting *{ | |
| color: #fff ; | |
| text-shadow: var(--text-shadow) ; | |
| } | |
| /* ============================ | |
| TITLE + SUBTITLE | |
| ============================ */ | |
| #escp_title h1 { | |
| color: var(--escp-gold) ; | |
| font-size: clamp(2.1rem, 3.2vw, 3.2rem) ; | |
| font-weight: 900 ; | |
| text-align: center ; | |
| margin: 0 0 10px 0 ; | |
| text-shadow: var(--title-shadow) ; | |
| letter-spacing: 0.2px ; | |
| } | |
| #escp_title p, | |
| #escp_title em{ | |
| color: rgba(255,255,255,0.92) ; | |
| text-align: center ; | |
| text-shadow: var(--text-shadow) ; | |
| } | |
| /* ============================ | |
| TABS – clearer contrast | |
| ============================ */ | |
| .tabs > .tab-nav, | |
| .tab-nav, | |
| div[role="tablist"], | |
| .svelte-tabs > .tab-nav { | |
| background: rgba(10, 8, 28, 0.62) ; | |
| backdrop-filter: blur(6px) ; | |
| -webkit-backdrop-filter: blur(6px) ; | |
| border: 1px solid rgba(255,255,255,0.12) ; | |
| border-radius: 12px ; | |
| padding: 6px ; | |
| box-shadow: var(--shadow-soft) ; | |
| } | |
| .tabs > .tab-nav button, | |
| .tab-nav button, | |
| div[role="tablist"] button, | |
| button[role="tab"] { | |
| color: rgba(255,255,255,0.92) ; | |
| font-weight: 700 ; | |
| background: transparent ; | |
| border: none ; | |
| padding: 10px 18px ; | |
| border-radius: 10px ; | |
| opacity: 1 ; | |
| text-shadow: var(--text-shadow) ; | |
| } | |
| .tabs > .tab-nav button.selected, | |
| button[role="tab"][aria-selected="true"], | |
| div[role="tablist"] button[aria-selected="true"]{ | |
| color: var(--escp-gold) ; | |
| background: rgba(255,255,255,0.12) ; | |
| box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16) ; | |
| } | |
| /* ============================ | |
| PANELS / CARDS – crisp | |
| ============================ */ | |
| .gradio-container .gr-block, | |
| .gradio-container .gr-box, | |
| .gradio-container .gr-panel, | |
| .gradio-container .gr-group, | |
| .tabitem{ | |
| background: var(--panel-bg) ; | |
| border-radius: var(--panel-radius) ; | |
| box-shadow: var(--shadow-card) ; | |
| border: 1px solid rgba(15,23,42,0.08) ; | |
| } | |
| /* Inside tabs: readable spacing */ | |
| .tabitem{ | |
| padding: 18px ; | |
| } | |
| /* Headings inside tabs: strong and dark */ | |
| .tabitem h2, .tabitem h3{ | |
| color: var(--bg-purple) ; | |
| font-weight: 900 ; | |
| letter-spacing: 0.2px ; | |
| } | |
| .tabitem h4{ | |
| color: var(--text-dark) ; | |
| font-weight: 800 ; | |
| } | |
| /* ============================ | |
| FORMS / INPUTS – clearer | |
| ============================ */ | |
| .gradio-container label, | |
| .gradio-container .label, | |
| .gradio-container .wrap label{ | |
| color: var(--text-dark) ; | |
| font-weight: 700 ; | |
| } | |
| .gradio-container input, | |
| .gradio-container textarea, | |
| .gradio-container select{ | |
| background: #ffffff ; | |
| border: 1px solid rgba(15,23,42,0.18) ; | |
| border-radius: 10px ; | |
| color: var(--text-dark) ; | |
| } | |
| .gradio-container input::placeholder, | |
| .gradio-container textarea::placeholder{ | |
| color: rgba(15,23,42,0.45) ; | |
| } | |
| /* ============================ | |
| BUTTONS – higher contrast | |
| ============================ */ | |
| button.primary { | |
| background-color: var(--bg-purple) ; | |
| color: #ffffff ; | |
| border: none ; | |
| box-shadow: 0 8px 18px rgba(40,9,109,0.35) ; | |
| } | |
| button.primary:hover { | |
| filter: brightness(1.08) ; | |
| } | |
| button.secondary { | |
| background-color: #ffffff ; | |
| color: var(--bg-purple) ; | |
| border: 2px solid var(--bg-purple) ; | |
| } | |
| button.secondary:hover { | |
| background-color: rgb(240,238,250) ; | |
| } | |
| /* ============================ | |
| CHATBOT / TABLES | |
| ============================ */ | |
| .gr-chatbot, | |
| [data-testid="dataframe"], | |
| .gallery { | |
| background: #ffffff ; | |
| border-radius: var(--panel-radius) ; | |
| } | |
| table { font-size: 0.88rem ; } | |
| /* ============================ | |
| FOOTER/HEADER TRANSPARENT | |
| (keep your cleanup, but don't kill text) | |
| ============================ */ | |
| header, footer { | |
| background: transparent ; | |
| box-shadow: none ; | |
| } | |