Spaces:
Sleeping
Sleeping
Download static/styles.css from Iamyash2004/fintech-rag-platform: direct link, hf CLI and curl.
- Browser
- Download file 13.4 kB
-
https://huggingface.co/spaces/Iamyash2004/fintech-rag-platform/resolve/main/static/styles.css
- Command line
-
hf download hf://spaces/Iamyash2004/fintech-rag-platform/static/styles.css
-
curl -L -o styles.css https://huggingface.co/spaces/Iamyash2004/fintech-rag-platform/resolve/main/static/styles.css
13.4 kB
| /* ========================================================================== | |
| FinTech AI Design System & Styling | |
| High-Contrast Glassmorphism with Strict Gradio Override Shielding & Click Intercepts | |
| ========================================================================== */ | |
| :root { | |
| --bg-dark: #090d16; | |
| --bg-card: rgba(15, 23, 42, 0.95); | |
| --border-color: rgba(255, 255, 255, 0.15); | |
| --primary: #818cf8; | |
| --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%); | |
| --accent-cyan: #38bdf8; | |
| --accent-emerald: #34d399; | |
| --accent-amber: #fbbf24; | |
| --accent-rose: #f87171; | |
| --font-heading: 'Outfit', sans-serif; | |
| --font-body: 'Inter', sans-serif; | |
| --font-code: 'Fira Code', monospace; | |
| --radius-sm: 8px; | |
| --radius-md: 14px; | |
| --radius-lg: 20px; | |
| } | |
| * { | |
| box-sizing: border-box; | |
| margin: 0; | |
| padding: 0; | |
| } | |
| body { | |
| font-family: var(--font-body); | |
| background-color: var(--bg-dark) ; | |
| color: #f8fafc ; | |
| min-height: 100vh; | |
| overflow-x: hidden; | |
| } | |
| /* Force override any Gradio theme text dimming */ | |
| p, span, h1, h2, h3, h4, h5, h6, div, label, button, a { | |
| color: #f8fafc; | |
| } | |
| /* Explicit Click Intercept & Pointer Event Fixes */ | |
| button, .btn, .tab-btn, .suggestion-chip, .doc-item, .send-btn, .close-btn, .upload-dropzone, .icon-btn { | |
| pointer-events: auto ; | |
| cursor: pointer ; | |
| position: relative ; | |
| z-index: 10 ; | |
| } | |
| /* Background Glowing Orbs */ | |
| .app-background { | |
| position: fixed; | |
| top: 0; left: 0; width: 100vw; height: 100vh; | |
| z-index: -1; | |
| overflow: hidden; | |
| } | |
| .glow-orb { | |
| position: absolute; | |
| border-radius: 50%; | |
| filter: blur(100px); | |
| opacity: 0.3; | |
| } | |
| .orb-1 { width: 450px; height: 450px; background: #6366f1; top: -100px; left: -100px; } | |
| .orb-2 { width: 500px; height: 500px; background: #a855f7; bottom: -150px; right: -100px; } | |
| .orb-3 { width: 350px; height: 350px; background: #06b6d4; top: 40%; left: 45%; } | |
| /* App Container */ | |
| .app-container { | |
| max-width: 1550px; | |
| margin: 0 auto; | |
| padding: 20px; | |
| height: 100vh; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| /* Header Bar */ | |
| .app-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| padding: 14px 24px; | |
| background: var(--bg-card) ; | |
| backdrop-filter: blur(16px); | |
| border: 1px solid var(--border-color) ; | |
| border-radius: var(--radius-md); | |
| margin-bottom: 18px; | |
| } | |
| .logo-container { | |
| display: flex; | |
| align-items: center; | |
| gap: 14px; | |
| } | |
| .logo-icon { | |
| width: 42px; | |
| height: 42px; | |
| background: var(--primary-gradient) ; | |
| border-radius: var(--radius-sm); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| font-size: 1.3rem; | |
| color: #ffffff ; | |
| } | |
| .logo-text h1 { | |
| font-family: var(--font-heading); | |
| font-size: 1.5rem; | |
| font-weight: 700; | |
| color: #ffffff ; | |
| } | |
| .gradient-text { | |
| background: var(--primary-gradient) ; | |
| -webkit-background-clip: text ; | |
| -webkit-text-fill-color: transparent ; | |
| } | |
| .version-tag { | |
| font-size: 0.75rem; | |
| background: rgba(99, 102, 241, 0.3) ; | |
| color: #e0e7ff ; | |
| padding: 3px 10px; | |
| border-radius: 12px; | |
| border: 1px solid rgba(99, 102, 241, 0.5) ; | |
| margin-left: 8px; | |
| } | |
| .header-actions { | |
| display: flex; | |
| align-items: center; | |
| gap: 16px; | |
| } | |
| .provider-badge { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| background: rgba(16, 185, 129, 0.2) ; | |
| border: 1px solid rgba(16, 185, 129, 0.5) ; | |
| color: #6ee7b7 ; | |
| padding: 6px 14px; | |
| border-radius: 20px; | |
| font-size: 0.85rem; | |
| font-weight: 600; | |
| } | |
| .status-dot { | |
| width: 8px; | |
| height: 8px; | |
| border-radius: 50%; | |
| background-color: #10b981 ; | |
| } | |
| /* Glassmorphism Card Utility */ | |
| .glass-card { | |
| background: var(--bg-card) ; | |
| backdrop-filter: blur(20px); | |
| border: 1px solid var(--border-color) ; | |
| border-radius: var(--radius-lg); | |
| box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6); | |
| } | |
| /* Dashboard Layout */ | |
| .dashboard-grid { | |
| display: grid; | |
| grid-template-columns: 310px 1fr; | |
| gap: 18px; | |
| flex: 1; | |
| min-height: 0; | |
| } | |
| /* Sidebar */ | |
| .sidebar-panel { | |
| display: flex; | |
| flex-direction: column; | |
| padding: 20px; | |
| } | |
| .panel-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 16px; | |
| } | |
| .panel-header h3 { | |
| font-family: var(--font-heading); | |
| font-size: 1.1rem; | |
| font-weight: 700; | |
| color: #ffffff ; | |
| } | |
| .icon-btn { | |
| background: transparent ; | |
| border: none ; | |
| color: #cbd5e1 ; | |
| font-size: 1.1rem; | |
| cursor: pointer ; | |
| } | |
| .document-list { | |
| flex: 1; | |
| overflow-y: auto; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 10px; | |
| } | |
| .doc-item { | |
| padding: 12px 14px; | |
| background: rgba(255, 255, 255, 0.08) ; | |
| border: 1px solid var(--border-color) ; | |
| border-radius: var(--radius-md); | |
| cursor: pointer ; | |
| transition: all 0.2s ease; | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| } | |
| .doc-item:hover, .doc-item.active { | |
| background: rgba(99, 102, 241, 0.35) ; | |
| border-color: var(--primary) ; | |
| } | |
| .doc-name { | |
| font-size: 0.9rem; | |
| font-weight: 600; | |
| color: #ffffff ; | |
| white-space: nowrap; | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| } | |
| .doc-meta { | |
| font-size: 0.78rem; | |
| color: #cbd5e1 ; | |
| } | |
| .sidebar-divider { | |
| height: 1px; | |
| background: var(--border-color) ; | |
| margin: 16px 0; | |
| } | |
| .sample-doc-box { | |
| background: rgba(99, 102, 241, 0.2) ; | |
| border: 1px dashed rgba(99, 102, 241, 0.6) ; | |
| border-radius: var(--radius-md); | |
| padding: 14px; | |
| font-size: 0.88rem; | |
| } | |
| .box-title { | |
| font-weight: 700; | |
| color: #c7d2fe ; | |
| margin-bottom: 6px; | |
| } | |
| .sample-doc-box p { | |
| color: #cbd5e1 ; | |
| margin-bottom: 12px; | |
| line-height: 1.4; | |
| } | |
| /* Main Workspace */ | |
| .main-workspace { | |
| display: flex; | |
| flex-direction: column; | |
| min-height: 0; | |
| } | |
| .workspace-tabs { | |
| display: flex; | |
| gap: 12px; | |
| margin-bottom: 14px; | |
| } | |
| .tab-btn { | |
| padding: 10px 20px; | |
| background: rgba(30, 41, 59, 0.9) ; | |
| border: 1px solid var(--border-color) ; | |
| border-radius: var(--radius-md); | |
| color: #e2e8f0 ; | |
| font-weight: 700; | |
| font-size: 0.95rem; | |
| cursor: pointer ; | |
| } | |
| .tab-btn:hover, .tab-btn.active { | |
| background: var(--primary-gradient) ; | |
| color: #ffffff ; | |
| border-color: transparent ; | |
| box-shadow: 0 4px 15px rgba(99, 102, 241, 0.5); | |
| } | |
| .tab-content { | |
| display: none; | |
| flex: 1; | |
| min-height: 0; | |
| } | |
| .tab-content.active { | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| /* RAG Chat Component */ | |
| .chat-container { | |
| display: flex; | |
| flex-direction: column; | |
| flex: 1; | |
| min-height: 0; | |
| padding: 20px; | |
| } | |
| .chat-messages { | |
| flex: 1; | |
| overflow-y: auto; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 18px; | |
| padding-right: 8px; | |
| } | |
| .message { | |
| display: flex; | |
| gap: 14px; | |
| max-width: 88%; | |
| } | |
| .user-message { | |
| align-self: flex-end; | |
| flex-direction: row-reverse; | |
| } | |
| .message-avatar { | |
| width: 38px; | |
| height: 38px; | |
| border-radius: 50%; | |
| background: var(--primary-gradient) ; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| color: #ffffff ; | |
| font-size: 1.1rem; | |
| flex-shrink: 0; | |
| } | |
| .user-message .message-avatar { | |
| background: var(--accent-cyan) ; | |
| } | |
| .message-content { | |
| background: rgba(30, 41, 59, 0.85) ; | |
| border: 1px solid var(--border-color) ; | |
| padding: 16px 20px; | |
| border-radius: 16px; | |
| font-size: 0.95rem; | |
| line-height: 1.6; | |
| color: #f8fafc ; | |
| } | |
| .user-message .message-content { | |
| background: rgba(99, 102, 241, 0.4) ; | |
| border-color: rgba(99, 102, 241, 0.6) ; | |
| color: #ffffff ; | |
| } | |
| .assistant-name { | |
| font-size: 0.85rem; | |
| font-weight: 700; | |
| color: #c7d2fe ; | |
| margin-bottom: 6px; | |
| } | |
| .suggested-queries { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 10px; | |
| margin-top: 14px; | |
| } | |
| .suggestion-chip { | |
| background: rgba(255, 255, 255, 0.12) ; | |
| border: 1px solid rgba(255, 255, 255, 0.25) ; | |
| padding: 8px 14px; | |
| border-radius: 20px; | |
| font-size: 0.88rem; | |
| font-weight: 600; | |
| color: #ffffff ; | |
| cursor: pointer ; | |
| } | |
| .suggestion-chip:hover { | |
| background: rgba(99, 102, 241, 0.45) ; | |
| border-color: var(--primary) ; | |
| } | |
| /* Chat Input Bar */ | |
| .chat-input-wrapper { | |
| margin-top: 16px; | |
| } | |
| .input-container { | |
| display: flex; | |
| align-items: center; | |
| background: #0f172a ; | |
| border: 1px solid rgba(99, 102, 241, 0.5) ; | |
| border-radius: var(--radius-md); | |
| padding: 10px 16px; | |
| } | |
| textarea#queryInput { | |
| flex: 1; | |
| background: #0f172a ; | |
| border: none ; | |
| color: #ffffff ; | |
| font-family: var(--font-body) ; | |
| font-size: 0.98rem ; | |
| outline: none ; | |
| resize: none; | |
| pointer-events: auto ; | |
| } | |
| textarea#queryInput::placeholder { | |
| color: #94a3b8 ; | |
| opacity: 1 ; | |
| } | |
| .send-btn { | |
| width: 42px; | |
| height: 42px; | |
| border-radius: 10px; | |
| background: var(--primary-gradient) ; | |
| border: none ; | |
| color: #ffffff ; | |
| font-size: 1.2rem; | |
| cursor: pointer ; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| pointer-events: auto ; | |
| } | |
| .input-footer { | |
| display: flex; | |
| justify-content: space-between; | |
| font-size: 0.8rem; | |
| color: #cbd5e1 ; | |
| margin-top: 8px; | |
| padding: 0 4px; | |
| } | |
| .active-doc-tag { | |
| color: var(--accent-cyan) ; | |
| font-weight: 700; | |
| } | |
| /* Buttons */ | |
| .btn { | |
| padding: 10px 18px; | |
| border-radius: var(--radius-md); | |
| font-weight: 700; | |
| font-size: 0.9rem; | |
| cursor: pointer ; | |
| border: none; | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 8px; | |
| text-decoration: none; | |
| pointer-events: auto ; | |
| } | |
| .btn-secondary { | |
| background: rgba(255, 255, 255, 0.15) ; | |
| color: #ffffff ; | |
| border: 1px solid var(--border-color) ; | |
| } | |
| .btn-gradient { | |
| background: var(--primary-gradient) ; | |
| color: #ffffff ; | |
| } | |
| .btn-sm { padding: 6px 12px; font-size: 0.82rem; } | |
| .w-100 { width: 100%; } | |
| /* Risk Scorecard Styling */ | |
| .risk-container { | |
| padding: 24px; | |
| flex: 1; | |
| overflow-y: auto; | |
| } | |
| .risk-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 20px; | |
| } | |
| .risk-header h2 { | |
| font-family: var(--font-heading); | |
| font-size: 1.4rem; | |
| color: #ffffff ; | |
| } | |
| .score-card-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); | |
| gap: 16px; | |
| margin-bottom: 24px; | |
| } | |
| .metric-card { | |
| background: rgba(30, 41, 59, 0.85) ; | |
| border: 1px solid var(--border-color) ; | |
| padding: 18px; | |
| border-radius: var(--radius-md); | |
| } | |
| .metric-val { | |
| font-family: var(--font-heading); | |
| font-size: 1.9rem; | |
| font-weight: 700; | |
| color: var(--accent-cyan) ; | |
| margin: 6px 0; | |
| } | |
| .metric-label { | |
| font-size: 0.8rem; | |
| color: #cbd5e1 ; | |
| text-uppercase: uppercase; | |
| letter-spacing: 0.5px; | |
| } | |
| .badge { | |
| padding: 4px 10px; | |
| border-radius: 12px; | |
| font-size: 0.8rem; | |
| font-weight: 700; | |
| } | |
| .badge-success { background: rgba(16, 185, 129, 0.25) ; color: #34d399 ; } | |
| .badge-warning { background: rgba(245, 158, 11, 0.25) ; color: #fbbf24 ; } | |
| .badge-danger { background: rgba(244, 63, 94, 0.25) ; color: #f87171 ; } | |
| /* Modal */ | |
| .modal-overlay { | |
| position: fixed; | |
| top: 0; left: 0; width: 100vw; height: 100vh; | |
| background: rgba(0, 0, 0, 0.85); | |
| backdrop-filter: blur(8px); | |
| display: none; | |
| align-items: center; | |
| justify-content: center; | |
| z-index: 1000 ; | |
| } | |
| .modal-overlay.active { display: flex; } | |
| .modal-content { | |
| width: 90%; | |
| max-width: 500px; | |
| padding: 24px; | |
| background: #0f172a ; | |
| border: 1px solid var(--border-color) ; | |
| border-radius: var(--radius-lg); | |
| position: relative; | |
| z-index: 1001 ; | |
| } | |
| .modal-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 18px; | |
| color: #ffffff ; | |
| } | |
| .close-btn { | |
| background: transparent ; | |
| border: none ; | |
| color: #cbd5e1 ; | |
| font-size: 1.5rem; | |
| cursor: pointer ; | |
| } | |
| .upload-dropzone { | |
| border: 2px dashed rgba(99, 102, 241, 0.6) ; | |
| border-radius: var(--radius-md); | |
| padding: 36px 20px; | |
| text-align: center; | |
| cursor: pointer ; | |
| background: rgba(99, 102, 241, 0.12) ; | |
| } | |
| .empty-state { | |
| text-align: center; | |
| padding: 40px; | |
| color: #cbd5e1 ; | |
| } | |