/* SharePoint Connector Styles */ :root { --primary-color: #0078d4; --primary-hover: #106ebe; --danger-color: #d13438; --danger-hover: #b52b2f; --success-color: #107c10; --bg-color: #f5f5f5; --card-bg: #ffffff; --text-color: #323130; --text-secondary: #605e5c; --border-color: #e1dfdd; --shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; background-color: var(--bg-color); color: var(--text-color); line-height: 1.6; margin: 0; height: 100vh; overflow: hidden; } .container { display: flex; height: 100vh; max-width: 100%; margin: 0; padding: 0; } /* Sidebar Layout */ .sidebar { width: 300px; background: var(--card-bg); border-right: 1px solid var(--border-color); display: flex; flex-direction: column; overflow: hidden; transition: width 0.3s ease, min-width 0.3s ease; } .sidebar.collapsed { width: 50px; min-width: 50px; } .sidebar-header { padding: 20px; border-bottom: 1px solid var(--border-color); background: white; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; } .sidebar-header-content { flex: 1; overflow: hidden; } .sidebar.collapsed .sidebar-header-content { display: none; } .sidebar-collapse-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; padding: 5px; color: var(--text-secondary); transition: transform 0.3s ease; flex-shrink: 0; } .sidebar-collapse-btn:hover { color: var(--text-color); } .sidebar.collapsed .sidebar-collapse-btn { transform: rotate(180deg); } .sidebar-header h1 { font-size: 1.3rem; margin-bottom: 5px; } .sidebar-header p { font-size: 0.85rem; color: var(--text-secondary); margin: 0; } .sidebar-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; } .sidebar.collapsed .sidebar-content { display: none; } .sidebar-section { border-bottom: 1px solid var(--border-color); display: flex; flex-direction: column; overflow: hidden; } .sidebar-section.sites-section { flex: 1; display: flex; flex-direction: column; } .sidebar-section-header { padding: 15px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; flex-shrink: 0; } .sidebar-section-header:hover { background: #f8f9fa; } .sidebar-section h3 { font-size: 0.9rem; text-transform: uppercase; color: var(--text-secondary); margin: 0; font-weight: 600; } .sidebar-section-toggle { font-size: 1rem; color: var(--text-secondary); transition: transform 0.2s ease; } .sidebar-section-toggle.collapsed { transform: rotate(-90deg); } .sidebar-section-content { padding: 0 15px 15px 15px; overflow-y: auto; transition: max-height 0.3s ease, padding 0.3s ease; } .sidebar-section:not(.sites-section) .sidebar-section-content { max-height: 500px; } .sidebar-section.sites-section .sidebar-section-content { flex: 1; overflow-y: auto; } .sidebar-section-content.collapsed { max-height: 0; padding: 0; overflow: hidden; } .sidebar-footer { padding: 15px; border-top: 1px solid var(--border-color); background: #f8f9fa; flex-shrink: 0; } .sidebar.collapsed .sidebar-footer { display: none; } /* Main Content Area */ .main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; } .main-header { padding: 20px 30px; background: white; border-bottom: 1px solid var(--border-color); min-height: 86px; display: flex; flex-direction: column; justify-content: center; } .main-header h2 { margin: 0 0 5px 0; font-size: 1.3rem; } .main-header p { margin: 0; color: var(--text-secondary); font-size: 0.85rem; } .main-body { flex: 1; display: flex; flex-direction: column; overflow: hidden; padding: 0; } header { text-align: center; margin-bottom: 30px; padding: 20px; background: var(--card-bg); border-radius: 8px; box-shadow: var(--shadow); } header h1 { font-size: 2rem; margin-bottom: 10px; } header p { color: var(--text-secondary); } /* Status Card */ .status-card { background: var(--card-bg); border-radius: 8px; padding: 30px; margin-bottom: 30px; box-shadow: var(--shadow); text-align: center; } .status-connected h3 { color: var(--success-color); margin-bottom: 10px; } .status-disconnected h3 { color: var(--danger-color); margin-bottom: 10px; } .status-meta { color: var(--text-secondary); font-size: 0.9rem; margin-top: 10px; } /* Sections */ .section { background: var(--card-bg); border-radius: 8px; padding: 30px; margin-bottom: 20px; box-shadow: var(--shadow); } .section h2 { margin-bottom: 20px; font-size: 1.5rem; } .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; } .section-header h2 { margin: 0; } /* Content Area */ .content-area { min-height: 200px; } /* Loading State */ .loading { text-align: center; padding: 40px; color: var(--text-secondary); font-style: italic; } /* Error State */ .error { text-align: center; padding: 40px; color: var(--danger-color); background: #fef0f0; border-radius: 4px; border: 1px solid #fecaca; } /* Empty State */ .empty { text-align: center; padding: 40px; color: var(--text-secondary); } /* Grid Layout */ .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; } /* Card */ .card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; padding: 20px; transition: all 0.2s ease; text-align: center; display: flex; flex-direction: column; } .card:hover { border-color: var(--primary-color); box-shadow: var(--shadow); transform: translateY(-2px); } /* Site cards with indexing button */ .site-card { cursor: default; } .site-card .card-content { flex: 1; cursor: pointer; } .card-icon { font-size: 3rem; margin-bottom: 15px; } .card-title { font-weight: 600; margin-bottom: 5px; font-size: 1.1rem; } .card-meta { font-size: 0.85rem; color: var(--text-secondary); word-break: break-all; } /* File List */ .file-list { display: flex; flex-direction: column; gap: 2px; } .file-item { display: flex; align-items: center; padding: 12px 15px; border: 1px solid var(--border-color); border-radius: 4px; cursor: pointer; transition: background 0.2s ease; } .file-item:hover { background: #f0f8ff; border-color: var(--primary-color); } .file-icon { font-size: 1.5rem; margin-right: 15px; } .file-name { flex: 1; font-weight: 500; } .file-size { color: var(--text-secondary); font-size: 0.9rem; min-width: 80px; text-align: right; } /* Breadcrumb */ .breadcrumb { padding: 10px 15px; background: #f0f0f0; border-radius: 4px; margin-bottom: 20px; font-size: 0.9rem; color: var(--text-secondary); } .breadcrumb-item { display: inline; } /* File Info */ .file-info { margin-bottom: 20px; } .file-info h3 { color: var(--text-color); font-size: 1.2rem; } /* Two-column layout for file content + chat */ .content-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } .content-pane h3, .chat-pane .chat-header h3 { font-size: 1.1rem; margin-bottom: 15px; color: var(--text-color); } /* File Content */ #fileContent { background: #f8f9fa; padding: 20px; border-radius: 4px; border: 1px solid var(--border-color); overflow-x: auto; max-height: 500px; font-family: 'Courier New', Courier, monospace; font-size: 0.9rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; } /* Chat UI Styles */ .chat-pane { display: flex; flex-direction: column; height: 580px; } /* Full-height chat for main content */ .chat-pane-full { display: flex; flex-direction: column; height: 100%; flex: 1; } .chat-container-scroll { flex: 1; overflow-y: auto; padding: 20px 30px; display: flex; flex-direction: column; } .chat-pane-full .chat-messages { background: white; border: 1px solid var(--border-color); border-radius: 8px; padding: 20px; flex: 1; overflow-y: auto; min-height: 400px; max-height: none; } /* Ensure scrollable content */ .chat-messages::-webkit-scrollbar { width: 8px; } .chat-messages::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; } .chat-messages::-webkit-scrollbar-thumb { background: #888; border-radius: 4px; } .chat-messages::-webkit-scrollbar-thumb:hover { background: #555; } .chat-input-fixed { position: sticky; bottom: 0; background: white; border-top: 1px solid var(--border-color); padding: 20px 30px; box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05); } .chat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--border-color); } .llm-status { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-secondary); } .status-indicator { width: 10px; height: 10px; border-radius: 50%; display: inline-block; } .status-indicator.status-online { background: var(--success-color); box-shadow: 0 0 8px var(--success-color); } .status-indicator.status-offline { background: #999; } .chat-messages { flex: 1; overflow-y: auto; padding: 20px; background: white; border-radius: 8px; border: 1px solid var(--border-color); margin-bottom: 0; } .chat-message { margin-bottom: 15px; animation: fadeIn 0.3s ease; } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .message-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; margin-bottom: 5px; color: var(--text-secondary); } .chat-message-user .message-label { color: var(--primary-color); } .chat-message-assistant .message-label { color: var(--success-color); } .chat-message-system .message-label { color: var(--danger-color); } .message-content { background: white; padding: 12px 15px; border-radius: 8px; border: 1px solid var(--border-color); line-height: 1.6; word-wrap: break-word; } .chat-message-user .message-content { background: #e3f2fd; border-color: var(--primary-color); } .chat-message-assistant .message-content { background: #f1f8e9; border-color: var(--success-color); } .chat-message-system .message-content { background: #fef0f0; border-color: var(--danger-color); } /* Thinking indicator */ .chat-message-thinking .message-content { background: #f0f8ff; border-color: #cce5ff; font-style: italic; color: #666; } .thinking-dots { display: inline-block; } .thinking-dots::after { content: ''; animation: thinking 1.5s infinite; } @keyframes thinking { 0%, 20% { content: '.'; } 40% { content: '..'; } 60%, 100% { content: '...'; } } .chat-input-container { display: flex; flex-direction: column; gap: 10px; } .chat-input-container textarea { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 4px; font-family: inherit; font-size: 0.95rem; resize: vertical; min-height: 70px; } .chat-input-container textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.1); } .chat-input-container textarea:disabled { background: #f5f5f5; cursor: not-allowed; } .chat-actions { display: flex; gap: 10px; justify-content: flex-end; } .chat-actions .btn { padding: 8px 16px; } /* Buttons */ .btn { padding: 10px 20px; border: none; border-radius: 4px; font-size: 1rem; cursor: pointer; transition: all 0.2s ease; font-weight: 500; } .btn-primary { background: var(--primary-color); color: white; } .btn-primary:hover { background: var(--primary-hover); } .btn-secondary { background: #f5f5f5; color: var(--text-color); border: 1px solid var(--border-color); } .btn-secondary:hover { background: #e1e1e1; } .btn-danger { background: var(--danger-color); color: white; } .btn-danger:hover { background: var(--danger-hover); } /* Actions */ .actions { text-align: center; padding: 20px 0; } /* Form Styles */ .form-group { margin-bottom: 20px; } .form-group label { display: block; font-weight: 600; margin-bottom: 5px; color: var(--text-color); } .form-group input { width: 100%; padding: 10px 15px; border: 1px solid var(--border-color); border-radius: 4px; font-size: 1rem; transition: border-color 0.2s ease; } .form-group input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.1); } .form-group small { display: block; margin-top: 5px; color: var(--text-secondary); font-size: 0.85rem; } .help-section { margin-top: 30px; padding: 20px; background: #f8f9fa; border-radius: 4px; border-left: 4px solid var(--primary-color); } .help-section h3 { margin-top: 0; margin-bottom: 15px; color: var(--primary-color); } .help-section ol { margin: 0; padding-left: 20px; } .help-section li { margin-bottom: 8px; line-height: 1.6; } .help-section a { color: var(--primary-color); text-decoration: none; } .help-section a:hover { text-decoration: underline; } /* Sidebar Site List */ .site-list-item { padding: 10px; margin-bottom: 5px; background: white; border: 1px solid var(--border-color); border-radius: 4px; transition: all 0.2s ease; } .site-list-item:hover { background: #f0f8ff; border-color: var(--primary-color); } .site-list-item.indexed { border-left: 3px solid var(--success-color); background: #f1f8e9; } .site-list-item-header { display: flex; justify-content: space-between; align-items: center; } .site-list-item-name { font-weight: 500; font-size: 0.9rem; cursor: pointer; flex: 1; } .site-list-item-name:hover { color: var(--primary-color); } .site-indexed-badge { font-size: 0.7rem; background: var(--success-color); color: white; padding: 2px 6px; border-radius: 10px; margin-left: 5px; } .site-list-item-actions { display: flex; gap: 5px; margin-top: 8px; } .site-list-item-actions .btn { font-size: 0.75rem; padding: 4px 8px; } .connection-info { padding: 12px; background: #f1f8e9; border: 1px solid var(--success-color); border-radius: 4px; margin-bottom: 10px; } .connection-info h4 { margin: 0 0 5px 0; font-size: 0.9rem; color: var(--success-color); } .connection-info p { margin: 0; font-size: 0.85rem; color: var(--text-secondary); } .connection-actions { display: flex; flex-direction: column; gap: 8px; } .connection-actions .btn { width: 100%; padding: 8px 12px; font-size: 0.85rem; } /* Tag Filter Section */ .tag-filter-section { background: white; border-bottom: 1px solid var(--border-color); flex-shrink: 0; } .tag-filter-header { padding: 15px 30px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; background: white; border-bottom: 1px solid var(--border-color); } .tag-filter-header:hover { background: #f8f9fa; } .tag-filter-header label { font-weight: 600; font-size: 0.95rem; margin: 0; cursor: pointer; } .tag-filter-toggle { font-size: 1rem; color: var(--text-secondary); transition: transform 0.2s ease; } .tag-filter-toggle.collapsed { transform: rotate(-90deg); } .tag-filter-content { padding: 15px 30px; max-height: 500px; overflow-y: auto; transition: max-height 0.3s ease, padding 0.3s ease; } .tag-filter-content.collapsed { max-height: 0; padding: 0 30px; overflow: hidden; } .available-tags-compact { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; } .available-tags-compact .tag { cursor: pointer; font-size: 0.8rem; padding: 3px 10px; } .available-tags-compact .tag:hover { opacity: 0.8; transform: scale(1.05); } /* Responsive Design */ @media (max-width: 768px) { .container { flex-direction: column; } .sidebar { width: 100%; height: auto; max-height: 40vh; border-right: none; border-bottom: 1px solid var(--border-color); } .main-content { height: 60vh; } header h1 { font-size: 1.5rem; } .grid { grid-template-columns: 1fr; } .section { padding: 20px; } .section-header { flex-direction: column; align-items: flex-start; gap: 10px; } .file-item { padding: 10px; } .file-name { font-size: 0.9rem; } .file-size { font-size: 0.8rem; min-width: 60px; } /* Stack content and chat vertically on mobile */ .content-layout { grid-template-columns: 1fr; } .chat-pane { height: 400px; } .chat-header { flex-direction: column; align-items: flex-start; gap: 8px; } .main-body { padding: 15px; } .main-header { padding: 15px; } } /* ============================================================================ * TAG MANAGEMENT STYLES * ============================================================================ */ .tags-section { margin-bottom: 20px; padding: 15px; background: #f8f9fa; border-radius: 8px; border: 1px solid var(--border-color); } .tags-section h4 { margin: 0 0 12px 0; font-size: 1rem; color: var(--text-color); } .tags-container { display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; } .tags-display { flex: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 32px; } .tag { display: inline-block; background: var(--primary-color); color: white; padding: 4px 12px; border-radius: 16px; font-size: 0.85rem; font-weight: 500; animation: tagSlideIn 0.3s ease; } @keyframes tagSlideIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } } .tag-placeholder { color: var(--text-secondary); font-size: 0.9rem; font-style: italic; } .btn-sm { padding: 6px 14px; font-size: 0.9rem; } .tag-editor { margin-top: 12px; padding: 15px; background: white; border: 1px solid var(--border-color); border-radius: 8px; animation: slideDown 0.3s ease; } @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } .tag-editor input { width: 100%; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 4px; font-size: 0.95rem; font-family: inherit; margin-bottom: 10px; } .tag-editor input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.1); } .tag-editor-actions { display: flex; gap: 10px; justify-content: flex-end; } .success-message { margin-top: 12px; padding: 10px 15px; background: #f1f8e9; border: 1px solid var(--success-color); border-radius: 4px; color: var(--success-color); font-size: 0.9rem; animation: fadeIn 0.3s ease; } /* Responsive tags */ @media (max-width: 768px) { .tags-container { flex-direction: column; align-items: flex-start; } .tags-display { width: 100%; } } /* ============================================================================ * CARD ACTIONS & INDEXING STYLES * ============================================================================ */ .card-actions { margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--border-color); } .card-actions .btn { width: 100%; } /* Modal */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); justify-content: center; align-items: center; z-index: 1000; } .modal-content { background: white; border-radius: 8px; padding: 0; max-width: 600px; width: 90%; max-height: 80vh; overflow: auto; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); animation: modalSlideIn 0.3s ease; } @keyframes modalSlideIn { from { opacity: 0; transform: translateY(-50px); } to { opacity: 1; transform: translateY(0); } } .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--border-color); } .modal-header h3 { margin: 0; font-size: 1.3rem; } .modal-body { padding: 20px; } .modal-actions { margin-top: 20px; text-align: right; } /* Indexing status */ .indexing-status { margin-bottom: 20px; } .status-site { font-size: 1.1rem; font-weight: 600; margin-bottom: 15px; color: var(--text-color); } .status-stats { margin: 10px 0; color: var(--text-secondary); font-size: 0.95rem; } .status-current { margin-top: 10px; color: var(--primary-color); font-size: 0.9rem; font-style: italic; } /* Progress bar */ .progress-bar { width: 100%; height: 24px; background: #f0f0f0; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); margin: 15px 0; } .progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary-color), var(--primary-hover)); transition: width 0.3s ease; display: flex; align-items: center; justify-content: center; color: white; font-size: 0.85rem; font-weight: 600; } /* Responsive modal */ @media (max-width: 768px) { .modal-content { width: 95%; max-height: 90vh; } .modal-header { flex-direction: column; gap: 10px; align-items: flex-start; } }