evo-frontend / web /src /App.css
fraudTech's picture
tighten space between math sybmbols and text input
15ef4d5
Raw History Blame
27.3 kB
* { margin: 0; padding: 0; box-sizing: border-box; } strong, b, [style*="font-weight: 700"], [style*="font-weight: bold"] { color: #e8d4c0 !important; font-weight: 600; } body { font-family: 'Courier New', 'Consolas', 'Monaco', monospace; -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; background: #1a1614; color: #d4c5b9; overflow: hidden; height: 100vh; } @keyframes flicker { 0% { opacity: 0.98; } 50% { opacity: 1; } 100% { opacity: 0.98; } } #root { height: 100vh; overflow: hidden; } .app { display: flex; flex-direction: column; height: 100vh; background: #1a1614; position: relative; overflow: hidden; } /* Remove CRT effects */ .app::before, .app::after { display: none; } @keyframes scanline { 0% { transform: translateY(0); } 100% { transform: translateY(10px); } } @keyframes flicker { 0%, 100% { opacity: 0.8; } 50% { opacity: 1; } } @keyframes dot-bounce { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-4px); opacity: 1; } } @keyframes progress { 0% { width: 0%; opacity: 0.6; } 50% { width: 50%; opacity: 1; } 100% { width: 100%; opacity: 0.6; } } .header { background: #211d1a; padding: 1rem 1.5rem; border-bottom: 1px solid #3a342e; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); } .header-left { display: flex; align-items: center; gap: 1rem; } .logo-text { font-size: 2.5rem; font-weight: 900; font-family: 'Michroma', 'Arial Black', 'Helvetica', sans-serif; color: #e8d4c0; letter-spacing: 0.05em; text-transform: lowercase; margin: 0; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); } @keyframes textGlow { from { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3)); } to { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 15px rgba(255, 255, 255, 0.5)); } } .header h1::before { content: '> '; color: #e8d4c0; animation: textGlow 2s ease-in-out infinite alternate; } .version { background: #2a2520; color: #a89784; padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 500; border-radius: 4px; border: 1px solid #3a342e; } .header-actions { display: flex; gap: 1rem; align-items: center; } .tools-badge { background: #2a2520; color: #c9b8a3; padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500; border-radius: 6px; border: 1px solid #3a342e; } .settings-btn { background: #2a2520; border: 1px solid #3a342e; color: #c9b8a3; padding: 0.5rem 1rem; cursor: pointer; font-size: 0.9rem; font-weight: 500; transition: all 0.2s ease; display: flex; align-items: center; gap: 0.5rem; border-radius: 6px; } .settings-btn:hover { background: #3a342e; color: #e8d4c0; border-color: #4a433c; } .settings-btn:active { transform: scale(0.98); } .icon-settings { font-size: 1rem; } .settings-panel { background: #211d1a; padding: 1.5rem; border-bottom: 1px solid #3a342e; } .settings-panel h3 { color: #e8d4c0; margin-bottom: 1rem; font-weight: 600; font-size: 1rem; } .settings-panel h3::before { content: ''; margin-right: 0; } .settings-panel h3::after { content: ''; margin-left: 0; } .setting-group { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; } .setting-group label { min-width: 150px; font-weight: 500; color: #c9b8a3; } .setting-group input { flex: 1; padding: 0.625rem; background: #2a2520; border: 1px solid #3a342e; color: #d4c5b9; font-size: 0.9rem; border-radius: 6px; transition: all 0.2s ease; } .setting-group input:focus { outline: none; border-color: #8b7355; background: #312c27; } .save-btn { background: #8b7355; color: #1a1614; border: none; padding: 0.625rem 1.5rem; cursor: pointer; font-weight: 500; font-size: 0.9rem; transition: all 0.2s ease; border-radius: 6px; } .save-btn:hover { background: #9d8264; } .save-btn:active { transform: scale(0.98); } .available-tools { background: #211d1a; padding: 1.5rem; border-bottom: 1px solid #3a342e; } .available-tools h4 { color: #e8d4c0; margin-bottom: 1rem; font-weight: 600; font-size: 1rem; } .available-tools h4::before { content: ''; margin-right: 0; } .available-tools h4::after { content: ''; margin-left: 0; } .tools-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; } .tool-chip { background: #2a2520; padding: 0.375rem 0.875rem; font-size: 0.8rem; color: #c9b8a3; font-weight: 500; border: 1px solid #3a342e; border-radius: 4px; } .chat-container { display: flex; flex-direction: column; flex: 1; overflow: hidden; background: #1a1614; min-height: 0; max-height: calc(100vh - 60px); padding: 0 2rem 1.5rem 2rem; } .messages { flex: 1 1 0; overflow-y: auto; overflow-x: hidden; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; scrollbar-width: thin; scrollbar-color: #3a342e #211d1a; min-height: 0; } .messages::-webkit-scrollbar { width: 10px; } .messages::-webkit-scrollbar-track { background: #211d1a; } .messages::-webkit-scrollbar-thumb { background: #3a342e; border-radius: 5px; } .messages::-webkit-scrollbar-thumb:hover { background: #4a433c; } .welcome { text-align: center; padding: 4rem 2rem; } .welcome h2 { color: #e8d4c0; margin-bottom: 1rem; font-size: 2rem; font-weight: 600; } .welcome h2::before { content: ''; } .welcome h2::after { content: ''; } .welcome p { color: #a89784; font-size: 1rem; } .examples { margin-top: 2rem; } .examples h3 { margin-bottom: 1.5rem; color: #c9b8a3; font-weight: 600; font-size: 1rem; } .example-btn { background: #2a2520; border: 1px solid #3a342e; color: #c9b8a3; padding: 0.75rem 1.5rem; margin: 0.5rem; cursor: pointer; transition: all 0.2s ease; font-weight: 500; font-size: 0.9rem; border-radius: 6px; } .example-btn:hover { background: #3a342e; color: #e8d4c0; border-color: #4a433c; } .example-btn:active { transform: scale(0.98); } /* Math Symbols Section */ .math-symbols { margin: 1.5rem 0; max-width: 100%; background: #211d1a; border: 1px solid #3a342e; border-radius: 12px; padding: 1.5rem; padding-right: 2rem; } /* Math symbols expander */ .math-symbols-expander { margin: 1.5rem 0 0.75rem 0; background: transparent; border: none; } .math-symbols-expander[open] .math-symbols-header svg { transform: rotate(180deg); } .math-symbols-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; background: #211d1a; border: 1px solid #3a342e; border-radius: 12px; cursor: pointer; font-size: 1rem; font-weight: 600; color: #c9b8a3; transition: all 0.2s ease; list-style: none; } .math-symbols-header::-webkit-details-marker { display: none; } .math-symbols-header:hover { background: #2a2520; border-color: #4a443c; } .math-symbols-header svg { transition: transform 0.2s ease; color: #a89784; } .math-symbols-expander[open] .math-symbols { margin-top: 1rem; } .math-symbols h3 { margin-bottom: 1.5rem; color: #c9b8a3; font-weight: 600; font-size: 1rem; border-bottom: 1px solid #3a342e; padding-bottom: 0.5rem; } /* Symbol tabs */ .symbol-tabs { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 1.25rem; padding-bottom: 0; border-bottom: none; } .symbol-tab { background: #2a2520; border: 1px solid #3a342e; color: #a89784; padding: 0.625rem 1rem; cursor: pointer; transition: all 0.2s ease; font-weight: 500; font-size: 0.875rem; border-radius: 8px; text-transform: none; } .symbol-tab:hover { background: #3a342e; color: #c9b8a3; border-color: #4a443c; } .symbol-tab.active { background: linear-gradient(135deg, #6b4ecf 0%, #8b6ee0 100%); color: #ffffff; border-color: #7b5ed0; font-weight: 600; box-shadow: 0 2px 8px rgba(107, 78, 207, 0.3); border-radius: 10px; } /* Symbol content area */ .symbol-content { min-height: 150px; padding: 1rem 0; } .symbol-category { margin-bottom: 2rem; } .symbol-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; } .symbol-btn { background: #2a2520; border: 1px solid #3a342e; color: #c9b8a3; padding: 0.5rem 0.75rem; min-width: 45px; cursor: pointer; transition: all 0.2s ease; font-weight: 500; font-size: 1.1rem; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; } .symbol-btn:hover { background: #3a342e; color: #e8d4c0; border-color: #4a443c; transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); } .symbol-btn:active { transform: translateY(0) scale(0.98); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); } .template-btn { min-width: 60px; font-size: 0.75rem; font-family: 'Courier New', 'Consolas', 'Monaco', monospace; background: #2d2622; border-color: #4a443c; color: #d4a574; font-weight: 600; padding: 0.6rem 1rem; } .template-btn:hover { background: #3d342e; border-color: #5a544c; color: #e8c090; } /* Scrollbar styling for math symbols */ .math-symbols::-webkit-scrollbar { width: 8px; } .math-symbols::-webkit-scrollbar-track { background: #211d1a; border-radius: 4px; } .math-symbols::-webkit-scrollbar-thumb { background: #3a342e; border-radius: 4px; } .math-symbols::-webkit-scrollbar-thumb:hover { background: #4a443c; } .message { max-width: 800px; padding: 1.25rem 1.5rem; border: 1px solid #3a342e; background: #211d1a; border-radius: 2px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); } .message-user { align-self: flex-end; margin-left: auto; background: #2a2520; } .message-user::before { content: ''; margin-right: 0; } .message-assistant { align-self: flex-start; } .message-assistant::before { content: ''; margin-right: 0; } .message-header { display: flex; justify-content: space-between; margin-bottom: 0.75rem; font-size: 0.8rem; padding-bottom: 0.5rem; border-bottom: 1px solid #3a342e; gap: 2rem; align-items: center; } .message-header-right { display: flex; align-items: center; gap: 0.75rem; } .message-role { font-weight: 600; color: #8b7355; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.5px; } .message-time { color: #6e5d4d; opacity: 0.8; font-size: 0.75rem; } /* Copy Markdown Button */ .copy-markdown-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; padding: 0.4rem; background: #2a2520; border: 1px solid #3a342e; color: #8b7355; border-radius: 4px; cursor: pointer; font-size: 0.75rem; font-weight: 500; transition: all 0.2s ease; opacity: 0.7; } .copy-markdown-btn:hover { opacity: 1; background: #3a342e; color: #c9b8a3; border-color: #4a433c; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); } .copy-markdown-btn:active { transform: translateY(0); box-shadow: none; } .copy-markdown-btn svg { width: 14px; height: 14px; stroke-width: 2.5; } .copy-btn-text { font-family: 'Courier New', 'Consolas', 'Monaco', monospace; letter-spacing: 0.3px; } .message-content { line-height: 1.7; color: #d4c5b9; } .message-content h1, .message-content h2, .message-content h3, .message-content h4, .message-content h5, .message-content h6, .message-content strong, .message-content b { color: #f4e6d0; font-weight: 600; } .message-content pre { background: #1a1614; padding: 1rem; overflow-x: auto; margin: 0.75rem 0; border: 1px solid #3a342e; border-radius: 6px; } .message-content code { background: #2a2520; padding: 0.2rem 0.5rem; font-size: 0.9em; border-radius: 3px; color: #c9b8a3; font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Consolas', monospace; } /* KaTeX Math Rendering Styles */ /* Inline math - ensure proper spacing from surrounding text */ .message-content .katex { font-size: 1.1em; color: #e8d4c0; display: inline-block; margin: 0 0.15em; } /* Display math blocks */ .message-content .katex-display { display: block; margin: 1rem 0; padding: 1rem; background: #1a1614; border: 1px solid #3a342e; border-radius: 6px; overflow-x: auto; } /* Reset margin for katex inside display blocks */ .message-content .katex-display > .katex { margin: 0; text-align: center; } /* Math operators and symbols */ .message-content .katex .mord, .message-content .katex .mbin, .message-content .katex .mrel, .message-content .katex .mop { color: #e8d4c0; } /* Fractions */ .message-content .katex .frac-line { border-bottom-color: #a89784; } /* Math text and operators */ .message-content .katex .mathrm, .message-content .katex .mathit { color: #d4a574; } /* Ensure good contrast for all math elements */ .message-content .katex * { color: inherit; } .tool-calls { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #3a342e; } .tool-calls h4 { margin-bottom: 0.75rem; color: #8b7355; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; } /* Tool call expander - closed by default */ details.tool-call { background: #1a1614; margin-top: 0.5rem; border: 1px solid #3a342e; border-radius: 6px; transition: background 0.2s ease; } details.tool-call[open] { background: #1f1b18; } /* Clickable summary header */ details.tool-call summary { cursor: pointer; padding: 1rem; user-select: none; list-style: none; transition: background 0.2s ease; } details.tool-call summary:hover { background: rgba(139, 115, 85, 0.1); } /* Hide default disclosure triangle */ details.tool-call summary::-webkit-details-marker { display: none; } /* Tool call header styling */ .tool-call-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; padding: 0.75rem 1rem; background: #1a1614; border: 1px solid #3a342e; border-radius: 6px; font-family: "SF Mono", Monaco, "Cascadia Code", Consolas, monospace; font-size: 0.9em; transition: background 0.2s; } .tool-call-header:hover { background: #221e1a; } /* Tool execution status indicators */ .tool-status { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85em; padding: 0.25rem 0.75rem; border-radius: 4px; margin-left: auto; } .tool-status.generating { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); } .tool-status.executing { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); } .tool-status .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: dot-bounce 1.4s infinite ease-in-out; } .tool-status .dot:nth-child(1) { animation-delay: 0ms; } .tool-status .dot:nth-child(2) { animation-delay: 160ms; } .tool-status .dot:nth-child(3) { animation-delay: 320ms; } @keyframes dot-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: 0.5; } 40% { transform: translateY(-8px); opacity: 1; } } .tool-status .status-text { font-weight: 500; white-space: nowrap; } .tool-name { color: #d4a574; font-weight: 600; font-size: 0.9rem; } .checkmark { color: #7d9d7a; font-size: 1.2em; margin-left: auto; } .crossmark { color: #d46a6a; font-size: 1.2em; margin-left: auto; } /* Content area (hidden when closed) */ .tool-call-content { padding: 0 1rem 1rem 1rem; border-top: 1px solid #3a342e; } .tool-section { margin-top: 0.75rem; } /* Collapsible input section */ details.tool-section { background: transparent; border: none; border-radius: 0; } details.tool-section summary { cursor: pointer; padding: 0; user-select: none; list-style: none; margin-bottom: 0.5rem; transition: color 0.2s ease; } details.tool-section summary:hover { color: #d4a574; } /* Hide default disclosure triangle */ details.tool-section summary::-webkit-details-marker { display: none; } /* Add custom arrow indicator */ details.tool-section summary::before { content: '▶ '; display: inline-block; transition: transform 0.2s ease; margin-right: 0.25rem; } details.tool-section[open] summary::before { transform: rotate(90deg); } .tool-section-label { color: #8b7355; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; } .tool-code, .tool-output { background: #211d1a; padding: 0.75rem; overflow-x: auto; font-size: 0.85rem; border: 1px solid #3a342e; color: #c9b8a3; border-radius: 4px; font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Consolas', monospace; white-space: pre-wrap; word-break: break-word; } /* Style for tool output images (matplotlib plots) */ .tool-output img { max-width: 100%; height: auto; border-radius: 6px; border: 1px solid #3a342e; margin: 1rem 0; display: block; } /* Override monospace font for rendered markdown in tool output */ .tool-output > div { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif; } /* Keep code blocks in tool output with monospace */ .tool-output pre, .tool-output code { font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Consolas', monospace; } /* Horizontal scroll for collapsed input */ .tool-input-scroll { white-space: pre; word-break: normal; overflow-x: auto; max-width: 100%; } .typing-indicator { display: flex; align-items: center; gap: 0.5rem; padding: 1rem 0; } .typing-indicator span { width: 8px; height: 8px; background: #8b7355; border-radius: 50%; animation: typing 1.4s infinite; } .typing-indicator span:nth-child(2) { animation-delay: 0.2s; } .typing-indicator span:nth-child(3) { animation-delay: 0.4s; } .status-message { margin-left: 0.5rem; color: #9d8264; font-size: 0.9rem; font-style: italic; opacity: 0.9; } @keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-10px); opacity: 1; } } .input-container { background: transparent; padding: 0; position: relative; flex-shrink: 0; z-index: 10; display: flex; align-items: center; margin-top: 0.75rem; margin-bottom: 2rem; } .input-container textarea { width: 100%; padding: 1rem 9rem 1rem 1.25rem; background: #2a2520 !important; border: 1px solid #3a342e !important; outline: none !important; color: #d4c5b9; resize: none; font-family: 'Courier New', 'Consolas', 'Monaco', monospace; font-size: 0.95rem; line-height: 1.5; border-radius: 10px !important; transition: all 0.2s ease; letter-spacing: 0.5px; box-shadow: none !important; -webkit-appearance: none !important; -moz-appearance: none !important; appearance: none !important; } .input-container textarea:focus { outline: none; border: 1px solid #4a443c !important; background: #2a2520; box-shadow: 0 0 0 2px rgba(107, 78, 207, 0.2); } .input-container textarea::placeholder { color: #6e5d4d; } .send-btn { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); background: linear-gradient(135deg, #6b4ecf 0%, #8b6ee0 100%); color: #ffffff; border: none; padding: 0.75rem 1.5rem; cursor: pointer; font-size: 0.9rem; font-weight: 600; transition: all 0.2s ease; border-radius: 8px; display: flex; align-items: center; gap: 0.5rem; box-shadow: 0 2px 8px rgba(107, 78, 207, 0.3); } .send-btn:hover:not(:disabled) { background: linear-gradient(135deg, #7b5ed0 0%, #9b7ee5 100%); box-shadow: 0 4px 12px rgba(107, 78, 207, 0.4); transform: translateY(-51%); } .send-btn:active:not(:disabled) { transform: translateY(-50%) scale(0.98); } .send-btn:disabled { opacity: 0.5; cursor: not-allowed; background: #4a433c; box-shadow: none; } /* Login Page Styles */ .login-container { display: flex; justify-content: center; align-items: center; height: 100vh; background: #1a1614; padding: 2rem; } .login-container::before { display: none; } .login-box { background: #211d1a; border: 1px solid #3a342e; padding: 2.5rem; max-width: 420px; width: 100%; border-radius: 12px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); } .login-header { text-align: center; margin-bottom: 2rem; border-bottom: 1px solid #3a342e; padding-bottom: 1.5rem; } .login-header h1 { font-size: 2rem; color: #e8d4c0; margin-bottom: 0.5rem; font-weight: 600; } .evo-title { font-size: 4rem; font-weight: 900; font-family: 'Michroma', 'Arial Black', 'Helvetica', sans-serif; color: #e8d4c0; letter-spacing: 0.05em; text-transform: lowercase; margin: 0 0 1.5rem 0; text-align: center; text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5); } .login-subtitle { color: #a89784; font-size: 0.75rem; } .login-form { display: flex; flex-direction: column; gap: 1.5rem; } .form-group { display: flex; flex-direction: column; gap: 0.5rem; } .form-group label { color: #c9b8a3; font-size: 0.9rem; font-weight: 500; } .form-group input { padding: 0.875rem; background: #2a2520; border: 1px solid #3a342e; color: #d4c5b9; font-size: 1rem; transition: all 0.2s ease; border-radius: 2px; font-family: 'Courier New', 'Consolas', 'Monaco', monospace; letter-spacing: 0.5px; } .form-group input:focus { outline: none; border-color: #8b7355; background: #312c27; box-shadow: 0 0 8px rgba(139, 115, 85, 0.4); } .form-group input::placeholder { color: #6e5d4d; } .error-message { background: #2d1a1a; border: 1px solid #8b4545; color: #d4a3a3; padding: 0.875rem; font-size: 0.9rem; text-align: center; border-radius: 6px; } @keyframes errorPulse { from { box-shadow: 0 0 3px rgba(139, 69, 69, 0.3); } to { box-shadow: 0 0 8px rgba(139, 69, 69, 0.5); } } .login-btn { background: #8b7355; color: #1a1614; border: 1px solid #a89784; padding: 0.875rem; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; margin-top: 0.5rem; border-radius: 2px; font-family: 'Courier New', 'Consolas', 'Monaco', monospace; text-transform: uppercase; letter-spacing: 1px; } .login-btn:hover:not(:disabled) { background: #9d8264; box-shadow: 0 0 10px rgba(157, 130, 100, 0.6); text-shadow: 0 0 5px rgba(26, 22, 20, 0.8); } .login-btn:active:not(:disabled) { transform: scale(0.98); } .login-btn:disabled { opacity: 0.5; cursor: not-allowed; background: #4a433c; } .login-footer { margin-top: 1.5rem; text-align: center; padding-top: 1rem; border-top: 1px solid #3a342e; } .toggle-mode { background: transparent; border: none; color: #8b7355; font-size: 0.9rem; cursor: pointer; text-decoration: underline; transition: all 0.2s ease; } .toggle-mode:hover { color: #9d8264; } .demo-info { margin-top: 1.5rem; padding: 1rem; background: #2a2520; border: 1px solid #3a342e; font-size: 0.85rem; color: #a89784; text-align: center; border-radius: 6px; } .demo-info p { margin: 0.25rem 0; } .demo-info strong { color: #c9b8a3 !important; font-weight: 600; } /* Header User Info */ .header-right { display: flex; align-items: center; gap: 1rem; } .user-info { color: #c9b8a3; font-size: 0.9rem; padding: 0.5rem 1rem; background: #2a2520; border: 1px solid #3a342e; border-radius: 6px; } .logout-btn { background: #2a2520; border: 1px solid #3a342e; color: #c9b8a3; padding: 0.5rem 1rem; cursor: pointer; font-size: 0.9rem; font-weight: 500; transition: all 0.2s ease; border-radius: 6px; } .logout-btn:hover { background: #3a342e; color: #e8d4c0; border-color: #4a433c; } .logout-btn:active { transform: scale(0.98); } .new-chat-btn { background: #3a342e; border: 1px solid #4a433c; color: #e8d4c0; padding: 0.5rem 1rem; cursor: pointer; font-size: 0.9rem; font-weight: 500; transition: all 0.2s ease; border-radius: 6px; } .new-chat-btn:hover { background: #4a433c; color: #ffffff; border-color: #5a534c; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); } .new-chat-btn:active { transform: scale(0.98); } /* Thinking Expander Styles */ .thinking-expander { margin: 0.75rem 0; background: #211d1a; border: 1px solid #3a342e; border-radius: 8px; overflow: hidden; } .thinking-header { cursor: pointer; padding: 0.875rem 1rem; background: #2a2520; display: flex; align-items: center; gap: 0.75rem; transition: background 0.2s ease; list-style: none; user-select: none; } .thinking-header:hover { background: #312c27; } .thinking-header::-webkit-details-marker { display: none; } .thinking-spinner { width: 16px; height: 16px; border: 2px solid #3a342e; border-top-color: #8b7355; border-radius: 50%; animation: spin 1s linear infinite; flex-shrink: 0; } /* Stop animation when thinking is complete */ .thinking-spinner.complete { animation: none; border-top-color: #6e5d4d; } @keyframes spin { to { transform: rotate(360deg); } } .thinking-label { color: #c9b8a3; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.5px; } .thinking-content { padding: 0; } .thinking-text { padding: 1rem; background: #1a1614; color: #c9b8a3; font-size: 0.95rem; line-height: 1.6; border-bottom: 1px solid #3a342e; } .thinking-text p { margin: 0.5rem 0; } .thinking-text p:first-child { margin-top: 0; } .thinking-text p:last-child { margin-bottom: 0; } .thinking-expander[open] .thinking-spinner { animation: spin 1s linear infinite; } /* When thinking is complete (has final content), stop spinner */ .thinking-expander:not([open]) .thinking-spinner { border-top-color: #6e5d4d; animation: none; } /* Thinking Section - Expandable Intermediate Responses */ .thinking-section { margin: 1rem 0; border: 1px solid #3a342e; border-radius: 6px; background: #1a1614; overflow: hidden; } .thinking-header { padding: 0.75rem 1rem; background: #211d1a; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; user-select: none; transition: background 0.2s ease; } .thinking-header:hover { background: #2a2520; } .thinking-icon { font-size: 1rem; opacity: 0.8; } .thinking-label { color: #9d8264; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.3px; } .thinking-section[open] .thinking-header { border-bottom: 1px solid #3a342e; } .thinking-content { padding: 1rem; background: #1a1614; color: #c9b8a3; font-size: 0.9rem; line-height: 1.6; max-height: 500px; overflow-y: auto; } /* Live thinking indicator (while streaming, before final response) */ .thinking-live { border-left: 3px solid #8b7355; padding-left: 1rem; margin: 0.5rem 0; background: rgba(139, 115, 85, 0.05); border-radius: 4px; } .thinking-live-header { color: #8b7355; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; letter-spacing: 0.5px; opacity: 0.9; }
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
strong, b, [style*="font-weight: 700"], [style*="font-weight: bold"] {
color: #e8d4c0 !important;
font-weight: 600;
}
body {
font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
-webkit-font-smoothing: auto;
-moz-osx-font-smoothing: auto;
background: #1a1614;
color: #d4c5b9;
overflow: hidden;
height: 100vh;
}
@keyframes flicker {
0% { opacity: 0.98; }
50% { opacity: 1; }
100% { opacity: 0.98; }
}
#root {
height: 100vh;
overflow: hidden;
}
.app {
display: flex;
flex-direction: column;
height: 100vh;
background: #1a1614;
position: relative;
overflow: hidden;
}
/* Remove CRT effects */
.app::before,
.app::after {
display: none;
}
@keyframes scanline {
0% {
transform: translateY(0);
}
100% {
transform: translateY(10px);
}
}
@keyframes flicker {
0%, 100% {
opacity: 0.8;
}
50% {
opacity: 1;
}
}
@keyframes dot-bounce {
0%, 100% {
transform: translateY(0);
opacity: 0.5;
}
50% {
transform: translateY(-4px);
opacity: 1;
}
}
@keyframes progress {
0% {
width: 0%;
opacity: 0.6;
}
50% {
width: 50%;
opacity: 1;
}
100% {
width: 100%;
opacity: 0.6;
}
}
.header {
background: #211d1a;
padding: 1rem 1.5rem;
border-bottom: 1px solid #3a342e;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}