/* ========================================================================== 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) !important; color: #f8fafc !important; 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 !important; cursor: pointer !important; position: relative !important; z-index: 10 !important; } /* 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) !important; backdrop-filter: blur(16px); border: 1px solid var(--border-color) !important; 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) !important; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #ffffff !important; } .logo-text h1 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: #ffffff !important; } .gradient-text { background: var(--primary-gradient) !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; } .version-tag { font-size: 0.75rem; background: rgba(99, 102, 241, 0.3) !important; color: #e0e7ff !important; padding: 3px 10px; border-radius: 12px; border: 1px solid rgba(99, 102, 241, 0.5) !important; 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) !important; border: 1px solid rgba(16, 185, 129, 0.5) !important; color: #6ee7b7 !important; 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 !important; } /* Glassmorphism Card Utility */ .glass-card { background: var(--bg-card) !important; backdrop-filter: blur(20px); border: 1px solid var(--border-color) !important; 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 !important; } .icon-btn { background: transparent !important; border: none !important; color: #cbd5e1 !important; font-size: 1.1rem; cursor: pointer !important; } .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) !important; border: 1px solid var(--border-color) !important; border-radius: var(--radius-md); cursor: pointer !important; 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) !important; border-color: var(--primary) !important; } .doc-name { font-size: 0.9rem; font-weight: 600; color: #ffffff !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .doc-meta { font-size: 0.78rem; color: #cbd5e1 !important; } .sidebar-divider { height: 1px; background: var(--border-color) !important; margin: 16px 0; } .sample-doc-box { background: rgba(99, 102, 241, 0.2) !important; border: 1px dashed rgba(99, 102, 241, 0.6) !important; border-radius: var(--radius-md); padding: 14px; font-size: 0.88rem; } .box-title { font-weight: 700; color: #c7d2fe !important; margin-bottom: 6px; } .sample-doc-box p { color: #cbd5e1 !important; 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) !important; border: 1px solid var(--border-color) !important; border-radius: var(--radius-md); color: #e2e8f0 !important; font-weight: 700; font-size: 0.95rem; cursor: pointer !important; } .tab-btn:hover, .tab-btn.active { background: var(--primary-gradient) !important; color: #ffffff !important; border-color: transparent !important; 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) !important; display: flex; align-items: center; justify-content: center; color: #ffffff !important; font-size: 1.1rem; flex-shrink: 0; } .user-message .message-avatar { background: var(--accent-cyan) !important; } .message-content { background: rgba(30, 41, 59, 0.85) !important; border: 1px solid var(--border-color) !important; padding: 16px 20px; border-radius: 16px; font-size: 0.95rem; line-height: 1.6; color: #f8fafc !important; } .user-message .message-content { background: rgba(99, 102, 241, 0.4) !important; border-color: rgba(99, 102, 241, 0.6) !important; color: #ffffff !important; } .assistant-name { font-size: 0.85rem; font-weight: 700; color: #c7d2fe !important; margin-bottom: 6px; } .suggested-queries { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; } .suggestion-chip { background: rgba(255, 255, 255, 0.12) !important; border: 1px solid rgba(255, 255, 255, 0.25) !important; padding: 8px 14px; border-radius: 20px; font-size: 0.88rem; font-weight: 600; color: #ffffff !important; cursor: pointer !important; } .suggestion-chip:hover { background: rgba(99, 102, 241, 0.45) !important; border-color: var(--primary) !important; } /* Chat Input Bar */ .chat-input-wrapper { margin-top: 16px; } .input-container { display: flex; align-items: center; background: #0f172a !important; border: 1px solid rgba(99, 102, 241, 0.5) !important; border-radius: var(--radius-md); padding: 10px 16px; } textarea#queryInput { flex: 1; background: #0f172a !important; border: none !important; color: #ffffff !important; font-family: var(--font-body) !important; font-size: 0.98rem !important; outline: none !important; resize: none; pointer-events: auto !important; } textarea#queryInput::placeholder { color: #94a3b8 !important; opacity: 1 !important; } .send-btn { width: 42px; height: 42px; border-radius: 10px; background: var(--primary-gradient) !important; border: none !important; color: #ffffff !important; font-size: 1.2rem; cursor: pointer !important; display: flex; align-items: center; justify-content: center; pointer-events: auto !important; } .input-footer { display: flex; justify-content: space-between; font-size: 0.8rem; color: #cbd5e1 !important; margin-top: 8px; padding: 0 4px; } .active-doc-tag { color: var(--accent-cyan) !important; font-weight: 700; } /* Buttons */ .btn { padding: 10px 18px; border-radius: var(--radius-md); font-weight: 700; font-size: 0.9rem; cursor: pointer !important; border: none; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; pointer-events: auto !important; } .btn-secondary { background: rgba(255, 255, 255, 0.15) !important; color: #ffffff !important; border: 1px solid var(--border-color) !important; } .btn-gradient { background: var(--primary-gradient) !important; color: #ffffff !important; } .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 !important; } .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) !important; border: 1px solid var(--border-color) !important; 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) !important; margin: 6px 0; } .metric-label { font-size: 0.8rem; color: #cbd5e1 !important; 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) !important; color: #34d399 !important; } .badge-warning { background: rgba(245, 158, 11, 0.25) !important; color: #fbbf24 !important; } .badge-danger { background: rgba(244, 63, 94, 0.25) !important; color: #f87171 !important; } /* 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 !important; } .modal-overlay.active { display: flex; } .modal-content { width: 90%; max-width: 500px; padding: 24px; background: #0f172a !important; border: 1px solid var(--border-color) !important; border-radius: var(--radius-lg); position: relative; z-index: 1001 !important; } .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; color: #ffffff !important; } .close-btn { background: transparent !important; border: none !important; color: #cbd5e1 !important; font-size: 1.5rem; cursor: pointer !important; } .upload-dropzone { border: 2px dashed rgba(99, 102, 241, 0.6) !important; border-radius: var(--radius-md); padding: 36px 20px; text-align: center; cursor: pointer !important; background: rgba(99, 102, 241, 0.12) !important; } .empty-state { text-align: center; padding: 40px; color: #cbd5e1 !important; }