Spaces:
Running
on
Zero
Running
on
Zero
:root { | |
--primary: #5A54F9; | |
--primary-dark: #4D47D1; | |
--secondary: #8B84FF; | |
--text: #111827; | |
--light: #F9FAFB; | |
} | |
.gradio-container { | |
background: linear-gradient(135deg, #F9FAFB 0%, #E5E7EB 100%) ; | |
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif ; | |
max-width: 800px ; | |
margin: 20px auto ; | |
border-radius: 16px ; | |
box-shadow: 0 10px 25px -5px rgba(90, 84, 249, 0.1) ; | |
} | |
.dark .gradio-container { | |
background: linear-gradient(135deg, #1F2937 0%, #111827 100%) ; | |
--text: #F9FAFB; | |
--light: #1F2937; | |
} | |
.gr-block { | |
border: none ; | |
background: white ; | |
border-radius: 12px ; | |
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) ; | |
padding: 20px ; | |
margin-bottom: 24px ; | |
transition: all 0.3s ease ; | |
} | |
.dark .gr-block { | |
background: rgba(30, 41, 59, 0.8) ; | |
backdrop-filter: blur(10px) ; | |
} | |
.gr-block:hover { | |
transform: translateY(-2px) ; | |
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) ; | |
} | |
.gr-button { | |
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) ; | |
color: white ; | |
border: none ; | |
border-radius: 8px ; | |
padding: 12px 24px ; | |
font-weight: 600 ; | |
text-transform: uppercase ; | |
letter-spacing: 0.5px ; | |
transition: all 0.3s ease ; | |
box-shadow: 0 4px 6px -1px rgba(90, 84, 249, 0.3) ; | |
} | |
.gr-button:hover { | |
transform: translateY(-2px) ; | |
box-shadow: 0 10px 15px -3px rgba(90, 84, 249, 0.4) ; | |
} | |
.gr-button:active { | |
transform: scale(0.98) ; | |
} | |
.gr-textbox, .gr-number, .gr-slider, .gr-dropdown { | |
border: 1px solid #e2e8f0 ; | |
border-radius: 8px ; | |
padding: 12px 16px ; | |
background: var(--light) ; | |
transition: all 0.3s ease ; | |
} | |
.gr-textbox:focus, .gr-number:focus, .gr-dropdown:focus { | |
border-color: var(--primary) ; | |
box-shadow: 0 0 0 2px rgba(90, 84, 249, 0.2) ; | |
outline: none ; | |
} | |
h1, h2, h3, h4 { | |
color: var(--text) ; | |
font-weight: 600 ; | |
margin-top: 0 ; | |
} | |
.gr-markdown { | |
color: var(--text) ; | |
line-height: 1.6 ; | |
} | |
.progress-bar { | |
height: 6px ; | |
border-radius: 3px ; | |
background: linear-gradient(90deg, var(--primary), #93c5fd) ; | |
} | |
.tabs { | |
background: transparent ; | |
} | |
.tab-button { | |
border-radius: 8px 8px 0 0 ; | |
margin-right: 4px ; | |
transition: all 0.3s ease ; | |
} | |
.tab-button.selected { | |
background: white ; | |
color: var(--primary) ; | |
font-weight: 600 ; | |
} | |
.dark .tab-button.selected { | |
background: rgba(30, 41, 59, 0.8) ; | |
} | |
.gr-checkbox { | |
margin: 12px 0 ; | |
} | |
.gr-checkbox label { | |
display: flex ; | |
align-items: center ; | |
cursor: pointer ; | |
position: relative ; | |
padding-left: 35px ; | |
min-height: 25px ; | |
} | |
.gr-checkbox input[type="checkbox"] { | |
position: absolute ; | |
opacity: 0 ; | |
cursor: pointer ; | |
height: 0 ; | |
width: 0 ; | |
} | |
.checkmark { | |
position: absolute ; | |
top: 0 ; | |
left: 0 ; | |
height: 24px ; | |
width: 24px ; | |
background-color: var(--light) ; | |
border: 2px solid var(--primary) ; | |
border-radius: 6px ; | |
transition: all 0.3s ease ; | |
} | |
.gr-checkbox:hover .checkmark { | |
transform: scale(1.05) ; | |
box-shadow: 0 0 0 3px rgba(90, 84, 249, 0.1) ; | |
} | |
.gr-checkbox input:checked ~ .checkmark { | |
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) ; | |
border-color: var(--primary-dark) ; | |
} | |
.checkmark:after { | |
content: "" ; | |
position: absolute ; | |
display: none ; | |
} | |
.gr-checkbox input:checked ~ .checkmark:after { | |
display: block ; | |
} | |
.gr-checkbox .checkmark:after { | |
left: 8px ; | |
top: 4px ; | |
width: 6px ; | |
height: 12px ; | |
border: solid white ; | |
border-width: 0 2px 2px 0 ; | |
transform: rotate(45deg) ; | |
} | |
.dark .gr-checkbox .checkmark { | |
background-color: rgba(30, 41, 59, 0.5) ; | |
border-color: #93c5fd ; | |
} | |
.dark .gr-checkbox input:checked ~ .checkmark { | |
background: linear-gradient(135deg, var(--primary) 0%, #1e8a50 100%) ; | |
} |