/** * Project and Session Tabs Styling * Inspired by CodeNomad's two-level tab system * https://github.com/NeuralNomadsAI/CodeNomad */ /* ============================================================ Project Tabs (Level 1) ============================================================ */ #project-tabs { background: #1a1a1a; border-bottom: 1px solid #333; padding: 0; } .project-tabs { display: flex; align-items: center; padding: 0 8px; gap: 4px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: #444 #1a1a1a; } .project-tabs::-webkit-scrollbar { height: 6px; } .project-tabs::-webkit-scrollbar-track { background: #1a1a1a; } .project-tabs::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; } .project-tabs::-webkit-scrollbar-thumb:hover { background: #555; } /* Project Tab Button */ .project-tab { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: transparent; border: none; border-bottom: 2px solid transparent; border-radius: 6px 6px 0 0; color: #888; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; white-space: nowrap; min-width: 0; } .project-tab:hover { background: #252525; color: #e0e0e0; } .project-tab.active { background: #222; color: #4a9eff; border-bottom-color: #4a9eff; } .project-tab .tab-icon { font-size: 14px; flex-shrink: 0; } .project-tab .tab-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; } .project-tab .tab-count { font-size: 11px; background: #333; color: #888; padding: 2px 6px; border-radius: 10px; flex-shrink: 0; } .project-tab.active .tab-count { background: rgba(74, 158, 255, 0.2); color: #4a9eff; } /* New Project Tab */ .project-tab-new { color: #51cf66; } .project-tab-new:hover { background: rgba(81, 207, 102, 0.1); color: #51cf66; } /* Empty State */ .project-tabs-empty { padding: 12px 16px; color: #666; font-size: 13px; font-style: italic; } /* ============================================================ Session Tabs (Level 2) ============================================================ */ #session-tabs { background: #151515; border-bottom: 1px solid #333; padding: 0; } .session-tabs { display: flex; align-items: center; padding: 0 8px; gap: 2px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: #444 #151515; } .session-tabs::-webkit-scrollbar { height: 4px; } .session-tabs::-webkit-scrollbar-track { background: #151515; } .session-tabs::-webkit-scrollbar-thumb { background: #444; border-radius: 2px; } .session-tabs::-webkit-scrollbar-thumb:hover { background: #555; } /* Session Tab Button */ .session-tab { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: transparent; border: none; border-bottom: 2px solid transparent; border-radius: 6px 6px 0 0; color: #888; font-size: 12px; cursor: pointer; transition: all 0.2s ease; white-space: nowrap; min-width: 0; position: relative; } .session-tab:hover { background: #222; color: #e0e0e0; } .session-tab:hover .tab-close { opacity: 1; } .session-tab.active { background: #1a1a1a; color: #e0e0e0; border-bottom-color: #51cf66; } .session-tab.running { color: #4a9eff; } .session-tab.running .tab-indicator { display: block; } .session-tab .tab-icon { font-size: 12px; flex-shrink: 0; } .session-tab .tab-label { flex: 1; min-width: 0; max-width: 150px; overflow: hidden; text-overflow: ellipsis; } .session-tab .tab-indicator { display: none; width: 6px; height: 6px; background: #4a9eff; border-radius: 50%; flex-shrink: 0; animation: pulse 1.5s ease-in-out infinite; } @keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } } .session-tab .tab-close { opacity: 0; font-size: 16px; line-height: 1; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; border-radius: 4px; flex-shrink: 0; transition: all 0.2s ease; } .session-tab .tab-close:hover { background: rgba(255, 107, 107, 0.2); color: #ff6b6b; } /* New Session Tab */ .session-tab-new { color: #51cf66; padding: 8px 12px; } .session-tab-new:hover { background: rgba(81, 207, 102, 0.1); color: #51cf66; } /* Empty State */ .session-tabs-empty { padding: 10px 16px; color: #666; font-size: 12px; font-style: italic; } /* ============================================================ Context Menu ============================================================ */ .context-menu { position: fixed; background: #2a2a2a; border: 1px solid #444; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); z-index: 10000; min-width: 180px; padding: 4px 0; } .context-menu-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: none; border: none; color: #e0e0e0; font-size: 13px; cursor: pointer; transition: background 0.2s ease; width: 100%; text-align: left; } .context-menu-item:hover { background: #3a3a3a; } .context-menu-item.danger { color: #ff6b6b; } .context-menu-item.danger:hover { background: rgba(255, 107, 107, 0.1); } .context-menu-divider { height: 1px; background: #444; margin: 4px 0; } .menu-icon { font-size: 14px; width: 20px; text-align: center; } /* ============================================================ Empty Project State ============================================================ */ .empty-project-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; text-align: center; } .empty-project-state .empty-icon { font-size: 48px; margin-bottom: 16px; } .empty-project-state h3 { color: #e0e0e0; font-size: 18px; font-weight: 600; margin: 0 0 8px 0; } .empty-project-state p { color: #888; font-size: 14px; margin: 0 0 24px 0; } /* ============================================================ Responsive Design ============================================================ */ @media (max-width: 768px) { .project-tabs, .session-tabs { padding: 0 4px; } .project-tab { padding: 8px 10px; font-size: 12px; } .project-tab .tab-label { max-width: 80px; } .session-tab { padding: 6px 10px; font-size: 11px; } .session-tab .tab-label { max-width: 100px; } .context-menu { min-width: 160px; } } @media (max-width: 480px) { .project-tab .tab-count { display: none; } .session-tab .tab-close { opacity: 1; } } /* ============================================================ Animations ============================================================ */ @keyframes tabFadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } } .project-tab, .session-tab { animation: tabFadeIn 0.15s ease-out; } /* ============================================================ Drag and Drop (Future Enhancement) ============================================================ */ .project-tab.dragging, .session-tab.dragging { opacity: 0.5; } .project-tab.drag-over, .session-tab.drag-over { background: rgba(74, 158, 255, 0.1); border-bottom-color: #4a9eff; } /* ============================================================ Tab Close Button Animation ============================================================ */ .tab-close { transform-origin: center; transition: transform 0.2s ease; } .tab-close:hover { transform: rotate(90deg); } /* ============================================================ Scroll Buttons for Overflow (Optional Enhancement) ============================================================ */ .tabs-scroll-button { display: none; /* Show only when needed via JS */ width: 32px; height: 100%; background: #1a1a1a; border: none; color: #888; font-size: 18px; cursor: pointer; flex-shrink: 0; } .tabs-scroll-button:hover { background: #252525; color: #e0e0e0; } .tabs-scroll-button:disabled { opacity: 0.3; cursor: not-allowed; }