/* Web Assist - 3-Column Layout */ :root { --bg-dark: #0d1117; --bg-card: #161b22; --bg-panel: #1c2128; --border: #30363d; --text-primary: #e6edf3; --text-secondary: #8b949e; --accent: #58a6ff; --accent-hover: #79b8ff; --success: #3fb950; --danger: #f85149; --radius: 6px; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg-dark); color: var(--text-primary); height: 100vh; overflow: hidden; } .container { display: flex; flex-direction: column; height: 100vh; } /* Header */ .header { display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; background: var(--bg-card); border-bottom: 1px solid var(--border); flex-shrink: 0; } .logo { display: flex; align-items: center; gap: 8px; } .logo-icon { font-size: 20px; } .logo-text { font-size: 15px; font-weight: 600; } .status-bar { display: flex; gap: 10px; } .status-item { font-size: 11px; color: var(--text-secondary); padding: 3px 8px; background: var(--bg-panel); border-radius: 4px; } /* Main 3-Column Layout */ .main { display: flex; flex: 1; overflow: hidden; } /* Panels */ .panel { background: var(--bg-card); border-right: 1px solid var(--border); display: flex; flex-direction: column; } .panel-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--border); flex-shrink: 0; } .panel-header h2 { font-size: 12px; font-weight: 600; } /* File Panel - Left */ .file-panel { width: 220px; min-width: 160px; } .file-tree { flex: 1; overflow-y: auto; padding: 4px; } .file-item { display: flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 4px; cursor: pointer; font-size: 12px; color: var(--text-secondary); transition: all 0.1s; } .file-item:hover { background: var(--bg-panel); color: var(--text-primary); } .file-item.active { background: var(--accent); color: #000; } .file-item.folder { font-weight: 500; } .file-item .indent { width: 12px; display: inline-block; } /* Editor Panel - Center */ .editor-panel { flex: 1; min-width: 300px; } .editor-path { font-size: 10px; color: var(--text-secondary); margin-left: 8px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .editor-content { flex: 1; overflow: auto; padding: 12px; background: var(--bg-dark); font-family: 'Fira Code', 'Monaco', monospace; font-size: 12px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; } .editor-content code { color: var(--text-primary); } /* Actions Panel - Right */ .actions-panel { width: 260px; min-width: 200px; border-right: none; } .actions-list { flex: 1; overflow-y: auto; padding: 8px; } .action-card { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; margin-bottom: 8px; } .action-card h3 { font-size: 12px; font-weight: 600; margin-bottom: 8px; } .action-controls { display: flex; gap: 6px; } .action-controls input { flex: 1; padding: 6px 8px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px; color: var(--text-primary); font-size: 11px; } .action-controls input:focus { outline: none; border-color: var(--accent); } /* Buttons */ .btn { padding: 6px 10px; border: none; border-radius: 4px; font-size: 11px; font-weight: 500; cursor: pointer; transition: all 0.1s; background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border); } .btn:hover { background: var(--border); } .btn.primary { background: var(--accent); color: #000; border-color: var(--accent); } .btn.primary:hover { background: var(--accent-hover); } .btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; } .btn.small { padding: 4px 8px; font-size: 10px; } .icon-btn { background: none; border: none; cursor: pointer; font-size: 13px; padding: 3px; border-radius: 4px; } .icon-btn:hover { background: var(--bg-panel); } /* Status Messages */ .status-message { margin-top: 6px; font-size: 10px; min-height: 14px; word-break: break-word; } .status-message.success { color: var(--success); } .status-message.error { color: var(--danger); } .status-message.info { color: var(--accent); } .status-message a { color: inherit; } /* Preview Modal */ .preview-modal { position: fixed; bottom: 20px; right: 20px; width: 500px; height: 400px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); display: flex; flex-direction: column; z-index: 1000; } .preview-modal.hidden { display: none; } .preview-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 600; } .preview-modal-header>div { display: flex; gap: 6px; } #preview-frame { flex: 1; width: 100%; border: none; background: #fff; border-radius: 0 0 var(--radius) var(--radius); } /* Loading */ .loading { text-align: center; padding: 20px; color: var(--text-secondary); font-size: 11px; } /* Utility */ .hidden { display: none !important; }