/* ======================================== TRADUS PREMIUM FINTECH DESIGN SYSTEM ======================================== Design Philosophy: Institutional Luxury Inspired by: Bloomberg Terminal, Goldman Sachs, Modern FinTech ======================================== */ /* CSS Variables - Premium Color Palette */ :root { /* Primary Background - Deep Space */ --bg-primary: #0A0E27; --bg-secondary: #111827; --bg-tertiary: #1A1F3A; --bg-elevated: #1E2438; /* Premium Gradients */ --gradient-primary: linear-gradient(135deg, #667EEA 0%, #764BA2 100%); --gradient-accent: linear-gradient(135deg, #00F0FF 0%, #00C9FF 100%); --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%); --gradient-success: linear-gradient(135deg, #00C851 0%, #00E676 100%); --gradient-danger: linear-gradient(135deg, #FF4444 0%, #FF6B6B 100%); --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%); /* Accent Colors */ --accent: #00F0FF; --accent-dim: rgba(0, 240, 255, 0.2); --accent-primary: #00F0FF; --accent-secondary: #667EEA; --accent-tertiary: #764BA2; /* Semantic Colors */ --success: #00E676; --warning: #FFB300; --danger: #FF4444; --info: #2196F3; /* Text Hierarchy */ --text-primary: #FFFFFF; --text-secondary: #B0B8D4; --text-tertiary: #6B7394; --text-disabled: #4A5568; /* Borders */ --border: rgba(255, 255, 255, 0.08); --border-bright: rgba(255, 255, 255, 0.15); --border-accent: rgba(0, 240, 255, 0.3); /* Shadows */ --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15); --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25); --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35); --shadow-accent: 0 0 20px rgba(0, 240, 255, 0.3); --shadow-gold: 0 0 20px rgba(255, 215, 0, 0.3); /* Spacing Scale */ --space-xs: 4px; --space-sm: 8px; --space-md: 16px; --space-lg: 24px; --space-xl: 32px; --space-2xl: 48px; /* Border Radius */ --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px; --radius-xl: 16px; --radius-full: 9999px; /* Typography Scale */ --font-xs: 11px; --font-sm: 13px; --font-base: 14px; --font-md: 16px; --font-lg: 18px; --font-xl: 24px; --font-2xl: 32px; --font-3xl: 40px; /* Z-Index Scale */ --z-base: 0; --z-elevated: 10; --z-sticky: 100; --z-modal: 1000; --z-tooltip: 1100; } /* ======================================== GLOBAL STYLES & RESET ======================================== */ @import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=DM+Serif+Display&family=JetBrains+Mono:wght@400;500&display=swap'); * { margin: 0; padding: 0; box-sizing: border-box; } html, body { height: 100%; font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg-primary); color: var(--text-primary); font-size: var(--font-base); line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; } body::before { content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-image: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%), radial-gradient(circle at 40% 20%, rgba(0, 240, 255, 0.05) 0%, transparent 50%); pointer-events: none; z-index: 0; } #app { height: 100vh; height: 100dvh; display: flex; align-items: center; justify-content: center; padding: var(--space-lg); position: relative; z-index: 1; } /* ======================================== TYPOGRAPHY ======================================== */ h1, h2, h3, h4, h5, h6 { font-family: 'DM Serif Display', serif; font-weight: 400; line-height: 1.2; letter-spacing: -0.02em; color: var(--text-primary); } h1 { font-size: var(--font-3xl); } h2 { font-size: var(--font-2xl); } h3 { font-size: var(--font-xl); } p { margin-bottom: var(--space-md); color: var(--text-primary); } a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; } a:hover { color: var(--text-primary); } /* ======================================== MAIN CONTAINER ======================================== */ .container { width: 100%; max-width: 900px; height: 100%; max-height: min(900px, calc(100vh - 40px)); display: flex; flex-direction: column; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; position: relative; box-shadow: var(--shadow-lg); } .container::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gradient-primary); opacity: 0.8; } /* ======================================== HEADER ======================================== */ .header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-lg) var(--space-xl); border-bottom: 1px solid var(--border); background: var(--bg-primary); position: relative; } .logo { display: flex; align-items: center; gap: var(--space-md); font-size: var(--font-md); font-weight: 500; letter-spacing: 0.5px; color: var(--text-primary); } .logo svg { color: var(--accent); filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.5)); } .header-right { display: flex; align-items: center; gap: var(--space-md); } /* Model Selector */ .model-selector { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); background: var(--bg-secondary); border: 1px solid var(--border-bright); border-radius: var(--radius-md); transition: all 0.3s ease; } .model-selector:hover { border-color: var(--border-accent); box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.1); } .model-selector svg { color: var(--accent); flex-shrink: 0; } .model-select { background: transparent; border: none; outline: none; color: var(--text-primary); font-size: var(--font-sm); font-family: inherit; cursor: pointer; padding: 0; } .model-select option { background: var(--bg-secondary); color: var(--text-primary); } .model-name { color: var(--text-primary); font-size: var(--font-sm); font-family: inherit; } /* Logout Button */ .logout-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-left: var(--space-sm); background: transparent; border: 1px solid var(--border-bright); border-radius: var(--radius-md); color: var(--text-secondary); cursor: pointer; transition: all 0.3s ease; } .logout-btn:hover { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-accent); } .status { display: flex; align-items: center; gap: var(--space-sm); font-size: var(--font-sm); color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; } .status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: statusPulse 2s ease-in-out infinite; } @keyframes statusPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } } /* ======================================== CHAT CONTAINER ======================================== */ .chat-container { flex: 1; overflow-y: auto; overflow-x: hidden; } /* Welcome Screen */ .welcome { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--space-2xl) var(--space-lg); animation: fadeIn 0.5s ease; } .welcome-icon { margin-bottom: var(--space-lg); opacity: 0.8; } .welcome-icon svg { stroke: var(--accent); filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.4)); } .welcome h1 { font-size: var(--font-2xl); font-weight: 400; letter-spacing: 1px; margin-bottom: var(--space-sm); background: var(--gradient-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .welcome-subtitle { font-size: var(--font-base); color: var(--text-secondary); letter-spacing: 0.5px; margin-bottom: var(--space-2xl); } .guide-section { width: 100%; max-width: 700px; margin-bottom: var(--space-lg); } .example-queries { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; } .example-btn { padding: var(--space-sm) var(--space-md); background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-md); color: var(--text-secondary); font-size: var(--font-sm); cursor: pointer; transition: all 0.3s ease; font-family: 'DM Sans', sans-serif; } .example-btn:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 240, 255, 0.2); } .welcome-footer { margin-top: var(--space-lg); } .welcome-footer p { font-size: var(--font-sm); color: var(--text-secondary); letter-spacing: 0.5px; } /* Messages */ .messages { padding: var(--space-xl); display: flex; flex-direction: column; gap: var(--space-lg); } .message { display: flex; animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1); } @keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .message.user { justify-content: flex-end; } .message.assistant { justify-content: flex-start; } .message-content { max-width: 85%; } .message.user .message-content { background: var(--bg-tertiary); border: 1px solid var(--border-bright); border-radius: var(--radius-md); padding: var(--space-md) var(--space-lg); position: relative; } .message.user .message-content::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--gradient-primary); border-radius: var(--radius-md) 0 0 var(--radius-md); } .message.assistant .message-content { background: transparent; border-left: 2px solid var(--accent); padding: 0 0 0 var(--space-lg); } .text { font-size: var(--font-base); line-height: 1.7; color: var(--text-primary); word-wrap: break-word; } /* Message Actions */ .message-actions { display: flex; gap: var(--space-sm); margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px solid var(--border); } .action-btn { display: flex; align-items: center; gap: 6px; padding: var(--space-sm) var(--space-md); background: transparent; border: 1px solid var(--border-bright); border-radius: var(--radius-md); color: var(--text-secondary); font-size: var(--font-xs); cursor: pointer; transition: all 0.3s ease; font-family: 'DM Sans', sans-serif; } .action-btn:hover { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); transform: translateY(-1px); } .action-btn svg { flex-shrink: 0; } /* Streaming Indicator */ .streaming-indicator { display: flex; gap: 6px; align-items: center; margin-top: var(--space-md); padding: var(--space-sm) 0; } .streaming-indicator .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: pulse 1.4s infinite ease-in-out; } .streaming-indicator .dot:nth-child(1) { animation-delay: -0.32s; } .streaming-indicator .dot:nth-child(2) { animation-delay: -0.16s; } @keyframes pulse { 0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1); } } /* Chart */ .chart-box { margin-top: var(--space-md); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--bg-primary); box-shadow: var(--shadow-md); } .chart { width: 100%; height: 400px; } /* ======================================== INPUT CONTAINER ======================================== */ .input-container { padding: var(--space-lg) var(--space-xl); border-top: 1px solid var(--border); background: var(--bg-primary); } .input-wrapper { display: flex; align-items: center; gap: var(--space-md); background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-md); transition: all 0.3s ease; } .input-wrapper:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1); } .input-wrapper textarea { flex: 1; background: transparent; border: none; outline: none; color: var(--text-primary); font-size: var(--font-base); font-family: inherit; resize: none; max-height: 120px; line-height: 1.5; padding: 0; vertical-align: middle; } .input-wrapper textarea::placeholder { color: var(--text-tertiary); } .send-btn { width: 36px; height: 36px; background: transparent; border: 1px solid var(--border-bright); border-radius: var(--radius-md); color: var(--accent); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; flex-shrink: 0; } .send-btn:hover:not(:disabled) { background: var(--gradient-accent); border-color: transparent; color: #000; transform: scale(1.05); box-shadow: var(--shadow-accent); } .send-btn:disabled { opacity: 0.3; cursor: not-allowed; } /* Footer Info */ .footer-info { display: flex; align-items: center; justify-content: center; gap: var(--space-sm); margin-top: var(--space-md); font-size: var(--font-xs); color: var(--text-tertiary); letter-spacing: 0.5px; } .copyright { color: var(--text-secondary); } .footer-divider { color: var(--border-bright); } .contact-link { color: var(--accent); cursor: pointer; transition: all 0.3s ease; padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-sm); } .contact-link:hover { background: var(--accent-dim); box-shadow: 0 0 8px var(--accent-dim); } /* ======================================== SPINNER ======================================== */ .spinner { width: 16px; height: 16px; border: 2px solid var(--border-bright); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* ======================================== SCROLLBAR ======================================== */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: var(--bg-primary); } ::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: var(--radius-full); } ::-webkit-scrollbar-thumb:hover { background: var(--border-bright); } /* ======================================== RESPONSIVE DESIGN ======================================== */ @media (max-width: 768px) { :root { --font-xl: 20px; --font-2xl: 24px; --font-3xl: 32px; } #app { padding: var(--space-md); } .container { max-width: 100%; max-height: 100%; border-radius: var(--radius-lg); } .header { padding: var(--space-md) var(--space-lg); } .messages { padding: var(--space-lg); } .message-content { max-width: 90%; } .input-container { padding: var(--space-md) var(--space-lg); } } @media (max-width: 480px) { :root { --font-xl: 18px; --font-2xl: 20px; --font-3xl: 24px; } #app { padding: 0; height: 100vh; height: 100dvh; } .container { max-width: 100%; max-height: 100%; border-radius: 0; border: none; } } /* ======================================== MARKDOWN STYLES ======================================== */ .markdown h1, .markdown h2, .markdown h3, .markdown h4 { color: var(--text-primary); font-weight: 500; margin: var(--space-lg) 0 var(--space-md) 0; letter-spacing: 0.5px; } .markdown h1 { font-size: var(--font-lg); border-bottom: 1px solid var(--border); padding-bottom: var(--space-sm); } .markdown h2 { font-size: var(--font-md); color: var(--accent); } .markdown h3 { font-size: var(--font-md); } .markdown p { margin: var(--space-md) 0; color: var(--text-primary); } .markdown ul, .markdown ol { margin: var(--space-md) 0; padding-left: var(--space-lg); } .markdown li { margin: var(--space-sm) 0; color: var(--text-primary); } .markdown code { background: var(--bg-tertiary); border: 1px solid var(--border); padding: 2px 6px; border-radius: var(--radius-sm); font-family: 'JetBrains Mono', 'Monaco', 'Courier New', monospace; font-size: var(--font-sm); color: var(--accent); } .markdown pre { background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-md); overflow-x: auto; margin: var(--space-md) 0; } .markdown pre code { background: none; border: none; padding: 0; color: var(--text-primary); } .markdown blockquote { border-left: 3px solid var(--accent); padding-left: var(--space-md); margin: var(--space-md) 0; color: var(--text-secondary); font-style: italic; } .markdown a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s; } .markdown a:hover { border-bottom-color: var(--accent); } .markdown strong { color: var(--text-primary); font-weight: 600; } .markdown table { width: 100%; border-collapse: collapse; margin: var(--space-md) 0; } .markdown th, .markdown td { border: 1px solid var(--border); padding: var(--space-sm) var(--space-md); text-align: left; } .markdown th { background: var(--bg-tertiary); font-weight: 500; } /* ======================================== MODALS ======================================== */ .image-modal, .contact-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.95); display: flex; align-items: center; justify-content: center; z-index: var(--z-modal); padding: var(--space-lg); animation: modalFadeIn 0.3s ease; backdrop-filter: blur(10px); } @keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } } .image-modal-content, .contact-modal-content { position: relative; background: var(--bg-primary); border: 1px solid var(--border-bright); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); animation: slideUp 0.3s ease; } .image-modal-content { max-width: 90%; max-height: 90%; display: flex; flex-direction: column; align-items: center; gap: var(--space-md); } .contact-modal-content { padding: var(--space-xl); max-width: 400px; width: 100%; } .modal-close-btn { position: absolute; top: var(--space-md); right: var(--space-md); width: 32px; height: 32px; background: transparent; border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; } .modal-close-btn:hover { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); transform: rotate(90deg); } .image-modal-content .modal-close-btn { position: absolute; top: -50px; right: 0; } .modal-image { max-width: 100%; max-height: calc(90vh - 80px); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); } .modal-hint { color: var(--text-secondary); font-size: var(--font-sm); text-align: center; padding: var(--space-sm) var(--space-md); background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); } .contact-title { font-size: var(--font-lg); font-weight: 600; color: var(--text-primary); margin: 0 0 var(--space-lg) 0; text-align: center; } .contact-info { display: flex; flex-direction: column; gap: var(--space-md); margin-bottom: var(--space-lg); } .contact-item { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-md); background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-secondary); font-size: var(--font-base); } .contact-item svg { color: var(--accent); flex-shrink: 0; } .contact-item strong { color: var(--accent); font-family: 'JetBrains Mono', 'Monaco', 'Courier New', monospace; font-weight: 600; } .copy-btn { width: 100%; padding: var(--space-md); background: var(--accent-dim); border: 1px solid var(--accent); border-radius: var(--radius-md); color: var(--accent); font-size: var(--font-base); font-weight: 500; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: var(--space-sm); transition: all 0.3s ease; font-family: 'DM Sans', sans-serif; } .copy-btn:hover { background: var(--gradient-accent); color: #000; box-shadow: var(--shadow-accent); transform: translateY(-2px); } .copy-btn svg { flex-shrink: 0; } .contact-hint { text-align: center; color: var(--text-tertiary); font-size: var(--font-xs); margin: 0; padding-top: var(--space-md); border-top: 1px solid var(--border); } /* ======================================== SELECTION ======================================== */ ::selection { background: rgba(0, 240, 255, 0.3); color: white; } /* Focus Visible */ :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } /* Share Image Container (hidden, used for rendering) */ .share-image-container { position: fixed; left: -9999px; top: 0; width: 800px; background: var(--bg-secondary); padding: var(--space-2xl); border: 1px solid var(--border); } .share-image-header { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-lg); padding-bottom: var(--space-md); border-bottom: 1px solid var(--border); } .share-image-logo { font-size: var(--font-lg); font-weight: 500; color: var(--text-primary); letter-spacing: 0.5px; } .share-image-content { color: var(--text-primary); font-size: var(--font-base); line-height: 1.8; border-left: 2px solid var(--accent); padding-left: var(--space-lg); } .share-image-footer { margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--border); text-align: center; font-size: var(--font-xs); color: var(--text-tertiary); } .share-image-question { margin-bottom: var(--space-lg); padding: var(--space-md) var(--space-lg); background: rgba(0, 240, 255, 0.05); border: 1px solid rgba(0, 240, 255, 0.2); border-radius: var(--radius-md); } .share-image-question-label { font-size: var(--font-xs); font-weight: 500; color: var(--accent); margin-bottom: var(--space-sm); text-transform: uppercase; letter-spacing: 1px; } .share-image-question-text { font-size: var(--font-md); font-weight: 500; color: var(--text-primary); line-height: 1.5; } .share-image-answer { margin-bottom: 0; } .share-image-answer-label { font-size: var(--font-xs); font-weight: 500; color: var(--text-secondary); margin-bottom: var(--space-md); text-transform: uppercase; letter-spacing: 1px; } /* Typing Indicator */ .typing { display: flex; gap: 6px; padding: var(--space-sm) 0; } .typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: bounce 1.4s infinite ease-in-out; } .typing span:nth-child(1) { animation-delay: 0s; } .typing span:nth-child(2) { animation-delay: 0.2s; } .typing span:nth-child(3) { animation-delay: 0.4s; } @keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-8px); opacity: 1; } }