/* Side Panel Styles for Qwen CLI Bridge */ * { margin: 0; padding: 0; box-sizing: border-box; } html, body { height: 100%; width: 100%; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; font-size: 14px; line-height: 1.5; color: #333; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); } .container { background: white; min-height: 100%; display: flex; flex-direction: column; } /* Header */ .header { padding: 16px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; } .logo { display: flex; align-items: center; gap: 8px; } .logo .icon { width: 24px; height: 24px; } .logo h1 { font-size: 18px; font-weight: 600; } /* Status Indicator */ .status-indicator { display: flex; align-items: center; gap: 6px; padding: 4px 12px; background: rgba(255, 255, 255, 0.2); border-radius: 12px; font-size: 12px; } .status-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4444; animation: pulse 2s infinite; } .status-indicator.connected .status-dot { background: #44ff44; } .status-indicator.connecting .status-dot { background: #ffaa44; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } /* Sections */ .section { padding: 16px; border-bottom: 1px solid #e5e5e5; } .section:last-of-type { border-bottom: none; } .section h2 { font-size: 14px; font-weight: 600; color: #666; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; } /* Buttons */ .btn { padding: 8px 16px; border: none; border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; } .btn:disabled { opacity: 0.5; cursor: not-allowed; } .btn-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; } .btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4); } .btn-secondary { background: #f5f5f5; color: #333; } .btn-secondary:hover:not(:disabled) { background: #e5e5e5; } .btn-small { padding: 4px 12px; font-size: 12px; } .btn-icon { width: 32px; height: 32px; padding: 4px; border: none; background: transparent; cursor: pointer; border-radius: 4px; transition: background 0.2s; } .btn-icon:hover { background: #f5f5f5; } .btn-icon svg { width: 100%; height: 100%; stroke: #666; } /* Connection Section */ .connection-controls { display: flex; gap: 8px; flex-wrap: wrap; } .error-message { margin-top: 8px; padding: 8px; background: #fee; color: #c00; border-radius: 4px; font-size: 12px; } /* Action Buttons */ .action-buttons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; } .action-btn { padding: 12px; border: 1px solid #e5e5e5; border-radius: 8px; background: white; cursor: pointer; transition: all 0.2s; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: #666; } .action-btn:hover:not(:disabled) { border-color: #667eea; background: #f8f9ff; color: #667eea; } .action-btn:hover:not(:disabled) .action-icon { stroke: #667eea; } .action-btn:disabled { opacity: 0.4; cursor: not-allowed; } .action-icon { width: 24px; height: 24px; stroke: #999; } /* Response Section */ .response-section { flex: 1; display: flex; flex-direction: column; } .response-container { background: #f9f9f9; border-radius: 8px; overflow: hidden; flex: 1; display: flex; flex-direction: column; } .response-header { padding: 8px 12px; background: #f0f0f0; border-bottom: 1px solid #e0e0e0; display: flex; justify-content: space-between; align-items: center; } .response-type { font-size: 12px; font-weight: 600; color: #666; } .response-content { padding: 12px; font-family: 'Consolas', 'Monaco', 'Courier New', monospace; font-size: 12px; color: #333; flex: 1; overflow-y: auto; white-space: pre-wrap; word-break: break-all; max-height: 400px; } /* Settings Section */ .settings-section details { cursor: pointer; } .settings-section summary { font-size: 14px; font-weight: 600; color: #666; text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 0; user-select: none; } .settings-section summary:hover { color: #667eea; } .settings-content { margin-top: 12px; } .setting-item { margin-bottom: 12px; } .setting-item label { display: block; margin-bottom: 4px; font-size: 12px; color: #666; } .setting-item input[type="text"], .setting-item input[type="number"] { width: 100%; padding: 6px 8px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; } .setting-item input[type="checkbox"] { margin-right: 8px; } /* Footer */ .footer { padding: 12px 16px; background: #f9f9f9; border-top: 1px solid #e5e5e5; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: #999; margin-top: auto; } .footer a { color: #667eea; text-decoration: none; } .footer a:hover { text-decoration: underline; } .version { color: #bbb; } /* Scrollbar */ ::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-track { background: #f1f1f1; } ::-webkit-scrollbar-thumb { background: #888; border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: #555; } /* Loading state */ .loading { position: relative; pointer-events: none; } .loading::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, 0.8); display: flex; align-items: center; justify-content: center; } /* Animations */ @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .fade-in { animation: fadeIn 0.3s ease; }