Spaces:
Sleeping
Sleeping
| /* --- HEADER & LOGO --- */ | |
| .header-row { | |
| display: flex ; | |
| align-items: flex-end ; | |
| gap: 20px ; | |
| margin-bottom: 30px ; | |
| padding-bottom: 20px; | |
| border-bottom: 1px solid #e2e8f0; | |
| } | |
| .h4-margin{ | |
| margin: 4px 6px 6px 4px; | |
| } | |
| .logo-container img { margin-bottom: 4px ; object-fit: contain; } | |
| .header-text-col h1 { | |
| font-family: 'Inter', sans-serif ; | |
| font-weight: 900 ; | |
| font-size: 2.2em ; | |
| background: linear-gradient(90deg, #D65DB1 0%, #8B5CF6 50%, #F43F5E 100%); | |
| -webkit-background-clip: text; | |
| background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| text-align: left ; | |
| margin-bottom: -2px ; | |
| padding-bottom: 0 ; | |
| line-height: 1.0 ; | |
| } | |
| .header-text-col .subheader { | |
| text-align: left ; color: #64748b; font-size: 1.1em; font-weight: 500; | |
| margin-top: 0 ; padding-top: 0 ; | |
| } | |
| /* --- CUSTOM TABS STYLE --- */ | |
| .tabs > .tab-nav { border-bottom: none ; gap: 8px ; margin-bottom: 15px ; } | |
| .tabs > .tab-nav > button { | |
| border: 1px solid #e5e7eb ; border-radius: 10px ; | |
| background-color: white; color: #475569 ; font-weight: 600 ; | |
| padding: 6px 16px ; transition: all 0.2s; | |
| } | |
| .tabs > .tab-nav > button:hover { background-color: #f1f5f9 ; transform: translateY(-1px); } | |
| .tabs > .tab-nav > button.selected { | |
| background: linear-gradient(135deg, #8B5CF6 0%, #D65DB1 100%) ; | |
| color: white ; border: 1px solid transparent ; | |
| box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3) ; | |
| } | |
| /* --- COMPONENTS --- */ | |
| button.primary { | |
| background: linear-gradient(135deg, #8B5CF6 0%, #D65DB1 100%) ; | |
| border: none ; color: white ; transition: filter 0.2s; | |
| } | |
| button.primary:hover { filter: brightness(1.1); box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4); } | |
| .fixed-height { height: 380px ; overflow: hidden ; } | |
| .fixed-height button, .fixed-height .image-container, .fixed-height .upload-container { | |
| height: 100% ; max-height: 100% ; min-height: 100% ; | |
| } | |
| .fixed-height img { object-fit: contain ; max-height: 100% ; } | |
| .fixed-height-tab2 {height: 500px} | |
| /* Model Card tab BPO */ | |
| .model-card { | |
| background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 15px; | |
| font-size: 0.9em; color: #475569; margin-top: 10px; | |
| } | |
| .model-card strong{ | |
| color: #475569 | |
| } | |
| /* --- MOBILE RESPONSIVE --- */ | |
| @media (max-width: 768px) { | |
| /* Gestione Contenitore Principale*/ | |
| .gradio-container { | |
| padding-left: 15px ; | |
| padding-right: 15px ; | |
| max-width: 100% ; | |
| overflow-x: hidden ; | |
| } | |
| /* Header più compatto e centrato */ | |
| .header-row { | |
| flex-direction: row ; | |
| align-items: center ; | |
| justify-content: flex-start ; | |
| gap: 15px ; | |
| margin-bottom: 20px ; | |
| height: auto ; | |
| text-align: left ; | |
| padding-left: 5px ; | |
| padding-right: 5px ; | |
| } | |
| .logo-container { | |
| width: auto ; | |
| flex-shrink: 0 ; | |
| flex-grow: 0 ; | |
| margin: 0 ; | |
| padding: 0 ; | |
| display: flex ; | |
| align-items: center ; | |
| overflow: visible ; | |
| } | |
| .logo-container img { | |
| height: 60px ; | |
| width: auto ; | |
| margin-bottom: 0 ; | |
| object-fit: contain ; | |
| } | |
| .header-text-col { | |
| width: auto ; | |
| min-width: 0 ; | |
| flex-grow: 1 ; | |
| display: flex ; | |
| flex-direction: column ; | |
| justify-content: center ; | |
| } | |
| .header-text-col h1 { | |
| text-align: left ; | |
| font-size: 1.5em ; | |
| line-height: 1.2 ; | |
| margin-bottom: 2px ; | |
| white-space: normal ; | |
| word-wrap: break-word ; | |
| } | |
| .header-text-col .subheader { | |
| text-align: left ; | |
| font-size: 0.85rem ; | |
| margin-top: 0 ; | |
| line-height: 1.2 ; | |
| display: block ; | |
| } | |
| /* Responsive Rows: Stack verticale pulito */ | |
| .responsive-row { | |
| flex-direction: column ; | |
| display: flex ; | |
| gap: 20px ; | |
| } | |
| .responsive-row > * { | |
| width: 100% ; | |
| min-width: 0 ; | |
| margin: 0 ; | |
| padding: 0 ; | |
| } | |
| /* Tab Navigation: Griglia 2x2 per i pulsanti */ | |
| .tabs > .tab-nav { | |
| display: flex ; | |
| flex-wrap: wrap ; | |
| justify-content: center ; | |
| gap: 8px ; | |
| } | |
| .tabs > .tab-nav > button { | |
| flex-grow: 1 ; | |
| text-align: center ; | |
| font-size: 0.85rem ; | |
| padding: 8px 4px ; | |
| width: 48% ; | |
| min-width: auto ; | |
| } | |
| button { | |
| min-height: 45px ; | |
| height: auto ; | |
| } | |
| .fixed-height { | |
| height: auto ; | |
| min-height: 300px ; | |
| } | |
| } | |
| footer {visibility: hidden} |