:root { --bg-dark: #0a0a0a; --bg-panel: rgba(255, 115, 0, 0.1); --accent: #ff6600; --accent-glow: 0 0 12px #ff6600cc; --text-main: #e6e6e6; --text-fade: #999; --font-console: "IBM Plex Mono", monospace; } /* Light mode variables */ body { --bg-dark: #f5f5f5; --bg-panel: rgba(255, 115, 0, 0.05); --accent: #ff6600; --accent-glow: 0 0 12px #ff6600cc; --text-main: #1a1a1a; --text-fade: #666; } /* Dark mode variables */ body.dark { --bg-dark: #0a0a0a; --bg-panel: rgba(255, 115, 0, 0.1); --accent: #ff6600; --accent-glow: 0 0 12px #ff6600cc; --text-main: #e6e6e6; --text-fade: #999; } body { margin: 0; background: var(--bg-dark); color: var(--text-main); font-family: var(--font-console); height: 100vh; display: flex; justify-content: center; align-items: center; } #chat { width: 95%; max-width: 900px; height: 95vh; display: flex; flex-direction: column; border: 1px solid var(--accent); border-radius: 10px; box-shadow: var(--accent-glow); background: var(--bg-dark); overflow: hidden; } /* Header sections */ #model-select, #session-select, #status { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--accent); background-color: rgba(255, 102, 0, 0.05); } #status { justify-content: flex-start; border-top: 1px solid var(--accent); } label, select, button { font-family: var(--font-console); font-size: 0.9rem; color: var(--text-main); background: transparent; border: 1px solid var(--accent); border-radius: 4px; padding: 4px 8px; } button:hover, select:hover { box-shadow: 0 0 8px var(--accent); cursor: pointer; } #thinkingStreamBtn { background: rgba(138, 43, 226, 0.2); border-color: #8a2be2; } #thinkingStreamBtn:hover { box-shadow: 0 0 8px #8a2be2; background: rgba(138, 43, 226, 0.3); } /* Chat area */ #messages { flex: 1; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; } /* Messages */ .msg { max-width: 80%; padding: 10px 14px; border-radius: 8px; line-height: 1.4; word-wrap: break-word; box-shadow: 0 0 8px rgba(255,102,0,0.2); } .msg.user { align-self: flex-end; background: rgba(255,102,0,0.15); border: 1px solid var(--accent); } .msg.assistant { align-self: flex-start; background: rgba(255,102,0,0.08); border: 1px solid rgba(255,102,0,0.5); } .msg.system { align-self: center; font-size: 0.8rem; color: var(--text-fade); } /* Input bar */ #input { display: flex; border-top: 1px solid var(--accent); background: rgba(255, 102, 0, 0.05); padding: 10px; } #userInput { flex: 1; background: transparent; color: var(--text-main); border: 1px solid var(--accent); border-radius: 4px; padding: 8px; } #sendBtn { margin-left: 8px; } /* Relay status dot */ #status { display: flex; align-items: center; margin: 10px 0; gap: 8px; font-family: monospace; color: #f5f5f5; } #status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; } @keyframes pulseGreen { 0% { box-shadow: 0 0 5px #00ff66; opacity: 0.9; } 50% { box-shadow: 0 0 20px #00ff99; opacity: 1; } 100% { box-shadow: 0 0 5px #00ff66; opacity: 0.9; } } .dot.ok { background: #00ff66; animation: pulseGreen 2s infinite ease-in-out; } /* Offline state stays solid red */ .dot.fail { background: #ff3333; box-shadow: 0 0 10px #ff3333; } /* Dropdown (session selector) styling */ select { background-color: var(--bg-dark); color: var(--text-main); border: 1px solid #b84a12; border-radius: 6px; padding: 4px 6px; font-size: 14px; } select option { background-color: var(--bg-dark); color: var(--text-main); } /* Hover/focus for better visibility */ select:focus, select:hover { outline: none; border-color: #ff7a33; background-color: var(--bg-panel); } /* Settings Modal */ .modal { display: none !important; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1000; } .modal.show { display: block !important; } .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(4px); z-index: 999; } .modal-content { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: linear-gradient(180deg, rgba(255,102,0,0.1) 0%, rgba(10,10,10,0.95) 100%); border: 2px solid var(--accent); border-radius: 12px; box-shadow: var(--accent-glow), 0 0 40px rgba(255,102,0,0.3); min-width: 400px; max-width: 600px; max-height: 80vh; overflow-y: auto; z-index: 1001; } .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--accent); background: rgba(255,102,0,0.1); } .modal-header h3 { margin: 0; font-size: 1.2rem; color: var(--accent); } .close-btn { background: transparent; border: none; color: var(--accent); font-size: 1.5rem; cursor: pointer; padding: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 4px; } .close-btn:hover { background: rgba(255,102,0,0.2); box-shadow: 0 0 8px var(--accent); } .modal-body { padding: 20px; } .settings-section h4 { margin: 0 0 8px 0; color: var(--accent); font-size: 1rem; } .settings-desc { margin: 0 0 16px 0; color: var(--text-fade); font-size: 0.85rem; } .radio-group { display: flex; flex-direction: column; gap: 12px; } .radio-label { display: flex; flex-direction: column; padding: 12px; border: 1px solid rgba(255,102,0,0.3); border-radius: 6px; background: rgba(255,102,0,0.05); cursor: pointer; transition: all 0.2s; } .radio-label:hover { border-color: var(--accent); background: rgba(255,102,0,0.1); box-shadow: 0 0 8px rgba(255,102,0,0.3); } .radio-label input[type="radio"] { margin-right: 8px; accent-color: var(--accent); } .radio-label span { font-weight: 500; margin-bottom: 4px; } .radio-label small { color: var(--text-fade); font-size: 0.8rem; margin-left: 24px; } .radio-label input[type="text"] { margin-top: 8px; margin-left: 24px; padding: 6px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,102,0,0.5); border-radius: 4px; color: var(--text-main); font-family: var(--font-console); } .radio-label input[type="text"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 8px rgba(255,102,0,0.3); } .modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--accent); background: rgba(255,102,0,0.05); } .primary-btn { background: var(--accent); color: #000; font-weight: bold; } .primary-btn:hover { background: #ff7a33; box-shadow: var(--accent-glow); } /* Session List */ .session-list { display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow-y: auto; } .session-item { display: flex; justify-content: space-between; align-items: center; padding: 12px; border: 1px solid rgba(255,102,0,0.3); border-radius: 6px; background: rgba(255,102,0,0.05); transition: all 0.2s; } .session-item:hover { border-color: var(--accent); background: rgba(255,102,0,0.1); } .session-info { display: flex; flex-direction: column; gap: 4px; flex: 1; } .session-info strong { color: var(--text-main); font-size: 0.95rem; } .session-info small { color: var(--text-fade); font-size: 0.75rem; } .session-delete-btn { background: transparent; border: 1px solid rgba(255,102,0,0.5); color: var(--accent); padding: 6px 10px; border-radius: 4px; cursor: pointer; font-size: 1rem; transition: all 0.2s; } .session-delete-btn:hover { background: rgba(255,0,0,0.2); border-color: #ff3333; color: #ff3333; box-shadow: 0 0 8px rgba(255,0,0,0.3); } /* Thinking Stream Panel */ .thinking-panel { border-top: 1px solid var(--accent); background: rgba(255, 102, 0, 0.02); display: flex; flex-direction: column; transition: max-height 0.3s ease; max-height: 300px; } .thinking-panel.collapsed { max-height: 40px; } .thinking-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: rgba(255, 102, 0, 0.08); cursor: pointer; user-select: none; border-bottom: 1px solid rgba(255, 102, 0, 0.2); font-size: 0.9rem; font-weight: 500; } .thinking-header:hover { background: rgba(255, 102, 0, 0.12); } .thinking-controls { display: flex; align-items: center; gap: 8px; } .thinking-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #666; display: inline-block; } .thinking-status-dot.connected { background: #00ff66; box-shadow: 0 0 8px #00ff66; } .thinking-status-dot.disconnected { background: #ff3333; } .thinking-clear-btn, .thinking-toggle-btn { background: transparent; border: 1px solid rgba(255, 102, 0, 0.5); color: var(--text-main); padding: 4px 8px; border-radius: 4px; cursor: pointer; font-size: 0.85rem; } .thinking-clear-btn:hover, .thinking-toggle-btn:hover { background: rgba(255, 102, 0, 0.2); box-shadow: 0 0 6px rgba(255, 102, 0, 0.3); } .thinking-toggle-btn { transition: transform 0.3s ease; } .thinking-panel.collapsed .thinking-toggle-btn { transform: rotate(-90deg); } .thinking-content { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 0; } .thinking-panel.collapsed .thinking-content { display: none; } .thinking-empty { text-align: center; padding: 40px 20px; color: var(--text-fade); font-size: 0.85rem; } .thinking-empty-icon { font-size: 2rem; margin-bottom: 10px; } .thinking-event { padding: 8px 12px; border-radius: 6px; font-size: 0.85rem; font-family: 'Courier New', monospace; animation: thinkingSlideIn 0.3s ease-out; border-left: 3px solid; word-wrap: break-word; } @keyframes thinkingSlideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } .thinking-event-connected { background: rgba(0, 255, 102, 0.1); border-color: #00ff66; color: #00ff66; } .thinking-event-thinking { background: rgba(138, 43, 226, 0.1); border-color: #8a2be2; color: #c79cff; } .thinking-event-tool_call { background: rgba(255, 165, 0, 0.1); border-color: #ffa500; color: #ffb84d; } .thinking-event-tool_result { background: rgba(0, 191, 255, 0.1); border-color: #00bfff; color: #7dd3fc; } .thinking-event-done { background: rgba(168, 85, 247, 0.1); border-color: #a855f7; color: #e9d5ff; font-weight: bold; } .thinking-event-error { background: rgba(255, 51, 51, 0.1); border-color: #ff3333; color: #fca5a5; } .thinking-event-icon { display: inline-block; margin-right: 8px; } .thinking-event-details { font-size: 0.75rem; color: var(--text-fade); margin-top: 4px; padding-left: 20px; white-space: pre-wrap; max-height: 100px; overflow-y: auto; } /* ========== MOBILE RESPONSIVE STYLES ========== */ /* Hamburger Menu */ .hamburger-menu { display: none; flex-direction: column; gap: 4px; cursor: pointer; padding: 8px; border: 1px solid var(--accent); border-radius: 4px; background: transparent; z-index: 100; } .hamburger-menu span { width: 20px; height: 2px; background: var(--accent); transition: all 0.3s; display: block; } .hamburger-menu.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); } .hamburger-menu.active span:nth-child(2) { opacity: 0; } .hamburger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); } /* Mobile Menu Container */ .mobile-menu { display: none; position: fixed; top: 0; left: -100%; width: 280px; height: 100vh; background: var(--bg-dark); border-right: 2px solid var(--accent); box-shadow: var(--accent-glow); z-index: 999; transition: left 0.3s ease; overflow-y: auto; padding: 20px; flex-direction: column; gap: 16px; } .mobile-menu.open { left: 0; } .mobile-menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 998; } .mobile-menu-overlay.show { display: block; } .mobile-menu-section { display: flex; flex-direction: column; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 102, 0, 0.3); } .mobile-menu-section:last-child { border-bottom: none; } .mobile-menu-section h4 { margin: 0; color: var(--accent); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; } .mobile-menu button, .mobile-menu select { width: 100%; padding: 10px; font-size: 0.95rem; text-align: left; } /* Mobile Breakpoints */ @media screen and (max-width: 768px) { body { padding: 0; } #chat { width: 100%; max-width: 100%; height: 100vh; border-radius: 0; border-left: none; border-right: none; } /* Show hamburger, hide desktop header controls */ .hamburger-menu { display: flex; } #model-select { padding: 12px; justify-content: space-between; } /* Hide all controls except hamburger on mobile */ #model-select > *:not(.hamburger-menu) { display: none; } #session-select { display: none; } /* Show mobile menu */ .mobile-menu { display: flex; } /* Messages - more width on mobile */ .msg { max-width: 90%; font-size: 0.95rem; } /* Status bar */ #status { padding: 10px 12px; font-size: 0.85rem; } /* Input area - bigger touch targets */ #input { padding: 12px; } #userInput { font-size: 16px; /* Prevents zoom on iOS */ padding: 12px; } #sendBtn { padding: 12px 16px; font-size: 1rem; } /* Modal - full width on mobile */ .modal-content { width: 95%; min-width: unset; max-width: unset; max-height: 90vh; top: 50%; left: 50%; transform: translate(-50%, -50%); } .modal-header { padding: 12px 16px; } .modal-body { padding: 16px; } .modal-footer { padding: 12px 16px; flex-wrap: wrap; } .modal-footer button { flex: 1; min-width: 120px; } /* Radio labels - stack better on mobile */ .radio-label { padding: 10px; } .radio-label small { margin-left: 20px; font-size: 0.75rem; } /* Session list */ .session-item { padding: 10px; } .session-info strong { font-size: 0.9rem; } .session-info small { font-size: 0.7rem; } /* Settings button in header */ #settingsBtn { padding: 8px 12px; } /* Thinking panel adjustments for mobile */ .thinking-panel { max-height: 250px; } .thinking-panel.collapsed { max-height: 38px; } .thinking-header { padding: 8px 10px; font-size: 0.85rem; } .thinking-event { font-size: 0.8rem; padding: 6px 10px; } .thinking-event-details { font-size: 0.7rem; max-height: 80px; } } /* Extra small devices (phones in portrait) */ @media screen and (max-width: 480px) { .mobile-menu { width: 240px; } .msg { max-width: 95%; font-size: 0.9rem; padding: 8px 12px; } #userInput { font-size: 16px; padding: 10px; } #sendBtn { padding: 10px 14px; font-size: 0.95rem; } .modal-header h3 { font-size: 1.1rem; } .settings-section h4 { font-size: 0.95rem; } .radio-label span { font-size: 0.9rem; } } /* Tablet landscape and desktop */ @media screen and (min-width: 769px) { /* Ensure mobile menu is hidden on desktop */ .mobile-menu, .mobile-menu-overlay { display: none !important; } .hamburger-menu { display: none !important; } }