/* Repository Workspace */ .repo-workspace { display: flex; flex-direction: column; height: calc(100vh - 60px); overflow: hidden; } .workspace-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); background: var(--panel); } .workspace-header-left { display: flex; align-items: center; gap: 0.75rem; } .workspace-header-icon { font-size: 1.5rem; } .workspace-header-info { display: flex; flex-direction: column; gap: 0.25rem; } .workspace-header-title { margin: 0; font-size: 1.25rem; font-weight: 600; } .workspace-header-subtitle { color: var(--muted); font-size: 0.875rem; } .workspace-header-actions { display: flex; gap: 0.5rem; } .workspace-header-action-btn { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); color: var(--ink); font-size: 0.875rem; cursor: pointer; transition: all 0.2s; } .workspace-header-action-btn:hover { background: var(--bg); border-color: var(--brand); } .workspace-title { display: flex; align-items: center; gap: 1rem; } .workspace-title h1 { margin: 0; font-size: 1.25rem; } .repo-name { color: var(--muted); font-size: 0.875rem; } .workspace-layout { display: flex; flex: 1; overflow: hidden; } .workspace-sidebar { width: 280px; min-width: 280px; border-right: 1px solid var(--border); background: var(--panel); display: flex; flex-direction: column; overflow: hidden; } @media (max-width: 767px) { .workspace-layout { flex-direction: column; } .workspace-sidebar { width: 100%; min-width: auto; max-height: 40vh; border-right: none; border-bottom: 1px solid var(--border); } .workspace-header { flex-direction: column; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); } .workspace-header-actions { width: 100%; flex-wrap: wrap; } } .sidebar-section { padding: 1rem; border-bottom: 1px solid var(--border); } .sidebar-section label { margin: 0; } .workspace-main { flex: 1; overflow: hidden; padding: 1rem; background: var(--bg); display: flex; flex-direction: column; } /* File Tree */ .file-tree { flex: 1; overflow: auto; padding: 0.5rem; } .tree-entry { display: block; width: 100%; padding: 0.375rem 0.5rem; border: none; background: none; color: var(--ink); text-align: left; cursor: pointer; border-radius: 4px; font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tree-entry:hover { background: var(--bg); } .tree-directory { font-weight: 500; } .tree-up { color: var(--muted); font-style: italic; } /* File Viewer */ .file-viewer { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; } .file-viewer-header { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); background: var(--bg); } .file-breadcrumbs { font-size: 0.875rem; font-family: monospace; } .breadcrumb-sep { color: var(--muted); margin: 0 0.25rem; } .file-content { padding: 1rem; overflow: auto; max-height: calc(100vh - 200px); } .file-content pre { margin: 0; font-family: "IBM Plex Mono", monospace; font-size: 0.875rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; } .file-viewer-empty { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 300px; } /* File Status Indicators */ .file-status-indicator { float: right; font-size: 0.75rem; font-weight: bold; padding: 0 0.375rem; border-radius: 3px; margin-left: 0.5rem; } .file-status-indicator.modified { color: #f59e0b; background: rgba(245, 158, 11, 0.1); } .file-status-indicator.added { color: #10b981; background: rgba(16, 185, 129, 0.1); } .file-status-indicator.deleted { color: #ef4444; background: rgba(239, 68, 68, 0.1); } .file-status-indicator.untracked { color: #6b7280; background: rgba(107, 114, 128, 0.1); } /* Commit Panel */ .commit-panel { padding: 1rem; border-top: 1px solid var(--border); background: var(--panel); } .commit-panel h4 { margin: 0 0 0.5rem 0; font-size: 0.875rem; font-weight: 600; } .file-list { max-height: 150px; overflow: auto; margin-bottom: 0.75rem; } .file-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0; font-size: 0.8125rem; } .file-status { font-weight: bold; font-size: 0.75rem; width: 1rem; text-align: center; } .file-item.modified .file-status { color: #f59e0b; } .file-item.added .file-status { color: #10b981; } .file-item.deleted .file-status { color: #ef4444; } .file-item.untracked .file-status { color: #6b7280; } .commit-form { display: flex; flex-direction: column; gap: 0.5rem; } .commit-message-input { width: 100%; padding: 0.5rem; border: 1px solid var(--border); border-radius: 4px; background: var(--bg); color: var(--ink); font-family: inherit; font-size: 0.875rem; resize: vertical; } .commit-button { padding: 0.5rem 1rem; background: var(--primary); color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 0.875rem; font-weight: 500; } .commit-button:disabled { opacity: 0.5; cursor: not-allowed; } .commit-error { color: #ef4444; font-size: 0.8125rem; } /* Merge Dialog */ .merge-form { display: flex; flex-direction: column; gap: 1rem; } .merge-form .form-field { display: flex; flex-direction: column; gap: 0.375rem; } .merge-form label { font-size: 0.875rem; font-weight: 500; } .merge-form select, .merge-form input, .merge-form textarea { padding: 0.5rem; border: 1px solid var(--border); border-radius: 4px; background: var(--bg); color: var(--ink); font-family: inherit; font-size: 0.875rem; } .merge-form textarea { resize: vertical; } .input-disabled { opacity: 0.6; cursor: not-allowed; } .success-text { color: #10b981; font-size: 0.875rem; padding: 0.5rem; background: rgba(16, 185, 129, 0.1); border-radius: 4px; } /* Git Toolbar - Top Bar Styles */ .git-toolbar { display: flex; align-items: center; gap: 1rem; padding: 0.5rem 1.5rem; background: var(--bg); border-bottom: 1px solid var(--border); min-height: 48px; } .toolbar-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; } .toolbar-group { display: flex; align-items: center; gap: 0.5rem; } .toolbar-button { display: flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.75rem; border: 1px solid var(--border); border-radius: 6px; background: var(--panel); color: var(--ink); font-size: 0.85rem; cursor: pointer; transition: all 0.2s; white-space: nowrap; } .toolbar-button:hover:not(:disabled) { background: var(--brand); color: white; border-color: var(--brand); } .toolbar-button:disabled { opacity: 0.5; cursor: not-allowed; } .toolbar-button.primary { background: var(--brand); color: white; border-color: var(--brand); } .branch-select { padding: 0.4rem 0.75rem; border: 1px solid var(--border); border-radius: 6px; background: var(--panel); color: var(--ink); font-size: 0.85rem; cursor: pointer; min-width: 140px; } .badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px; background: var(--brand); color: white; font-size: 0.7rem; font-weight: 600; border-radius: 999px; } .toolbar-error { color: #ef4444; font-size: 0.85rem; padding: 0.25rem 0.5rem; background: rgba(239, 68, 68, 0.1); border-radius: 4px; } .toolbar-input { padding: 0.4rem 0.75rem; border: 1px solid var(--border); border-radius: 6px; background: var(--panel); color: var(--ink); font-size: 0.85rem; } .new-branch-form { padding: 0.75rem; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; margin-top: 0.5rem; } .status-summary { gap: 0.75rem; } .status-badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.8rem; } .status-badge.modified { background: rgba(245, 158, 11, 0.1); color: #d97706; } .status-badge.added { background: rgba(16, 185, 129, 0.1); color: #059669; } .status-badge.deleted { background: rgba(239, 68, 68, 0.1); color: #dc2626; } .status-badge.untracked { background: rgba(107, 114, 128, 0.1); color: #4b5563; } /* File Editor */ .file-editor { display: flex; flex-direction: column; height: 100%; overflow: hidden; } .file-editor-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; background: var(--panel); border-bottom: 1px solid var(--border); } .file-actions { display: flex; gap: 0.5rem; } .file-editor-content { flex: 1; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; } /* Git Mount Editor Styles */ .git-mount-editor { margin-top: 1rem; } .git-mount-editor .section-subtitle { margin: 0 0 0.75rem 0; font-size: 1rem; font-weight: 600; } .git-mount-list { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; } .git-mount-item { background: var(--surface); border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.75rem; } .git-mount-display { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; } .git-mount-info { display: flex; flex-direction: column; gap: 0.25rem; } .git-mount-repo { font-weight: 600; color: var(--text); } .git-mount-paths { font-size: 0.875rem; color: var(--text-muted); font-family: monospace; } .git-mount-branch { font-size: 0.75rem; color: var(--accent); background: var(--accent-bg); padding: 0.125rem 0.375rem; border-radius: 0.25rem; width: fit-content; } .git-mount-actions { display: flex; gap: 0.25rem; } .git-mount-add { border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 1rem; } .git-mount-add h5 { margin: 0 0 0.75rem 0; font-size: 0.875rem; font-weight: 600; color: var(--text-muted); } .git-mount-form { display: flex; flex-direction: column; gap: 0.75rem; } .git-mount-form .form-row { display: flex; flex-direction: column; gap: 0.25rem; } .git-mount-form .form-row label { font-size: 0.875rem; font-weight: 500; color: var(--text); } .git-mount-form .form-row input, .git-mount-form .form-row select { padding: 0.5rem; border: 1px solid var(--border); border-radius: 0.375rem; background: var(--bg); color: var(--text); font-size: 0.875rem; } .git-mount-form .form-row input.error, .git-mount-form .form-row select.error { border-color: #cd3131; } .git-mount-form .form-row .hint { font-size: 0.75rem; color: var(--text-muted); } .git-mount-form .form-row .error-text { font-size: 0.75rem; color: #cd3131; } .git-mount-form .form-actions { display: flex; gap: 0.5rem; margin-top: 0.5rem; } .new-repo-form { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.75rem; background: var(--bg); border: 1px solid var(--border); border-radius: 0.375rem; } .new-repo-form input { padding: 0.5rem; border: 1px solid var(--border); border-radius: 0.375rem; background: var(--surface); color: var(--text); font-size: 0.875rem; } .new-repo-actions { display: flex; gap: 0.5rem; margin-top: 0.25rem; }