Spaces:
Runtime error
Runtime error
| /* Import Premium Typography */ | |
| @import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap'); | |
| /* Main CSS Variable Tokens */ | |
| :root { | |
| --bg-overlay: rgba(8, 15, 30, 0.75); | |
| --glass-bg: rgba(15, 23, 42, 0.45); | |
| --glass-bg-hover: rgba(15, 23, 42, 0.6); | |
| --glass-border: rgba(255, 255, 255, 0.08); | |
| --glass-highlight: rgba(255, 255, 255, 0.03); | |
| --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; | |
| --primary-cyan: #06b6d4; | |
| --primary-blue: #3b82f6; | |
| --primary-indigo: #6366f1; | |
| --text-primary: #f8fafc; | |
| --text-secondary: #cbd5e1; | |
| --text-muted: #94a3b8; | |
| /* Result Badges */ | |
| --excellent-color: #10b981; | |
| --good-color: #34d399; | |
| --fair-color: #f59e0b; | |
| --marginal-color: #f97316; | |
| --poor-color: #ef4444; | |
| } | |
| /* Page Background Setup */ | |
| body, .gradio-container { | |
| background-image: linear-gradient(var(--bg-overlay), var(--bg-overlay)), url('file/assets/background.jpg') ; | |
| background-size: cover ; | |
| background-position: center center ; | |
| background-attachment: fixed ; | |
| font-family: var(--font-family) ; | |
| color: var(--text-primary) ; | |
| margin: 0; | |
| padding: 0; | |
| min-height: 100vh; | |
| } | |
| /* Animations */ | |
| @keyframes float { | |
| 0% { transform: translateY(0px); } | |
| 50% { transform: translateY(-6px); } | |
| 100% { transform: translateY(0px); } | |
| } | |
| @keyframes pulse-glow { | |
| 0% { box-shadow: 0 0 5px rgba(6, 182, 212, 0.2); } | |
| 50% { box-shadow: 0 0 15px rgba(6, 182, 212, 0.5); } | |
| 100% { box-shadow: 0 0 5px rgba(6, 182, 212, 0.2); } | |
| } | |
| @keyframes shimmer { | |
| 0% { background-position: -200% 0; } | |
| 100% { background-position: 200% 0; } | |
| } | |
| /* Floating Logo Animation */ | |
| .floating-logo { | |
| animation: float 6s ease-in-out infinite; | |
| } | |
| /* Glassmorphism Panel Wrapper */ | |
| .glass-panel { | |
| background: var(--glass-bg) ; | |
| backdrop-filter: blur(20px) saturate(180%) ; | |
| -webkit-backdrop-filter: blur(20px) saturate(180%) ; | |
| border: 1px solid var(--glass-border) ; | |
| border-radius: 16px ; | |
| padding: 20px ; | |
| box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4) ; | |
| transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) ; | |
| } | |
| .glass-panel:hover { | |
| background: var(--glass-bg-hover) ; | |
| border-color: rgba(255, 255, 255, 0.12) ; | |
| box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5) ; | |
| } | |
| /* Typography Overrides */ | |
| h1, h2, h3, h4, h5, h6 { | |
| font-family: var(--font-family) ; | |
| font-weight: 600 ; | |
| color: var(--text-primary) ; | |
| letter-spacing: -0.02em ; | |
| } | |
| p, span, label { | |
| font-family: var(--font-family) ; | |
| color: var(--text-secondary) ; | |
| } | |
| /* Gradio Component Customizations */ | |
| .gr-box, .gr-input, .gr-form, .gr-row, .gr-col { | |
| background: transparent ; | |
| border: none ; | |
| } | |
| /* Input Fields (Sliders and Textboxes) */ | |
| input[type="range"] { | |
| accent-color: var(--primary-cyan) ; | |
| } | |
| .gradio-container input, .gradio-container textarea, .gradio-container select { | |
| background: rgba(15, 23, 42, 0.6) ; | |
| border: 1px solid var(--glass-border) ; | |
| color: var(--text-primary) ; | |
| border-radius: 8px ; | |
| padding: 10px 14px ; | |
| font-family: var(--font-family) ; | |
| transition: border-color 0.2s ease-in-out ; | |
| } | |
| .gradio-container input:focus, .gradio-container textarea:focus, .gradio-container select:focus { | |
| border-color: var(--primary-cyan) ; | |
| outline: none ; | |
| box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2) ; | |
| } | |
| /* Labels and Headers in Controls */ | |
| .gradio-container .block-title { | |
| color: var(--primary-cyan) ; | |
| font-size: 0.9rem ; | |
| font-weight: 600 ; | |
| text-transform: uppercase ; | |
| letter-spacing: 0.05em ; | |
| margin-bottom: 6px ; | |
| } | |
| /* Premium Action Buttons */ | |
| .action-btn { | |
| background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue)) ; | |
| color: white ; | |
| font-weight: 600 ; | |
| border: none ; | |
| border-radius: 12px ; | |
| padding: 12px 24px ; | |
| box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3) ; | |
| cursor: pointer ; | |
| transition: all 0.3s ease ; | |
| font-family: var(--font-family) ; | |
| animation: pulse-glow 3s infinite; | |
| } | |
| .action-btn:hover { | |
| transform: translateY(-2px) ; | |
| box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5) ; | |
| filter: brightness(1.1) ; | |
| } | |
| .action-btn:active { | |
| transform: translateY(1px) ; | |
| } | |
| /* Clear/Reset Button styling */ | |
| .clear-btn { | |
| background: rgba(255, 255, 255, 0.05) ; | |
| border: 1px solid var(--glass-border) ; | |
| color: var(--text-secondary) ; | |
| border-radius: 12px ; | |
| transition: all 0.2s ease ; | |
| } | |
| .clear-btn:hover { | |
| background: rgba(255, 255, 255, 0.1) ; | |
| color: var(--text-primary) ; | |
| } | |
| /* Custom Prediction Badges (rendered inside MD) */ | |
| .badge { | |
| display: inline-block; | |
| padding: 6px 14px; | |
| border-radius: 9999px; | |
| font-weight: 700; | |
| font-size: 1.1rem; | |
| text-transform: uppercase; | |
| letter-spacing: 0.05em; | |
| box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); | |
| } | |
| .badge-excellent { | |
| color: var(--excellent-color); | |
| background: rgba(16, 185, 129, 0.15); | |
| border: 1px solid rgba(16, 185, 129, 0.3); | |
| } | |
| .badge-good { | |
| color: var(--good-color); | |
| background: rgba(52, 211, 153, 0.15); | |
| border: 1px solid rgba(52, 211, 153, 0.3); | |
| } | |
| .badge-fair { | |
| color: var(--fair-color); | |
| background: rgba(245, 158, 11, 0.15); | |
| border: 1px solid rgba(245, 158, 11, 0.3); | |
| } | |
| .badge-marginal { | |
| color: var(--marginal-color); | |
| background: rgba(249, 115, 22, 0.15); | |
| border: 1px solid rgba(249, 115, 22, 0.3); | |
| } | |
| .badge-poor { | |
| color: var(--poor-color); | |
| background: rgba(239, 68, 68, 0.15); | |
| border: 1px solid rgba(239, 68, 68, 0.3); | |
| } | |
| /* Hide Default Gradio Header and Footer for custom branding integration */ | |
| footer { | |
| display: none ; | |
| } | |
| /* Custom Scrollbar for premium feel */ | |
| ::-webkit-scrollbar { | |
| width: 8px; | |
| height: 8px; | |
| } | |
| ::-webkit-scrollbar-track { | |
| background: rgba(15, 23, 42, 0.3); | |
| } | |
| ::-webkit-scrollbar-thumb { | |
| background: rgba(255, 255, 255, 0.15); | |
| border-radius: 4px; | |
| } | |
| ::-webkit-scrollbar-thumb:hover { | |
| background: rgba(255, 255, 255, 0.3); | |
| } | |
| /* Make Charts fit nicely and transparent background */ | |
| .gradio-container img { | |
| border-radius: 8px ; | |
| } | |
| /* Adjust layout on mobile devices */ | |
| @media (max-width: 768px) { | |
| .glass-panel { | |
| padding: 12px ; | |
| } | |
| } | |
| .top-margin{ | |
| margin-top:15px; | |
| } |