Spaces:
Sleeping
Sleeping
Update static/style.css
Browse files1123345678910567891011121314151617131815192021221718192021222324252627282930313233343536373823242526272829303132333435363738394041424344454647484950514546474849525354555657585960535455616263646566676068696270717273747568697071727376777879808182837584858687798081828889909192939495968788979899909110010110210394951041051069798107108109110101111112113104114115116117118109110119120121112113122123124125116117126127128129130121122131132133124125126134135136137138129130139140141142143144135145146147138148149150141142143151152153154155156157148149150151152158159160161162163164165166155156157158167168169170171172161162173174175176165166167168169170171172177178174175179180181182183184179180185186187188183189190191192193194188189195196197198192193194199200201202196203204205206207208209210211212201202203204205206207208209213214215216217218219220221222223224225214215226227228229230219231232233222234235236237225238239240241242243244230231245246247248249235236237250251252253254255241256257258259260246261262263249264265266267268269255270271272258259260273274275276262263277278279280281282283284285286/* static/style.css *//* static/style.css (Adjusted slightly for aggressive overrides and color vibrance) */
/* --- Global Synthwave Background --- *//* --- Import Google Fonts --- */@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');/* Or include this directly in the Python HTML if preferred */
/* --- Global Synthwave Background (Applied to root HTML/body) --- */html.dark.gradio-container, /* Target the actual HTML element Gradio controls */body.gradio-container { background: linear-gradient(180deg, #1A1A2E 0%, #000000 100%); /* Deep purple to black */ background-attachment: fixed; font-family: 'Press Start 2P', cursive; /* Retro pixel font */ color: #00F0FF; /* Bright cyan text by default */ text-shadow: 0 0 5px #00F0FF; /* Subtle cyan glow */ --link-text-color: #A020F0; /* Violet link color */ background: linear-gradient(180deg, #1A0033 0%, #000000 100%) !important; /* Deep violet to black */ background-attachment: fixed !important; font-family: 'Press Start 2P', cursive !important; /* Retro pixel font */ color: #00FFC0 !important; /* Bright Teal/Cyan */ text-shadow: 0 0 5px #00FFC0 !important; /* Subtle teal glow */}
/* --- Gradio Overrides for Synthwave Vibe --- */
/* Main App background *//* --- Gradio Component Overrides for Synthwave Vibe --- */
/* Main App background and base colors for Gradio's internal variables */gradio-app { --background-fill-primary: #1A1A2E; /* Dark background */ --background-fill-secondary: #0A0A1F; /* Even darker for secondary elements */ --border-color-accent: #00F0FF; /* Cyan accent for borders */ --border-color-primary: #303050; /* Muted purple border */ --color-accent: #00F0FF; /* Primary accent color (cyan) */ --color-text-primary: #00F0FF; /* Cyan text */ --color-text-secondary: #00A0B0; /* Muted cyan for secondary text */ --color-text-subdued: #007080; /* Darker cyan for subdued text */ --button-primary-background-color: #00F0FF; /* Neon green/cyan primary button */ --button-primary-border-color: #00F0FF; --button-primary-text-color: #0A0A1F; /* Dark text on bright button */ --button-secondary-background-color: #303050; /* Darker, muted purple secondary button */ --button-secondary-border-color: #A020F0; /* Violet border */ --button-secondary-text-color: #A020F0; /* Violet text */ --shadow-color: rgba(0, 240, 255, 0.5); /* Cyan shadow for glow */ --block-background-fill: #0A0A1F; /* Dark blocks */ --block-border-color: #303050; /* Block borders */ --block-label-background-color: #202040; /* Darker label backgrounds */ --block-title-text-color: #FF00FF; /* Magenta for titles */ --block-label-text-color: #FF00FF; /* Magenta for labels */ --block-shadow: 0 0 10px rgba(0, 240, 255, 0.3); /* Soft cyan glow for blocks */ --form-gap: 20px; /* Increase gap between form elements */ --background-fill-primary: #150020 !important; /* Darker violet for inner blocks */ --background-fill-secondary: #000000 !important; /* Pure black for deepest elements */ --border-color-accent: #00FFC0 !important; /* Bright Teal/Cyan accent for borders */ --border-color-primary: #6A0DAD !important; /* Deeper violet border */ --color-accent: #00FFC0 !important; /* Primary accent color (Teal) */ --color-text-primary: #00FFC0 !important; /* Teal text */ --color-text-secondary: #00A0B0 !important; /* Muted teal for secondary text */ --color-text-subdued: #007080 !important; /* Darker teal for subdued text */ --button-primary-background-color: #00FFC0 !important; /* Neon Teal primary button */ --button-primary-border-color: #00FFC0 !important; --button-primary-text-color: #150020 !important; /* Dark text on bright button */ --button-secondary-background-color: #6A0DAD !important; /* Deep Violet secondary button */ --button-secondary-border-color: #FF00FF !important; /* Neon Magenta border */ --button-secondary-text-color: #FF00FF !important; /* Neon Magenta text */ --shadow-color: rgba(0, 255, 192, 0.5) !important; /* Teal glow shadow */ --block-background-fill: #150020 !important; /* Dark violet blocks */ --block-border-color: #6A0DAD !important; /* Block borders */ --block-label-background-color: #200030 !important; /* Even darker label backgrounds */ --block-title-text-color: #FF00FF !important; /* Neon Magenta for titles */ --block-label-text-color: #FF00FF !important; /* Neon Magenta for labels */ --block-shadow: 0 0 10px rgba(0, 255, 192, 0.3) !important; /* Soft teal glow for blocks */ --form-gap: 20px !important; /* Increase gap between form elements */ --link-text-color: #A020F0 !important; /* Violet link color */}
/* Specific component overrides */
/* Headers */h1 { color: #00F0FF !important; /* Cyan */ text-shadow: 0 0 10px #00F0FF, 0 0 20px #00F0FF, 0 0 30px #00F0FF; /* Stronger glow */ font-size: 3em !important; letter-spacing: 5px; margin-bottom: 10px; color: #00FFC0 !important; /* Bright Teal */ text-shadow: 0 0 10px #00FFC0, 0 0 20px #00FFC0, 0 0 30px #00FFC0 !important; /* Stronger glow */ font-size: 3.5em !important; /* Larger for impact */ letter-spacing: 7px !important; /* More spread out */ margin-bottom: 10px !important; white-space: nowrap; /* Prevent wrapping if text shadow causes issues */}
h2, h3, h4, h5, h6 { color: #FF00FF !important; /* Magenta */ text-shadow: 0 0 5px #FF00FF; letter-spacing: 2px; color: #FF00FF !important; /* Neon Magenta */ text-shadow: 0 0 5px #FF00FF !important; letter-spacing: 2px !important;}
/* Markdown text */gradio-app p, gradio-app .prose { color: #00A0B0 !important; /* Muted cyan */ color: #00A0B0 !important; /* Muted teal */ text-shadow: none !important; /* Remove text shadow from regular paragraphs */ font-size: 0.95em; font-size: 0.95em !important;}
/* Textboxes and Inputs */gradio-app input[type="text"],gradio-app textarea,gradio-app select { background-color: #1A1A2E !important; /* Dark background for inputs */ border: 1px solid #A020F0 !important; /* Violet border */ color: #00F0FF !important; /* Cyan text */ box-shadow: 0 0 8px rgba(160, 32, 240, 0.5); /* Violet glow for inputs */ padding: 10px;gradio-app select,.gr-dropdown { /* Apply to dropdowns as well */ background-color: #1A0033 !important; /* Deep violet for inputs */ border: 1px solid #FF00FF !important; /* Neon Magenta border */ color: #00FFC0 !important; /* Bright Teal text */ box-shadow: 0 0 8px rgba(255, 0, 255, 0.5) !important; /* Magenta glow for inputs */ padding: 10px !important; font-family: 'Press Start 2P', cursive !important; transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out !important;}gradio-app input[type="text"]:focus,gradio-app textarea:focus,gradio-app select:focus { border-color: #00F0FF !important; /* Cyan on focus */ box-shadow: 0 0 15px rgba(0, 240, 255, 0.7); /* Stronger cyan glow on focus */ outline: none;gradio-app select:focus,.gr-dropdown:focus-within { /* For dropdowns, use focus-within */ border-color: #00FFC0 !important; /* Bright Teal on focus */ box-shadow: 0 0 15px rgba(0, 255, 192, 0.7) !important; /* Stronger teal glow on focus */ outline: none !important;}
/* Chatbot bubbles */#component-chat .message.user { background-color: #303050 !important; /* Dark purple for user bubbles */ color: #00F0FF !important; /* Cyan text */ background-color: #6A0DAD !important; /* Deep Violet for user bubbles */ color: #00FFC0 !important; /* Bright Teal text */ border-radius: 10px 10px 0 10px !important; box-shadow: 0 0 8px rgba(160, 32, 240, 0.3); /* Violet glow */ text-shadow: none; box-shadow: 0 0 8px rgba(255, 0, 255, 0.3) !important; /* Magenta glow */ text-shadow: none !important;}#component-chat .message.bot { background-color: #1A1A2E !important; /* Even darker for bot bubbles */ color: #FF00FF !important; /* Magenta text */ background-color: #1A0033 !important; /* Even deeper violet for bot bubbles */ color: #FF00FF !important; /* Neon Magenta text */ border-radius: 10px 10px 10px 0 !important; box-shadow: 0 0 8px rgba(0, 240, 255, 0.3); /* Cyan glow */ text-shadow: none; box-shadow: 0 0 8px rgba(0, 255, 192, 0.3) !important; /* Teal glow */ text-shadow: none !important;}#component-chat .message-wrap.user .message-box { align-self: flex-end; /* Align user messages to the right */ align-self: flex-end !important; /* Align user messages to the right */}#component-chat .message-wrap.bot .message-box { align-self: flex-start; /* Align bot messages to the left */ align-self: flex-start !important; /* Align bot messages to the left */}
/* Buttons */.gr-button-primary { background-color: #00F0FF !important; /* Cyan */ color: #1A1A2E !important; background-color: #00FFC0 !important; /* Bright Teal */ color: #1A0033 !important; /* Dark violet text */ text-shadow: none !important; box-shadow: 0 0 10px rgba(0, 240, 255, 0.5); /* Cyan glow */ transition: all 0.3s ease-in-out; box-shadow: 0 0 10px rgba(0, 255, 192, 0.5) !important; /* Teal glow */ transition: all 0.3s ease-in-out !important;}.gr-button-primary:hover { background-color: #00B0C0 !important; /* Darker cyan on hover */ box-shadow: 0 0 15px rgba(0, 240, 255, 0.7); background-color: #00E0A0 !important; /* Darker teal on hover */ box-shadow: 0 0 15px rgba(0, 255, 192, 0.7) !important;}
.gr-button-secondary { background-color: #303050 !important; /* Dark purple */ color: #A020F0 !important; /* Violet text */ background-color: #6A0DAD !important; /* Deep Violet */ color: #FF00FF !important; /* Neon Magenta text */ text-shadow: none !important; border: 1px solid #A020F0 !important; box-shadow: 0 0 8px rgba(160, 32, 240, 0.5); /* Violet glow */ transition: all 0.3s ease-in-out; border: 1px solid #FF00FF !important; box-shadow: 0 0 8px rgba(255, 0, 255, 0.5) !important; /* Magenta glow */ transition: all 0.3s ease-in-out !important;}.gr-button-secondary:hover { background-color: #404060 !important; /* Lighter purple on hover */ box-shadow: 0 0 12px rgba(160, 32, 240, 0.7); background-color: #7A1DEB !important; /* Lighter violet on hover */ box-shadow: 0 0 12px rgba(255, 0, 255, 0.7) !important;}
/* Sliders */.gr-slider-fill { background-color: #FF00FF !important; /* Magenta fill */ background-color: #FF00FF !important; /* Neon Magenta fill */}.gr-slider-track { background-color: #303050 !important; /* Dark purple track */ background-color: #300040 !important; /* Darker track */}.gr-slider-thumb { background-color: #00F0FF !important; /* Cyan thumb */ border: 1px solid #00F0FF !important; box-shadow: 0 0 8px rgba(0, 240, 255, 0.7); background-color: #00FFC0 !important; /* Bright Teal thumb */ border: 1px solid #00FFC0 !important; box-shadow: 0 0 8px rgba(0, 255, 192, 0.7) !important;}
/* Tabs */.tabs-nav button { background-color: #1A1A2E !important; /* Dark tab background */ color: #A020F0 !important; /* Violet tab text */ border-bottom: 2px solid #A020F0 !important; text-shadow: none; transition: all 0.2s ease-in-out; background-color: #1A0033 !important; /* Dark tab background */ color: #FF00FF !important; /* Neon Magenta tab text */ border-bottom: 2px solid #FF00FF !important; text-shadow: none !important; transition: all 0.2s ease-in-out !important; font-size: 1.1em !important; /* Slightly larger for tabs */ letter-spacing: 1px !important;}.tabs-nav button.selected { background-color: #0A0A1F !important; /* Darker selected tab background */ color: #00F0FF !important; /* Cyan selected tab text */ border-bottom: 2px solid #00F0FF !important; text-shadow: 0 0 5px #00F0FF; /* Cyan glow for selected tab */ background-color: #000000 !important; /* Pure black selected tab background */ color: #00FFC0 !important; /* Bright Teal selected tab text */ border-bottom: 2px solid #00FFC0 !important; text-shadow: 0 0 5px #00FFC0 !important; /* Teal glow for selected tab */}.tabs-nav button:hover { color: #FF00FF !important; /* Magenta on hover */ text-shadow: 0 0 3px #FF00FF; color: #00FFC0 !important; /* Teal on hover */ text-shadow: 0 0 3px #00FFC0 !important;}
/* Dropdowns */.gr-dropdown { background-color: #1A1A2E !important; border: 1px solid #A020F0 !important; color: #00F0FF !important; box-shadow: 0 0 8px rgba(160, 32, 240, 0.5); font-family: 'Press Start 2P', cursive !important;}/* Dropdown items (the options when clicked) */.gr-dropdown-item { background-color: #1A1A2E !important; color: #00F0FF !important; background-color: #1A0033 !important; color: #00FFC0 !important; font-family: 'Press Start 2P', cursive !important; font-size: 1em !important;}.gr-dropdown-item.selected { background-color: #303050 !important; /* Dark purple for selected item */ color: #FF00FF !important; /* Magenta text */ background-color: #6A0DAD !important; /* Deep violet for selected item */ color: #FF00FF !important; /* Neon Magenta text */}.gr-dropdown-item:hover { background-color: #404060 !important; /* Lighter purple on hover */ background-color: #400060 !important; /* Slightly lighter violet on hover */}
/* File Upload */.gr-upload-text { color: #00F0FF !important; text-shadow: 0 0 3px #00F0FF; color: #00FFC0 !important; text-shadow: 0 0 3px #00FFC0 !important;}.gr-file-input { background-color: #1A1A2E !important; border: 1px dashed #A020F0 !important; color: #00F0FF !important; background-color: #1A0033 !important; border: 1px dashed #FF00FF !important; color: #00FFC0 !important; text-shadow: none !important; box-shadow: 0 0 8px rgba(160, 32, 240, 0.3); box-shadow: 0 0 8px rgba(255, 0, 255, 0.3) !important;}.gr-file-input .primary-bg { /* Gradio's internal class for the upload icon background */ background-color: #00FFC0 !important; /* Teal */ color: #1A0033 !important;}
/* Status Display */#status_display { color: #00F0FF !important; /* Cyan */ text-shadow: 0 0 5px #00F0FF; /* Subtle glow */ font-weight: bold; font-size: 1.1em; padding: 10px; background-color: #0A0A1F; border: 1px solid #303050; border-radius: 5px; margin-bottom: 15px; color: #00FFC0 !important; /* Bright Teal */ text-shadow: 0 0 5px #00FFC0 !important; /* Subtle glow */ font-weight: bold !important; font-size: 1.1em !important; padding: 10px !important; background-color: #0A0015 !important; /* Very dark background */ border: 1px solid #6A0DAD !important; /* Violet border */ border-radius: 5px !important; margin-bottom: 15px !important;}
/* General Link Styling (e.g., in chat output) */a { color: #A020F0 !important; /* Violet */ text-decoration: underline; color: #FF00FF !important; /* Neon Magenta */ text-decoration: underline !important; text-shadow: none !important;}a:hover { color: #FF00FF !important; /* Magenta on hover */ color: #00FFC0 !important; /* Bright Teal on hover */}
/* Specific glow for markdown headers inside content *//* Specific glow for markdown headers inside content (e.g., in chat output) */.gradio-app .prose h1, .gradio-app .prose h2, .gradio-app .prose h3,.gradio-app .prose h4, .gradio-app .prose h5, .gradio-app .prose h6 { color: #FF00FF !important; /* Magenta for consistency */ text-shadow: 0 0 5px #A020F0 !important; /* Subtler violet glow for markdown in chat */ text-shadow: 0 0 5px #FF00FF !important; /* Subtler magenta glow for markdown in chat */ font-family: 'Press Start 2P', cursive !important; letter-spacing: 1px !important;}
/* Custom scrollbar for synthwave */::-webkit-scrollbar { width: 10px; background-color: #1A1A2E; /* Dark background for scrollbar */ width: 12px !important; /* Slightly wider */ background-color: #150020 !important; /* Dark background for scrollbar */}
::-webkit-scrollbar-thumb { background-color: #A020F0; /* Violet scrollbar thumb */ border-radius: 5px; border: 2px solid #303050; background-color: #FF00FF !important; /* Neon Magenta scrollbar thumb */ border-radius: 6px !important; border: 3px solid #6A0DAD !important; /* Violet border */}
::-webkit-scrollbar-thumb:hover { background-color: #FF00FF; /* Magenta on hover */ background-color: #00FFC0 !important; /* Bright Teal on hover */}
/* Adjust font size for the pixel font to be readable */* { font-size: 16px; /* Base font size */ font-size: 16px !important; /* Base font size */}.gr-label { font-size: 1em !important; /* Labels should be legible */ font-size: 1.1em !important; /* Labels should be legible */}.gr-text-input { font-size: 1.1em !important;}.message-body { font-size: 1em !important; font-size: 1.0em !important; /* Ensure chat text is readable */}
/* Reduce letter spacing on some elements if 'Press Start 2P' is too wide */.gr-label, .tabs-nav button, .gr-button { letter-spacing: 0.5px !important;/* Ensure font is applied to all Gradio text elements */.gradio-container, .gradio-container * { font-family: 'Press Start 2P', cursive !important;}h1 { letter-spacing: 7px !important; /* Keep large letter spacing for h1 */.gradio-container button, .gradio-container input, .gradio-container textarea, .gradio-container select, .gradio-container .gr-dropdown-item { font-family: 'Press Start 2P', cursive !important;}
/* Adjust button padding for pixel font */.gr-button { padding: 10px 15px !important;}
/* Hide Gradio's default theme toggle which might conflict with our forced dark mode */static/style.css+159-139