Spaces:
Running
Running
| """ | |
| CSS customizado para interface minimalista | |
| Cores: Branco, Preto, Cinza e #ffbe00 (destaque amarelo) | |
| Fonte: Inter | |
| Compatível com light e dark mode | |
| """ | |
| CUSTOM_CSS = """ | |
| @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap'); | |
| /* Variáveis para light mode */ | |
| :root { | |
| --color-primary: #ffbe00; | |
| --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; | |
| } | |
| /* Variáveis para dark mode */ | |
| @media (prefers-color-scheme: dark) { | |
| :root { | |
| --color-primary: #ffbe00; | |
| } | |
| } | |
| * { | |
| font-family: var(--font-family) !important; | |
| } | |
| /* Container principal */ | |
| .gradio-container { | |
| max-width: 1400px !important; | |
| margin: 0 auto !important; | |
| } | |
| /* Headers e títulos */ | |
| h1, h2, h3, h4, h5, h6 { | |
| font-weight: 600 !important; | |
| letter-spacing: -0.02em !important; | |
| } | |
| h1 { | |
| font-size: 2rem !important; | |
| margin-bottom: 0.5rem !important; | |
| } | |
| h2 { | |
| font-size: 1.5rem !important; | |
| margin-bottom: 1rem !important; | |
| } | |
| h3 { | |
| font-size: 1.25rem !important; | |
| } | |
| /* Textos */ | |
| p, span, label { | |
| font-size: 0.95rem !important; | |
| line-height: 1.6 !important; | |
| } | |
| /* Botões primários - destaque amarelo */ | |
| button.primary, .primary-button { | |
| background: var(--color-primary) !important; | |
| color: #000000 !important; | |
| border: none !important; | |
| font-weight: 500 !important; | |
| transition: all 0.2s ease !important; | |
| border-radius: 6px !important; | |
| } | |
| button.primary:hover, .primary-button:hover { | |
| background: #e6aa00 !important; | |
| transform: translateY(-1px) !important; | |
| box-shadow: 0 4px 12px rgba(255, 190, 0, 0.3) !important; | |
| } | |
| /* Tabs */ | |
| .tab-nav button.selected { | |
| border-bottom: 2px solid var(--color-primary) !important; | |
| } | |
| /* Inputs - foco amarelo */ | |
| input:focus, textarea:focus, select:focus { | |
| border-color: var(--color-primary) !important; | |
| outline: none !important; | |
| box-shadow: 0 0 0 3px rgba(255, 190, 0, 0.2) !important; | |
| } | |
| /* Slider - accent amarelo */ | |
| input[type="range"] { | |
| accent-color: var(--color-primary) !important; | |
| } | |
| /* Bordas arredondadas */ | |
| input, textarea, select, button { | |
| border-radius: 6px !important; | |
| } | |
| .block-container, .form { | |
| border-radius: 8px !important; | |
| } | |
| /* Transições suaves */ | |
| button, input, textarea, select, .tab-nav button { | |
| transition: all 0.2s ease !important; | |
| } | |
| /* Scrollbar minimalista */ | |
| ::-webkit-scrollbar { | |
| width: 8px !important; | |
| height: 8px !important; | |
| } | |
| ::-webkit-scrollbar-track { | |
| background: transparent !important; | |
| } | |
| ::-webkit-scrollbar-thumb { | |
| background: rgba(128, 128, 128, 0.3) !important; | |
| border-radius: 4px !important; | |
| } | |
| ::-webkit-scrollbar-thumb:hover { | |
| background: rgba(128, 128, 128, 0.5) !important; | |
| } | |
| /* Mensagens de status */ | |
| .success { | |
| color: #28a745 !important; | |
| } | |
| .warning { | |
| color: #ffc107 !important; | |
| } | |
| .error { | |
| color: #dc3545 !important; | |
| } | |
| /* Chatbot - mensagens do usuário com destaque amarelo */ | |
| .message.user { | |
| background: var(--color-primary) !important; | |
| color: #000000 !important; | |
| } | |
| /* Responsividade */ | |
| @media (max-width: 768px) { | |
| .gradio-container { | |
| padding: 1rem !important; | |
| } | |
| h1 { | |
| font-size: 1.5rem !important; | |
| } | |
| h2 { | |
| font-size: 1.25rem !important; | |
| } | |
| } | |
| """ | |