Spaces:
				
			
			
	
			
			
					
		Running
		
	
	
	
			
			
	
	
	
	
		
		
					
		Running
		
	| /* Creating a more modern looking UI for the Gemini Image Editing App */ | |
| /* Global Styles */ | |
| :root { | |
| --primary-color: #4f46e5; | |
| --primary-light: #6366f1; | |
| --primary-dark: #3730a3; | |
| --secondary-color: #9333ea; | |
| --accent-color: #ec4899; | |
| --text-color: #0f172a; | |
| --text-light: #64748b; | |
| --bg-color: #f8fafc; | |
| --card-bg: #ffffff; | |
| --border-color: #e2e8f0; | |
| --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); | |
| --transition: all 0.3s ease; | |
| --radius: 12px; | |
| --header-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); | |
| } | |
| /* Dark mode support */ | |
| .dark { | |
| --text-color: #e2e8f0; | |
| --text-light: #94a3b8; | |
| --bg-color: #0f172a; | |
| --card-bg: #1e293b; | |
| --border-color: #334155; | |
| } | |
| /* Base container styling */ | |
| .gradio-container { | |
| font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; | |
| background-color: var(--bg-color); | |
| color: var(--text-color); | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| padding: 2rem; | |
| box-shadow: var(--shadow); | |
| border-radius: var(--radius); | |
| } | |
| /* Header styling */ | |
| .header-container { | |
| background: var(--header-gradient); | |
| border-radius: var(--radius); | |
| padding: 2rem; | |
| margin-bottom: 2rem; | |
| box-shadow: var(--shadow); | |
| color: white; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 20px; | |
| } | |
| .header-container img { | |
| width: 100px; | |
| height: 100px; | |
| filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5)); | |
| transition: var(--transition); | |
| } | |
| .header-container img:hover { | |
| transform: scale(1.05) rotate(5deg); | |
| } | |
| .header-container h1 { | |
| font-size: 2.5rem; | |
| font-weight: 700; | |
| margin-bottom: 0.5rem; | |
| background: linear-gradient(45deg, #fff, #f0f0ff); | |
| -webkit-background-clip: text; | |
| background-clip: text; | |
| color: transparent; | |
| display: inline-block; | |
| } | |
| .header-container a { | |
| color: white; | |
| text-decoration: none; | |
| font-weight: 600; | |
| border-bottom: 2px solid rgba(255, 255, 255, 0.5); | |
| transition: var(--transition); | |
| padding-bottom: 2px; | |
| } | |
| .header-container a:hover { | |
| border-color: white; | |
| } | |
| /* Accordion styling */ | |
| .gr-accordion { | |
| border: none ; | |
| background: var(--card-bg); | |
| border-radius: var(--radius); | |
| overflow: hidden; | |
| box-shadow: var(--shadow); | |
| margin-bottom: 1.5rem; | |
| transition: var(--transition); | |
| } | |
| .gr-accordion:hover { | |
| box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); | |
| } | |
| .gr-accordion-title { | |
| background-color: var(--primary-color); | |
| color: white ; | |
| padding: 1rem 1.5rem; | |
| font-weight: 600; | |
| cursor: pointer; | |
| } | |
| /* Input fields */ | |
| .gr-input, .gr-textarea { | |
| width: 100%; | |
| padding: 0.75rem 1rem; | |
| border: 1px solid var(--border-color); | |
| border-radius: var(--radius); | |
| background-color: var(--card-bg); | |
| transition: var(--transition); | |
| font-size: 1rem; | |
| color: var(--text-color); | |
| } | |
| .gr-input:focus, .gr-textarea:focus { | |
| border-color: var(--primary-color); | |
| box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2); | |
| outline: none; | |
| } | |
| .gr-form .gr-form-label { | |
| font-weight: 600; | |
| color: var(--text-color); | |
| margin-bottom: 0.5rem; | |
| } | |
| /* Adding Dark mode handling */ | |
| /* Generate button - Modified to use header gradient in both light and dark mode */ | |
| .gr-button.gr-button-primary, | |
| button.generate-btn, | |
| #component-54 > div.svelte-1pf7t34 > div > button { | |
| background: var(--header-gradient) ; | |
| color: white ; | |
| border: none ; | |
| border-radius: var(--radius) ; | |
| padding: 0.75rem 1.5rem ; | |
| font-size: 1rem ; | |
| font-weight: 600 ; | |
| cursor: pointer ; | |
| transition: var(--transition) ; | |
| width: 100% ; | |
| text-transform: uppercase ; | |
| letter-spacing: 1px ; | |
| box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.4) ; | |
| } | |
| .gr-button.gr-button-primary:hover, | |
| button.generate-btn:hover, | |
| #component-54 > div.svelte-1pf7t34 > div > button:hover { | |
| transform: translateY(-2px) ; | |
| box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4) ; | |
| } | |
| .gr-button.gr-button-primary:active, | |
| button.generate-btn:active, | |
| #component-54 > div.svelte-1pf7t34 > div > button:active { | |
| transform: translateY(1px) ; | |
| } | |
| /* Gallery output */ | |
| .gr-gallery { | |
| background-color: var(--card-bg); | |
| border-radius: var(--radius); | |
| padding: 1rem; | |
| box-shadow: var(--shadow); | |
| min-height: 300px; | |
| } | |
| .gr-gallery img { | |
| border-radius: calc(var(--radius) - 4px); | |
| transition: var(--transition); | |
| object-fit: contain ; | |
| max-height: 100% ; | |
| max-width: 100% ; | |
| } | |
| .gr-gallery img:hover { | |
| transform: scale(1.02); | |
| } | |
| /* Output text area */ | |
| .output-text { | |
| background-color: var(--card-bg); | |
| border-radius: var(--radius); | |
| padding: 1.5rem; | |
| box-shadow: var(--shadow); | |
| line-height: 1.6; | |
| min-height: 100px; | |
| color: var(--text-color); | |
| } | |
| /* Examples section - Fixed for dark mode */ | |
| .gr-examples-header { | |
| font-weight: 600 ; | |
| margin: 2rem 0 1rem ; | |
| padding-bottom: 0.5rem ; | |
| /* Removed border-bottom to avoid duplicate lines */ | |
| color: var(--primary-light) ; | |
| font-size: 1.5rem ; | |
| display: block ; | |
| visibility: visible ; | |
| } | |
| /* Handling duplicate lines coming up below the examples header */ | |
| .gradio-container hr { | |
| display: none ; | |
| } | |
| /* Fix horizontal separator styling if needed */ | |
| .gradio-container hr:first-of-type { | |
| display: block ; | |
| border-top: 2px solid var(--primary-light) ; | |
| margin: 1rem 0 2rem 0 ; | |
| } | |
| /* Fix dark mode examples grid */ | |
| .gr-examples { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); | |
| gap: 1rem; | |
| margin-top: 1.5rem; | |
| } | |
| /* Fix dark mode examples background */ | |
| .gr-sample { | |
| background-color: var(--card-bg) ; | |
| border-radius: var(--radius); | |
| overflow: hidden; | |
| box-shadow: var(--shadow); | |
| transition: var(--transition); | |
| cursor: pointer; | |
| } | |
| .gr-sample:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); | |
| } | |
| .gr-sample img { | |
| width: 100%; | |
| height: 150px; | |
| object-fit: cover; | |
| } | |
| /* Examples table styling fixes for dark mode */ | |
| table { | |
| background-color: transparent ; | |
| color: var(--text-color) ; | |
| } | |
| table tr { | |
| background-color: var(--card-bg) ; | |
| color: var(--text-color) ; | |
| } | |
| table td { | |
| background-color: var(--card-bg) ; | |
| color: var(--text-color) ; | |
| border-color: var(--border-color) ; | |
| } | |
| /* Responsive adjustments */ | |
| @media (max-width: 768px) { | |
| .gradio-container { | |
| padding: 1rem; | |
| } | |
| .header-container { | |
| flex-direction: column; | |
| text-align: center; | |
| padding: 1.5rem; | |
| } | |
| .header-container h1 { | |
| font-size: 2rem; | |
| } | |
| } | |
| /* Custom scrollbar */ | |
| ::-webkit-scrollbar { | |
| width: 8px; | |
| height: 8px; | |
| } | |
| ::-webkit-scrollbar-track { | |
| background: var(--bg-color); | |
| } | |
| ::-webkit-scrollbar-thumb { | |
| background: var(--primary-light); | |
| border-radius: 4px; | |
| } | |
| ::-webkit-scrollbar-thumb:hover { | |
| background: var(--primary-color); | |
| } | |
| /* Ensure proper viewport handling for mobile */ | |
| @media screen and (max-width: 767px) { | |
| body, html { | |
| overflow-x: hidden ; | |
| width: 100vw ; | |
| max-width: 100% ; | |
| } | |
| /* Force central alignment for the entire app container */ | |
| .gradio-container { | |
| padding: 1rem ; | |
| margin: 0 auto ; | |
| max-width: 100% ; | |
| width: 100% ; | |
| left: 0 ; | |
| right: 0 ; | |
| box-sizing: border-box ; | |
| overflow-x: hidden ; | |
| } | |
| /* Fix header container on mobile */ | |
| .header-container { | |
| flex-direction: column ; | |
| text-align: center ; | |
| padding: 1rem ; | |
| width: 100% ; | |
| box-sizing: border-box ; | |
| margin-left: auto ; | |
| margin-right: auto ; | |
| } | |
| /* Ensure all content blocks are properly centered */ | |
| .main-content, | |
| .input-column, | |
| .output-column, | |
| .gr-form, | |
| .gr-panel, | |
| .gr-box, | |
| .gr-input, | |
| .gr-text-input, | |
| .gr-gallery, | |
| .gr-button, | |
| #component-54 > div.svelte-1pf7t34 > div > button { | |
| width: 100% ; | |
| max-width: 100% ; | |
| margin-left: auto ; | |
| margin-right: auto ; | |
| box-sizing: border-box ; | |
| } | |
| /* Fix examples area */ | |
| .gr-examples { | |
| grid-template-columns: 1fr ; | |
| width: 100% ; | |
| } | |
| /* Fix example tables on mobile */ | |
| table { | |
| table-layout: fixed ; | |
| width: 100% ; | |
| } | |
| table td { | |
| word-break: break-word ; | |
| } | |
| } | |
| /* Fix for extreme narrow screens (small Android phones) */ | |
| @media screen and (max-width: 380px) { | |
| .header-container h1 { | |
| font-size: 1.8rem ; | |
| } | |
| .header-container p { | |
| font-size: 0.9rem ; | |
| } | |
| /* Stack everything vertically */ | |
| .gr-panel { | |
| display: flex ; | |
| flex-direction: column ; | |
| } | |
| } | |
| /* Custom fix for the container to always stay centered on any device */ | |
| #gradio-app { | |
| display: flex ; | |
| justify-content: center ; | |
| width: 100% ; | |
| max-width: 100% ; | |
| margin: 0 auto ; | |
| overflow-x: hidden ; | |
| } | |
| /* Ensure the root container doesn't cause horizontal scroll */ | |
| .root { | |
| max-width: 100% ; | |
| overflow-x: hidden ; | |
| } | 
 
			
