/* Claude Code IDE Styles */ :root { --bg-primary: #0d1117; --bg-secondary: #161b22; --bg-tertiary: #21262d; --border: #30363d; --text-primary: #c9d1d9; --text-secondary: #8b949e; --accent: #58a6ff; --accent-hover: #1f6feb; --success: #3fb950; --danger: #f85149; --warning: #d29922; } body { background: var(--bg-primary); } /* Navigation */ .navbar { display: flex; align-items: center; justify-content: space-between; padding: 1rem 2rem; background: var(--bg-secondary); border-bottom: 1px solid var(--border); } .nav-brand h1 { font-size: 1.25rem; color: var(--text-primary); margin: 0; } .nav-menu { display: flex; gap: 0.5rem; } .nav-item { padding: 0.5rem 1rem; background: transparent; border: none; color: var(--text-secondary); cursor: pointer; border-radius: 6px; font-size: 0.9rem; transition: all 0.2s; } .nav-item:hover { background: var(--bg-tertiary); color: var(--text-primary); } .nav-item.active { background: var(--accent); color: white; } /* Views */ .view { display: none; height: calc(100vh - 65px); overflow-y: auto; } .view.active { display: block; } /* Dashboard */ .dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; padding: 2rem; } .stat-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; } .stat-card h3 { font-size: 0.9rem; color: var(--text-secondary); margin: 0 0 1rem 0; text-transform: uppercase; letter-spacing: 0.05em; } .stat-value { font-size: 2.5rem; font-weight: bold; color: var(--accent); } .stat-actions { display: flex; flex-direction: column; gap: 0.5rem; } .stat-actions button { width: 100%; } .panel { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; } .panel-header { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; } .panel-header h2 { font-size: 1.1rem; margin: 0; } .panel-content { padding: 1.5rem; min-height: 200px; } /* Session List */ .session-item { padding: 1rem; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 0.75rem; cursor: pointer; transition: all 0.2s; } .session-item:hover { border-color: var(--accent); background: var(--bg-tertiary); } .session-item.active { border-color: var(--accent); background: var(--bg-tertiary); } .session-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; } .session-id { font-family: monospace; font-size: 0.85rem; color: var(--text-secondary); } .session-status { padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.75rem; font-weight: 500; } .session-status.running { background: var(--success); color: white; } .session-status.terminated { background: var(--text-secondary); color: var(--bg-primary); } .session-meta { font-size: 0.85rem; color: var(--text-secondary); display: flex; align-items: center; gap: 0.75rem; } .session-preview { font-size: 0.875rem; color: var(--text-secondary); margin: 0.5rem 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; min-height: 2.8em; } .session-badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.25rem 0.5rem; background: var(--bg-tertiary); border-radius: 4px; font-size: 0.8rem; font-weight: 500; } /* Sessions Layout */ .sessions-layout { display: flex; height: 100%; } .sessions-sidebar { width: 350px; border-right: 1px solid var(--border); display: flex; flex-direction: column; } .sidebar-header { padding: 1.5rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; } .sidebar-header h2 { font-size: 1.1rem; margin: 0; } .sessions-list { flex: 1; overflow-y: auto; padding: 1rem; } .sessions-main { flex: 1; overflow-y: auto; } .session-detail { padding: 2rem; } /* Session Output */ .session-output { background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: 6px; padding: 1rem; font-family: 'Monaco', 'Menlo', monospace; font-size: 0.9rem; max-height: 500px; overflow-y: auto; white-space: pre-wrap; word-wrap: break-word; } .output-line { margin-bottom: 0.5rem; } .output-line.stdout { color: var(--text-primary); } .output-line.stderr { color: var(--danger); } /* Command Input */ .command-input-container { display: flex; gap: 1rem; margin-top: 1rem; } .command-input { flex: 1; padding: 0.75rem; background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: 6px; color: var(--text-primary); font-family: 'Monaco', 'Menlo', monospace; font-size: 0.9rem; } .command-input:focus { outline: none; border-color: var(--accent); } /* Projects Grid */ .projects-header { padding: 2rem; display: flex; justify-content: space-between; align-items: center; } .projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; padding: 0 2rem 2rem 2rem; } .project-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; cursor: pointer; transition: all 0.2s; } .project-card:hover { border-color: var(--accent); transform: translateY(-2px); } .project-card h3 { font-size: 1.1rem; margin: 0 0 0.5rem 0; } .project-meta { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1rem; } .project-description { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; } /* Files Layout */ .files-layout { display: flex; height: 100%; } .files-sidebar { width: 300px; border-right: 1px solid var(--border); display: flex; flex-direction: column; } .search-box { padding: 1rem; border-bottom: 1px solid var(--border); } .search-box input { width: 100%; padding: 0.5rem; background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: 4px; color: var(--text-primary); } .file-tree { flex: 1; overflow-y: auto; padding: 1rem; } .files-main { flex: 1; overflow-y: auto; } .file-editor { padding: 2rem; } .file-content { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; } /* Context Visualization */ .context-bar { height: 8px; background: var(--bg-tertiary); border-radius: 4px; overflow: hidden; margin: 1rem 0; } .context-fill { height: 100%; background: var(--accent); transition: width 0.3s; } .context-stats { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-secondary); } /* Modals */ .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.7); display: flex; align-items: center; justify-content: center; z-index: 1000; } .modal-overlay.hidden { display: none; } .modal { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; width: 100%; max-width: 500px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); } .modal.hidden { display: none; } .modal-header { padding: 1.5rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; } .modal-header h2 { margin: 0; } .modal-close { background: none; border: none; color: var(--text-secondary); font-size: 1.5rem; cursor: pointer; } .modal-close:hover { color: var(--text-primary); } .modal-body { padding: 1.5rem; } .modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 0.5rem; } .form-group { margin-bottom: 1rem; } .form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--text-secondary); } .form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.6rem; background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: 4px; color: var(--text-primary); font-size: 0.9rem; } .form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent); } /* Buttons */ .btn-primary, .btn-secondary { padding: 0.6rem 1.2rem; border: none; border-radius: 6px; font-size: 0.9rem; cursor: pointer; transition: all 0.2s; } .btn-primary { background: var(--accent); color: white; } .btn-primary:hover { background: var(--accent-hover); } .btn-secondary { background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border); } .btn-secondary:hover { background: var(--border); } .btn-sm { padding: 0.4rem 0.8rem; font-size: 0.85rem; } /* Loading */ .loading { text-align: center; padding: 2rem; color: var(--text-secondary); } /* Placeholder */ .placeholder { text-align: center; padding: 4rem 2rem; color: var(--text-secondary); } .placeholder h2 { margin-bottom: 0.5rem; color: var(--text-primary); } /* ============================================ Chat Interface Styles ============================================ */ /* Chat Layout */ .chat-layout { display: flex; height: 100%; } .chat-sidebar { width: 300px; border-right: 1px solid var(--border); display: flex; flex-direction: column; } .chat-sessions-list, .chat-history-list { flex: 1; overflow-y: auto; padding: 1rem; min-height: 0; } /* Custom scrollbar for chat history list */ .chat-history-list::-webkit-scrollbar { width: 8px; } .chat-history-list::-webkit-scrollbar-track { background: var(--bg-secondary); } .chat-history-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; } .chat-history-list::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); } .chat-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; } /* Chat Header */ .chat-header { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; } .chat-session-info h2 { margin: 0; font-size: 1.1rem; } .chat-session-id { font-size: 0.8rem; color: var(--text-secondary); font-family: monospace; } .chat-actions { display: flex; gap: 0.5rem; } /* Chat Messages */ .chat-messages { flex: 1; overflow-y: auto; padding: 2rem; } .chat-welcome { max-width: 600px; margin: 0 auto; } .chat-welcome h2 { font-size: 1.5rem; margin-bottom: 1rem; } .chat-welcome p { color: var(--text-secondary); margin-bottom: 2rem; } .chat-tips, .chat-connection-info { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; margin-bottom: 1.5rem; } .chat-tips h3, .chat-connection-info h3 { font-size: 1rem; margin-bottom: 1rem; } .chat-tips ul, .chat-connection-info ol { margin: 0; padding-left: 1.5rem; } .chat-tips li, .chat-connection-info li { margin-bottom: 0.5rem; color: var(--text-secondary); } .chat-tips code, .chat-connection-info code { background: var(--bg-tertiary); padding: 0.2rem 0.4rem; border-radius: 4px; font-size: 0.85rem; } /* Message Bubbles */ .chat-message { margin-bottom: 1.5rem; display: flex; gap: 1rem; } .chat-message.user { flex-direction: row-reverse; } .chat-message-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; } .chat-message.user .chat-message-avatar { background: var(--accent); } .chat-message.assistant .chat-message-avatar { background: var(--success); } .chat-message-content { flex: 1; max-width: 80%; } .chat-message-bubble { padding: 1rem; border-radius: 12px; line-height: 1.5; } .chat-message.user .chat-message-bubble { background: var(--accent); color: white; border-bottom-right-radius: 2px; } .chat-message.assistant .chat-message-bubble { background: var(--bg-secondary); border: 1px solid var(--border); border-bottom-left-radius: 2px; } .chat-message-timestamp { font-size: 0.75rem; color: var(--text-secondary); margin-top: 0.5rem; } .chat-message.user .chat-message-timestamp { text-align: right; } /* Chat Input */ .chat-input-container { border-top: 1px solid var(--border); padding: 1rem 1.5rem; } .chat-input-wrapper { display: flex; gap: 0.75rem; align-items: flex-end; } .chat-input { flex: 1; padding: 0.75rem; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; color: var(--text-primary); font-size: 0.95rem; font-family: inherit; resize: none; max-height: 150px; } .chat-input:focus { outline: none; border-color: var(--accent); } .chat-input-actions { display: flex; gap: 0.5rem; align-items: center; } .btn-icon { width: 40px; height: 40px; border: none; background: var(--bg-tertiary); border-radius: 8px; color: var(--text-primary); cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; transition: all 0.2s; } .btn-icon:hover { background: var(--border); } .btn-send { padding: 0.75rem 1.5rem; } .chat-input-info { display: flex; justify-content: space-between; margin-top: 0.5rem; font-size: 0.8rem; color: var(--text-secondary); } /* Streaming Indicator */ .streaming-indicator { display: flex; gap: 4px; padding: 0.5rem; } .streaming-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: pulse 1.5s infinite; } .streaming-dot:nth-child(2) { animation-delay: 0.2s; } .streaming-dot:nth-child(3) { animation-delay: 0.4s; } @keyframes pulse { 0%, 100% { opacity: 0.3; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1); } } /* Code Blocks in Chat */ .chat-message-bubble pre { background: var(--bg-primary); padding: 1rem; border-radius: 6px; overflow-x: auto; margin: 0.5rem 0; } .chat-message-bubble code { background: var(--bg-primary); padding: 0.2rem 0.4rem; border-radius: 4px; font-family: 'Monaco', 'Menlo', monospace; font-size: 0.9em; } /* File Attachments in Chat */ .chat-attachment { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--bg-tertiary); padding: 0.5rem 1rem; border-radius: 6px; margin: 0.5rem 0; font-size: 0.9rem; } .chat-attachment-icon { font-size: 1rem; } /* Typing Indicator */ .typing-indicator { display: inline-flex; gap: 4px; padding: 0.5rem 1rem; background: var(--bg-secondary); border-radius: 12px; font-size: 0.85rem; color: var(--text-secondary); } /* Chat Session Item in Sidebar */ .chat-session-item { padding: 1rem; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 0.75rem; cursor: pointer; transition: all 0.2s; } .chat-session-item:hover { border-color: var(--accent); background: var(--bg-tertiary); } .chat-session-item.active { border-color: var(--accent); background: var(--bg-tertiary); } .chat-session-title { font-weight: 500; margin-bottom: 0.25rem; } .chat-session-preview { font-size: 0.85rem; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .chat-session-meta { font-size: 0.75rem; color: var(--text-secondary); margin-top: 0.5rem; } /* Modal Info Text */ .modal-info { background: var(--bg-tertiary); padding: 1rem; border-radius: 6px; margin-bottom: 1rem; font-size: 0.9rem; color: var(--text-secondary); } /* Responsive Chat */ @media (max-width: 768px) { .chat-sidebar { display: none; } .chat-message-content { max-width: 90%; } } /* === HTML File Preview === */ .view-toggle { display: flex; gap: 4px; padding: 8px; background: #1a1a1a; border-bottom: 1px solid #333; } .toggle-btn { padding: 8px 16px; background: #2a2a2a; border: 1px solid #444; border-radius: 6px; color: #888; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; } .toggle-btn:hover { background: #3a3a3a; color: #e0e0e0; } .toggle-btn.active { background: #4a9eff; border-color: #4a9eff; color: white; } .code-view { padding: 16px; overflow-x: auto; } .code-view pre { margin: 0; background: #0d0d0d; border-radius: 8px; padding: 16px; overflow-x: auto; } .code-view code { font-family: 'Monaco', 'Menlo', 'Courier New', monospace; font-size: 13px; line-height: 1.6; } .preview-view { width: 100%; height: calc(100vh - 200px); min-height: 400px; } .preview-view iframe { width: 100%; height: 100%; border: none; background: white; border-radius: 0 0 8px 8px; } /* File actions styling */ .file-actions { display: flex; gap: 8px; } .file-actions .btn-primary.btn-sm { background: linear-gradient(135deg, #4a9eff 0%, #a78bfa 100%); border: none; color: white; } .file-actions .btn-primary.btn-sm:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(74, 158, 255, 0.4); } /* === Toast Notifications === */ .toast-notification { position: fixed; bottom: 20px; right: 20px; min-width: 300px; max-width: 400px; padding: 16px 20px; background: #2a2a2a; border: 1px solid #444; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); display: flex; align-items: center; gap: 12px; z-index: 10000; opacity: 0; transform: translateY(20px); transition: all 0.3s ease; } .toast-notification.visible { opacity: 1; transform: translateY(0); } .toast-icon { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; font-size: 14px; font-weight: bold; flex-shrink: 0; } .toast-success .toast-icon { background: rgba(81, 207, 102, 0.2); color: #51cf66; } .toast-error .toast-icon { background: rgba(255, 107, 107, 0.2); color: #ff6b6b; } .toast-info .toast-icon { background: rgba(74, 158, 255, 0.2); color: #4a9eff; } .toast-warning .toast-icon { background: rgba(255, 193, 7, 0.2); color: #ffc107; } .toast-message { flex: 1; color: #e0e0e0; font-size: 14px; line-height: 1.4; } /* ============================================ SESSIONS VIEW - History Browser Styles ============================================ */ /* Sessions List Container */ .sessions-list { overflow-y: auto; max-height: calc(100vh - 200px); padding: 12px; } /* Session List Items */ .session-item { background: #1a1a1a; border: 1px solid #333; border-radius: 8px; padding: 12px 16px; margin-bottom: 8px; cursor: pointer; transition: all 0.2s ease; } .session-item:hover { background: #252525; border-color: #4a9eff; transform: translateX(4px); } .session-item.historical { border-left: 3px solid #888; } .session-item.historical:hover { border-left-color: #4a9eff; } /* Session Header */ .session-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } .session-info { display: flex; align-items: center; gap: 8px; } .session-id { font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace; font-size: 13px; font-weight: 600; color: #e0e0e0; } /* Session Status Badges */ .session-status { display: inline-block; padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; } .session-status.running { background: rgba(81, 207, 102, 0.2); color: #51cf66; border: 1px solid rgba(81, 207, 102, 0.3); } .session-status.stopped { background: rgba(136, 136, 136, 0.2); color: #888; border: 1px solid rgba(136, 136, 136, 0.3); } .session-time { font-size: 12px; color: #888; } /* Session Meta */ .session-meta { font-size: 12px; color: #aaa; } .session-path { margin-bottom: 4px; word-break: break-all; } .session-stats { display: flex; gap: 12px; font-size: 11px; color: #888; } /* Empty/Error States */ .empty-state, .error-state { text-align: center; padding: 40px 20px; color: #888; } .empty-icon, .error-icon { font-size: 48px; margin-bottom: 16px; } .error-message { font-size: 13px; color: #ff6b6b; margin: 8px 0 16px 0; } /* ============================================ SESSION DETAIL CARD ============================================ */ .session-detail-card { background: #1a1a1a; border-radius: 12px; padding: 24px; max-width: 1200px; margin: 0 auto; } .session-detail-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid #333; } .session-title h2 { margin: 0 0 8px 0; font-size: 24px; color: #e0e0e0; } .session-status-badge { display: inline-block; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; } .session-status-badge.running { background: rgba(81, 207, 102, 0.2); color: #51cf66; } .session-status-badge.stopped { background: rgba(136, 136, 136, 0.2); color: #888; } .session-detail-actions { display: flex; gap: 8px; align-items: center; } .session-detail-actions .btn-primary { background: linear-gradient(135deg, #4a9eff 0%, #a78bfa 100%); border: none; padding: 10px 20px; font-weight: 600; } .session-detail-actions .btn-secondary { background: #2a2a2a; border: 1px solid #444; padding: 10px 16px; } .session-detail-actions .btn-danger { background: rgba(255, 107, 107, 0.2); border: 1px solid rgba(255, 107, 107, 0.3); color: #ff6b6b; padding: 10px 16px; } .session-detail-actions .btn-danger:hover { background: rgba(255, 107, 107, 0.3); } .session-detail-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; padding: 16px; background: #0d0d0d; border-radius: 8px; } .meta-row { display: flex; gap: 8px; font-size: 13px; } .meta-label { color: #888; font-weight: 600; min-width: 120px; } .meta-value { color: #e0e0e0; word-break: break-all; } .session-context { margin-bottom: 24px; padding: 16px; background: #0d0d0d; border-radius: 8px; } .session-context h3 { margin: 0 0 12px 0; font-size: 14px; color: #e0e0e0; } .context-bar { width: 100%; height: 8px; background: #333; border-radius: 4px; overflow: hidden; margin-bottom: 8px; } .context-fill { height: 100%; background: linear-gradient(90deg, #4a9eff 0%, #a78bfa 100%); transition: width 0.3s ease; } .context-stats { display: flex; justify-content: space-between; font-size: 12px; color: #888; } .session-output-preview h3 { margin: 0 0 16px 0; font-size: 16px; color: #e0e0e0; } .output-scroll-area { max-height: 400px; overflow-y: auto; background: #0d0d0d; border: 1px solid #333; border-radius: 8px; padding: 12px; } .output-entry { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #252525; } .output-entry:last-child { border-bottom: none; } .output-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; } .output-type { display: inline-block; padding: 2px 8px; background: #252525; color: #888; font-size: 10px; font-weight: 600; text-transform: uppercase; border-radius: 3px; } .output-time { font-size: 11px; color: #666; } .output-content { font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace; font-size: 12px; color: #aaa; white-space: pre-wrap; word-break: break-all; line-height: 1.5; } .no-output { text-align: center; padding: 40px; color: #666; font-style: italic; } .output-truncated { text-align: center; padding: 12px; color: #4a9eff; font-size: 13px; } /* Responsive */ @media (max-width: 768px) { .session-detail-header { flex-direction: column; gap: 16px; } .session-detail-actions { width: 100%; flex-direction: column; } .session-detail-actions button { width: 100%; } .session-detail-meta { grid-template-columns: 1fr; } } /* ============================================ Mobile Responsive Design (chat.z.ai style) ============================================ */ /* Navigation Mobile */ @media (max-width: 768px) { .navbar { padding: 0.75rem 1rem; flex-wrap: wrap; } .nav-brand h1 { font-size: 1rem; } .nav-menu { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg-secondary); border-bottom: 1px solid var(--border); flex-direction: column; padding: 1rem; gap: 0.25rem; z-index: 100; } .nav-menu.active { display: flex; } .nav-item { width: 100%; text-align: left; padding: 0.75rem 1rem; } .nav-user { display: none; } /* Mobile Menu Toggle */ .mobile-menu-toggle { display: block; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; padding: 0.5rem; } } @media (min-width: 769px) { .mobile-menu-toggle { display: none; } } /* Chat Mobile - Similar to chat.z.ai */ @media (max-width: 768px) { /* Chat Layout */ .chat-layout { position: relative; } .chat-sidebar { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-secondary); z-index: 1000; transform: translateX(-100%); transition: transform 0.3s ease; } .chat-sidebar.active { transform: translateX(0); } .chat-sidebar-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 999; } .chat-sidebar-overlay.active { display: block; } /* Chat Header - Add menu toggle */ .chat-header { padding: 0.75rem 1rem; flex-wrap: wrap; gap: 0.5rem; } .chat-sidebar-toggle { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: 6px; color: var(--text-primary); cursor: pointer; font-size: 1.2rem; } .chat-session-info h2 { font-size: 1rem; } .chat-actions { flex-wrap: wrap; } .chat-actions .btn-sm { padding: 0.5rem 0.75rem; font-size: 0.8rem; } /* Chat Messages */ .chat-messages { padding: 1rem; } .chat-message { margin-bottom: 1rem; gap: 0.75rem; } .chat-message-avatar { width: 32px; height: 32px; font-size: 1rem; } .chat-message-content { max-width: 85%; } .chat-message-bubble { padding: 0.75rem; font-size: 0.9rem; } /* Chat Input */ .chat-input-container { padding: 0.75rem 1rem; } .chat-input-wrapper { gap: 0.5rem; } .chat-input { padding: 0.6rem; font-size: 0.9rem; max-height: 120px; } .btn-icon { width: 36px; height: 36px; font-size: 1rem; } .chat-input-info { font-size: 0.75rem; } /* Welcome Section */ .chat-welcome { padding: 1rem; } .chat-welcome h2 { font-size: 1.25rem; } .chat-welcome p { font-size: 0.9rem; } .chat-tips, .chat-connection-info { padding: 1rem; font-size: 0.85rem; } .chat-tips code, .chat-connection-info code { font-size: 0.8rem; } /* Quick Actions */ .quick-actions { padding: 1rem; margin: 1rem 0; } .quick-actions-grid { grid-template-columns: 1fr; gap: 0.5rem; } .quick-action-btn { padding: 0.75rem 1rem; font-size: 0.9rem; } .action-icon { font-size: 1.25rem; } /* Code blocks in messages */ .chat-message-bubble pre { padding: 0.75rem; font-size: 0.85rem; overflow-x: auto; } .chat-message-bubble code { font-size: 0.85rem; } } /* Extra small devices */ @media (max-width: 480px) { .navbar { padding: 0.5rem 0.75rem; } .nav-brand h1 { font-size: 0.9rem; } .chat-header { padding: 0.5rem 0.75rem; } .chat-session-info h2 { font-size: 0.9rem; } .chat-messages { padding: 0.75rem; } .chat-message-avatar { width: 28px; height: 28px; font-size: 0.9rem; } .chat-message-content { max-width: 80%; } .chat-message-bubble { padding: 0.6rem; font-size: 0.85rem; } .chat-input-container { padding: 0.5rem 0.75rem; } .chat-input { padding: 0.5rem; font-size: 0.85rem; } .btn-icon { width: 32px; height: 32px; font-size: 0.9rem; } .sidebar-header { padding: 1rem; } .sidebar-header h2 { font-size: 1rem; } } /* Touch-friendly targets for mobile */ @media (hover: none) and (pointer: coarse) { .nav-item, .btn-primary, .btn-secondary, .btn-icon, .chat-sidebar-toggle, .chat-session-item, .quick-action-btn { min-height: 44px; min-width: 44px; } .chat-input { min-height: 44px; } } /* Hide scrollbar but keep functionality */ @media (max-width: 768px) { /* Hide scrollbars on mobile for cleaner UI */ .chat-messages::-webkit-scrollbar, .chat-history-list::-webkit-scrollbar, .sessions-list::-webkit-scrollbar { width: 0px; background: transparent; } } /* ============================================ Sessions View Mobile Responsive ============================================ */ @media (max-width: 768px) { .sessions-layout { flex-direction: column; } .sessions-sidebar { width: 100%; max-height: 40vh; border-right: none; border-bottom: 1px solid var(--border); } .sidebar-header { padding: 1rem; } .sidebar-header h2 { font-size: 1rem; } .sessions-list { padding: 0.75rem; } .session-item { padding: 0.75rem; margin-bottom: 0.5rem; } .session-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; } .session-info { width: 100%; } .session-time { font-size: 0.75rem; } .session-meta { font-size: 0.75rem; gap: 0.5rem; } .session-path { word-break: break-all; } .sessions-main { flex: 1; } .session-detail { padding: 1rem; } .session-detail-card { border-radius: 8px; } .session-detail-header { flex-direction: column; gap: 1rem; } .session-title { width: 100%; } .session-title h2 { font-size: 1rem; } .session-detail-actions { width: 100%; flex-direction: column; } .session-detail-actions button { width: 100%; margin-bottom: 0.5rem; } .session-detail-meta { grid-template-columns: 1fr; gap: 0.5rem; } .meta-row { font-size: 0.85rem; } .output-scroll-area { max-height: 200px; } .output-entry { padding: 0.5rem; } .output-header { flex-wrap: wrap; gap: 0.25rem; } } /* ============================================ Projects View Mobile Responsive ============================================ */ @media (max-width: 768px) { .projects-header { padding: 1rem; flex-wrap: wrap; gap: 0.5rem; } .projects-header h2 { font-size: 1.1rem; } .projects-grid { grid-template-columns: 1fr; padding: 0 1rem 1rem 1rem; gap: 1rem; } .project-card { padding: 1rem; } .project-card h3 { font-size: 1rem; } .project-meta { font-size: 0.8rem; } .project-description { font-size: 0.85rem; } } /* ============================================ Dashboard View Mobile Responsive ============================================ */ @media (max-width: 768px) { .dashboard-grid { grid-template-columns: 1fr; padding: 1rem; gap: 1rem; } .stat-card { padding: 1rem; } .stat-card h3 { font-size: 0.85rem; } .stat-value { font-size: 2rem; } .panel-header { padding: 0.75rem 1rem; flex-wrap: wrap; gap: 0.5rem; } .panel-header h2 { font-size: 1rem; } .panel-content { padding: 1rem; } } /* ============================================ Files View Mobile Responsive ============================================ */ @media (max-width: 768px) { .files-layout { flex-direction: column; } .files-sidebar { width: 100%; max-height: 40vh; border-right: none; border-bottom: 1px solid var(--border); } .search-box { padding: 0.75rem; } .file-tree { padding: 0.75rem; } .tree-item { padding: 0.5rem 0.75rem; font-size: 0.9rem; } .file-editor { padding: 1rem; } .file-header { flex-wrap: wrap; gap: 0.5rem; } .file-header h2 { font-size: 1rem; } .file-actions .btn-sm { padding: 0.5rem 0.75rem; font-size: 0.8rem; } .code-view { padding: 0.75rem; } .code-view pre { padding: 0.75rem; font-size: 0.8rem; } .view-toggle { padding: 0.5rem; gap: 0.25rem; } .toggle-btn { padding: 0.5rem 0.75rem; font-size: 0.8rem; } } /* ============================================ Terminal View Mobile Responsive ============================================ */ @media (max-width: 768px) { .terminal-container { padding: 1rem; } .terminal-header { padding: 0.75rem; flex-wrap: wrap; gap: 0.5rem; } .terminal-header h2 { font-size: 1rem; } .terminal-tabs { flex-wrap: wrap; gap: 0.25rem; } .terminal-tab { padding: 0.5rem 0.75rem; font-size: 0.8rem; } .terminal-wrapper { height: 400px; } }