Spaces:
Running
Running
| /* Color Palette Variables */ | |
| :root { | |
| --primary-accent-color: #5a287d; /* Deep, energetic purple for main actions */ | |
| --primary-accent-hover: #4a206b; /* Darker purple for hover */ | |
| --light-background: #f8f9fa; | |
| --medium-background: #e9ecef; | |
| --teal-text: #158585; | |
| --light-text: #6c757d; | |
| --dark-text: #343a40; | |
| --red-text: #dc3545; | |
| --red-error: #dc3545; | |
| --red-error-hover: #c82333; | |
| } | |
| /* General body styling */ | |
| body { | |
| font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif; | |
| background-color: var(--light-background); /* Revert to original background */ | |
| color: var(--dark-text); | |
| } | |
| /* Main interface container */ | |
| .gradio-container { | |
| max-width: 900px; | |
| margin: 40px auto; | |
| box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); | |
| border-radius: 12px; | |
| overflow: hidden; | |
| background-color: #fff; | |
| } | |
| /* Title styling */ | |
| h1 { | |
| color: var(--primary-accent-color); | |
| text-align: center; | |
| margin-bottom: 25px; | |
| font-size: 2.8em; | |
| font-weight: 700; | |
| text-shadow: 1px 1px 3px rgba(0,0,0,0.1); | |
| } | |
| /* Input/Output areas (each component box) */ | |
| .gr-box { | |
| border: 1px solid var(--medium-background); | |
| border-radius: 8px; | |
| padding: 20px; | |
| margin-bottom: 20px; | |
| background-color: #fff; | |
| } | |
| /* This targets the span element that holds the text inside the primary button */ | |
| .gr-button.primary span { | |
| color: white ; /* Force text to white */ | |
| } | |
| /* Also ensure the hover state text is white */ | |
| .gr-button.primary:hover span { | |
| color: white ; | |
| } | |
| /* Make sure your background color rules are also in style.css */ | |
| .gr-button.primary { | |
| background-color: black ; /* Example: black background */ | |
| border-color: black ; | |
| } | |
| .gr-button.primary:hover { | |
| background-color: #333333 ; /* Darker gray on hover */ | |
| border-color: #333333 ; | |
| } | |
| /* Textbox labels */ | |
| .label { | |
| font-weight: 600; | |
| color: var(--dark-text); | |
| margin-bottom: 8px; | |
| display: block; | |
| font-size: 1.05em; | |
| } | |
| /* Image output styling */ | |
| .gr-image { | |
| border: 3px solid var(--primary-accent-color); | |
| border-radius: 10px; | |
| box-shadow: 0 4px 8px rgba(0,0,0,0.1); | |
| overflow: hidden; | |
| } | |
| /* Style for text areas (inputs and outputs) */ | |
| textarea { | |
| border-radius: 8px ; | |
| border: 1px solid var(--medium-background) ; | |
| padding: 12px ; | |
| font-size: 1em; | |
| } | |
| /* Ensure output textboxes have visible background and text color */ | |
| .gradio-container .block.gradio-textbox[data-interactive="false"] textarea { | |
| background-color: var(--light-background) ; | |
| color: var(--dark-text) ; | |
| min-height: 120px; | |
| resize: vertical; | |
| font-size: 1.05em; | |
| line-height: 1.5; | |
| } | |
| /* Style for the examples container */ | |
| .gradio-examples { | |
| padding-top: 15px; | |
| } | |
| /* Make example buttons look nicer */ | |
| .gradio-examples .gr-sample-textbox { | |
| background-color: var(--light-background) ; | |
| border: 1px solid var(--medium-background) ; | |
| border-radius: 8px ; | |
| transition: all 0.2s ease-in-out; | |
| } | |
| .gradio-examples .gr-sample-textbox:hover { | |
| transform: translateY(-2px); | |
| border-color: var(--secondary-button-color); | |
| box-shadow: 0 4px 8px rgba(0,0,0,0.05); | |
| } | |
| /* Adjust overall layout for better spacing */ | |
| .gradio-main { | |
| padding: 25px; | |
| } | |
| /* Styles for the flag button */ | |
| .gr-button.flag { | |
| background-color: var(--red-error) ; | |
| } | |
| .gr-button.flag:hover { | |
| background-color: var(--red-error-hover) ; | |
| } | |
| /* Add a little more spacing between sections */ | |
| .gr-row { | |
| margin-bottom: 25px; | |
| } | |
| #note-section { | |
| /* Subtle linear gradient from top-left to bottom-right */ | |
| background: linear-gradient(135deg, #f0f4f8, #e0e7ee); /* Light blue-gray to a slightly darker blue-gray */ | |
| padding: 20px; | |
| border-radius: 10px; | |
| margin-bottom: 20px; | |
| color: #333333; /* Ensures text is readable on the light gradient */ | |
| box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); /* Very subtle shadow */ | |
| } | |