| | |
| | * { |
| | margin: 0; |
| | padding: 0; |
| | box-sizing: border-box; |
| | } |
| |
|
| | |
| | :root { |
| | --bg-primary: #1a1a1a; |
| | --bg-secondary: #252525; |
| | --bg-tertiary: #353535; |
| | --accent: #5b9cf5; |
| | --accent-hover: #78b0ff; |
| | --text-primary: #eee; |
| | --text-secondary: #aaa; |
| | --text-muted: #666; |
| | --border-color: #333; |
| | --success: #4ade80; |
| | --code-bg: #2d2d2d; |
| | } |
| |
|
| | |
| | body.version-light { |
| | --bg-primary: #1a1a2e; |
| | --bg-secondary: #16213e; |
| | --bg-tertiary: #0f3460; |
| | --accent: #5b9cf5; |
| | --accent-hover: #78b0ff; |
| | } |
| |
|
| | body { |
| | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; |
| | background-color: var(--bg-primary); |
| | color: var(--text-primary); |
| | line-height: 1.6; |
| | height: 100vh; |
| | overflow: hidden; |
| | } |
| |
|
| | |
| | .app-container { |
| | display: flex; |
| | height: 100vh; |
| | } |
| |
|
| | |
| | .sidebar { |
| | width: 280px; |
| | background-color: var(--bg-secondary); |
| | border-right: 1px solid var(--border-color); |
| | display: flex; |
| | flex-direction: column; |
| | padding: 20px; |
| | } |
| |
|
| | |
| | .mode-toggle-container { |
| | display: flex; |
| | gap: 8px; |
| | margin-bottom: 20px; |
| | padding: 4px; |
| | background: var(--bg-primary); |
| | border-radius: 8px; |
| | } |
| |
|
| | .mode-toggle-btn { |
| | flex: 1; |
| | display: flex; |
| | align-items: center; |
| | justify-content: center; |
| | gap: 6px; |
| | padding: 8px 12px; |
| | background: transparent; |
| | border: none; |
| | border-radius: 6px; |
| | color: var(--text-secondary); |
| | font-size: 0.85rem; |
| | font-weight: 500; |
| | cursor: pointer; |
| | transition: all 0.2s; |
| | } |
| |
|
| | .mode-toggle-btn:hover { |
| | background: var(--bg-tertiary); |
| | color: var(--text-primary); |
| | } |
| |
|
| | .mode-toggle-btn.active { |
| | background: var(--accent); |
| | color: white; |
| | } |
| |
|
| | .mode-toggle-btn svg { |
| | flex-shrink: 0; |
| | } |
| |
|
| | .sidebar-header { |
| | margin-bottom: 30px; |
| | } |
| |
|
| | .sidebar-header h1 { |
| | font-size: 1.5rem; |
| | font-weight: 600; |
| | color: var(--accent); |
| | } |
| |
|
| | .sidebar-header .subtitle { |
| | font-size: 0.85rem; |
| | color: var(--text-secondary); |
| | margin-top: 4px; |
| | } |
| |
|
| | .sidebar-stats { |
| | background-color: var(--bg-tertiary); |
| | border-radius: 8px; |
| | padding: 15px; |
| | margin-bottom: 20px; |
| | } |
| |
|
| | .stat-item { |
| | display: flex; |
| | justify-content: space-between; |
| | align-items: center; |
| | padding: 8px 0; |
| | } |
| |
|
| | .stat-item:not(:last-child) { |
| | border-bottom: 1px solid var(--border-color); |
| | } |
| |
|
| | .stat-label { |
| | font-size: 0.85rem; |
| | color: var(--text-secondary); |
| | } |
| |
|
| | .stat-value { |
| | font-size: 0.9rem; |
| | font-weight: 500; |
| | color: var(--text-primary); |
| | } |
| |
|
| | .sidebar-section { |
| | margin-bottom: 20px; |
| | } |
| |
|
| | .sidebar-section h3 { |
| | font-size: 0.8rem; |
| | text-transform: uppercase; |
| | letter-spacing: 0.5px; |
| | color: var(--text-muted); |
| | margin-bottom: 15px; |
| | display: flex; |
| | justify-content: space-between; |
| | align-items: center; |
| | } |
| |
|
| | .sidebar-section h3 .view-all-btn { |
| | margin-left: auto; |
| | } |
| |
|
| | |
| | .documents-section { |
| | flex: 1; |
| | overflow: hidden; |
| | display: flex; |
| | flex-direction: column; |
| | min-height: 0; |
| | max-height: 400px; |
| | } |
| |
|
| | .toggle-btn { |
| | background: none; |
| | border: none; |
| | color: var(--text-muted); |
| | cursor: pointer; |
| | font-size: 0.7rem; |
| | padding: 2px 6px; |
| | } |
| |
|
| | .toggle-btn:hover { |
| | color: var(--text-primary); |
| | } |
| |
|
| | .documents-list { |
| | overflow-y: auto; |
| | flex: 1; |
| | background-color: var(--bg-tertiary); |
| | border-radius: 6px; |
| | padding: 8px; |
| | min-height: 50px; |
| | } |
| |
|
| | .doc-actions { |
| | display: flex; |
| | align-items: center; |
| | gap: 4px; |
| | } |
| |
|
| | .view-all-btn { |
| | background: none; |
| | border: 1px solid var(--border-color); |
| | color: var(--text-muted); |
| | cursor: pointer; |
| | font-size: 0.65rem; |
| | padding: 2px 6px; |
| | border-radius: 3px; |
| | text-transform: uppercase; |
| | } |
| |
|
| | .view-all-btn:hover { |
| | border-color: var(--accent); |
| | color: var(--accent); |
| | } |
| |
|
| | |
| | .filter-controls { |
| | display: flex; |
| | align-items: center; |
| | justify-content: space-between; |
| | padding: 8px 10px; |
| | margin-bottom: 8px; |
| | background-color: var(--bg-tertiary); |
| | border-radius: 6px; |
| | font-size: 0.75rem; |
| | flex-shrink: 0; |
| | } |
| |
|
| | .filter-status { |
| | display: flex; |
| | align-items: center; |
| | gap: 6px; |
| | } |
| |
|
| | .filter-label { |
| | color: var(--text-muted); |
| | } |
| |
|
| | .filter-value { |
| | color: var(--accent); |
| | font-weight: 500; |
| | } |
| |
|
| | .filter-clear-btn { |
| | background: none; |
| | border: 1px solid var(--border-color); |
| | color: var(--text-muted); |
| | padding: 2px 8px; |
| | border-radius: 4px; |
| | font-size: 0.65rem; |
| | cursor: pointer; |
| | transition: all 0.15s; |
| | } |
| |
|
| | .filter-clear-btn:hover { |
| | border-color: var(--accent); |
| | color: var(--accent); |
| | } |
| |
|
| | .doc-item { |
| | display: flex; |
| | align-items: center; |
| | padding: 6px 8px; |
| | border-radius: 4px; |
| | font-size: 0.8rem; |
| | color: var(--text-secondary); |
| | transition: background-color 0.15s; |
| | gap: 8px; |
| | } |
| |
|
| | .doc-item:hover { |
| | background-color: var(--bg-secondary); |
| | } |
| |
|
| | .doc-item.selected { |
| | background-color: rgba(229, 62, 62, 0.1); |
| | border-left: 2px solid var(--accent); |
| | } |
| |
|
| | .doc-checkbox { |
| | width: 14px; |
| | height: 14px; |
| | cursor: pointer; |
| | accent-color: var(--accent); |
| | flex-shrink: 0; |
| | } |
| |
|
| | .doc-name { |
| | flex: 1; |
| | overflow: hidden; |
| | text-overflow: ellipsis; |
| | white-space: nowrap; |
| | cursor: pointer; |
| | } |
| |
|
| | .doc-name:hover { |
| | color: var(--accent); |
| | } |
| |
|
| | .doc-chunks { |
| | background-color: var(--bg-secondary); |
| | padding: 2px 6px; |
| | border-radius: 3px; |
| | font-size: 0.7rem; |
| | color: var(--text-muted); |
| | flex-shrink: 0; |
| | } |
| |
|
| | |
| | .resize-handle { |
| | height: 12px; |
| | cursor: ns-resize; |
| | display: flex; |
| | align-items: center; |
| | justify-content: center; |
| | margin: 8px 0; |
| | user-select: none; |
| | transition: opacity 0.2s; |
| | } |
| |
|
| | .resize-handle:hover { |
| | opacity: 1; |
| | } |
| |
|
| | .resize-handle-line { |
| | width: 40px; |
| | height: 3px; |
| | background-color: var(--border-color); |
| | border-radius: 2px; |
| | transition: background-color 0.2s; |
| | } |
| |
|
| | .resize-handle:hover .resize-handle-line { |
| | background-color: var(--accent); |
| | } |
| |
|
| | .resize-handle.dragging { |
| | opacity: 1; |
| | } |
| |
|
| | .resize-handle.dragging .resize-handle-line { |
| | background-color: var(--accent); |
| | } |
| |
|
| | .loading-docs, .no-docs, .error-docs { |
| | text-align: center; |
| | padding: 15px; |
| | color: var(--text-muted); |
| | font-size: 0.85rem; |
| | } |
| |
|
| | .error-docs { |
| | color: var(--accent); |
| | } |
| |
|
| | .setting-item { |
| | margin-bottom: 15px; |
| | } |
| |
|
| | .setting-item label { |
| | display: flex; |
| | align-items: center; |
| | gap: 8px; |
| | font-size: 0.9rem; |
| | color: var(--text-secondary); |
| | cursor: pointer; |
| | } |
| |
|
| | .setting-item input[type="range"] { |
| | width: 100%; |
| | margin-top: 8px; |
| | accent-color: var(--accent); |
| | } |
| |
|
| | .setting-item input[type="checkbox"] { |
| | accent-color: var(--accent); |
| | width: 16px; |
| | height: 16px; |
| | } |
| |
|
| | #top-k-value { |
| | display: inline-block; |
| | margin-left: 10px; |
| | background: var(--bg-tertiary); |
| | padding: 2px 8px; |
| | border-radius: 4px; |
| | font-size: 0.85rem; |
| | } |
| |
|
| | |
| | .model-select { |
| | width: 100%; |
| | margin-top: 8px; |
| | padding: 8px 12px; |
| | background-color: var(--bg-tertiary); |
| | border: 1px solid var(--border-color); |
| | border-radius: 6px; |
| | color: var(--text-primary); |
| | font-size: 0.9rem; |
| | cursor: pointer; |
| | appearance: none; |
| | background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23aaa' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E"); |
| | background-repeat: no-repeat; |
| | background-position: right 10px center; |
| | } |
| |
|
| | .model-select:hover { |
| | border-color: var(--accent); |
| | } |
| |
|
| | .model-select:focus { |
| | outline: none; |
| | border-color: var(--accent); |
| | } |
| |
|
| | .model-select option { |
| | background-color: var(--bg-secondary); |
| | color: var(--text-primary); |
| | } |
| |
|
| | .model-select option:disabled { |
| | color: var(--text-muted); |
| | } |
| |
|
| | |
| | .embedding-info { |
| | display: flex; |
| | gap: 10px; |
| | margin-top: 6px; |
| | font-size: 0.75rem; |
| | } |
| |
|
| | .embedding-dims { |
| | background-color: var(--bg-tertiary); |
| | padding: 2px 6px; |
| | border-radius: 4px; |
| | color: var(--accent); |
| | font-weight: 500; |
| | } |
| |
|
| | .embedding-chunks { |
| | color: var(--text-muted); |
| | } |
| |
|
| | |
| | .search-sources-group { |
| | display: flex; |
| | flex-direction: column; |
| | gap: 8px; |
| | margin-top: 8px; |
| | } |
| |
|
| | .search-source-checkbox { |
| | display: flex; |
| | align-items: center; |
| | gap: 8px; |
| | padding: 6px 10px; |
| | background-color: var(--bg-tertiary); |
| | border-radius: 6px; |
| | cursor: pointer; |
| | transition: all 0.2s; |
| | } |
| |
|
| | .search-source-checkbox:hover { |
| | background-color: var(--bg-primary); |
| | } |
| |
|
| | .search-source-checkbox input[type="checkbox"] { |
| | accent-color: var(--accent); |
| | width: 14px; |
| | height: 14px; |
| | cursor: pointer; |
| | } |
| |
|
| | .search-source-checkbox .source-label { |
| | font-size: 0.85rem; |
| | color: var(--text-primary); |
| | } |
| |
|
| | .search-source-checkbox:has(input:checked) { |
| | border-left: 2px solid var(--accent); |
| | } |
| |
|
| | .sidebar-footer { |
| | margin-top: auto; |
| | display: flex; |
| | gap: 8px; |
| | } |
| |
|
| | .btn-publish, |
| | .btn-share, |
| | .btn-save, |
| | .btn-clear { |
| | flex: 1; |
| | padding: 10px; |
| | background-color: transparent; |
| | border: 1px solid var(--border-color); |
| | color: var(--text-secondary); |
| | border-radius: 6px; |
| | cursor: pointer; |
| | font-size: 0.85rem; |
| | transition: all 0.2s; |
| | display: inline-flex; |
| | align-items: center; |
| | justify-content: center; |
| | gap: 5px; |
| | } |
| |
|
| | .btn-publish:hover { |
| | background-color: var(--bg-tertiary); |
| | color: var(--success); |
| | border-color: var(--success); |
| | } |
| |
|
| | .btn-publish.published { |
| | color: var(--success); |
| | border-color: var(--success); |
| | } |
| |
|
| | .btn-share:hover { |
| | background-color: var(--bg-tertiary); |
| | color: #1da1f2; |
| | border-color: #1da1f2; |
| | } |
| |
|
| | .btn-share.copied { |
| | color: var(--success); |
| | border-color: var(--success); |
| | } |
| |
|
| | .btn-save:hover { |
| | background-color: var(--bg-tertiary); |
| | color: var(--success); |
| | border-color: var(--success); |
| | } |
| |
|
| | .btn-clear:hover { |
| | background-color: var(--bg-tertiary); |
| | color: var(--accent); |
| | border-color: var(--accent); |
| | } |
| |
|
| | |
| | .chat-container { |
| | flex: 1; |
| | display: flex; |
| | flex-direction: column; |
| | height: 100vh; |
| | } |
| |
|
| | .chat-messages { |
| | flex: 1; |
| | overflow-y: auto; |
| | padding: 20px; |
| | scroll-behavior: smooth; |
| | } |
| |
|
| | |
| | .welcome-message { |
| | text-align: center; |
| | padding: 60px 20px; |
| | max-width: 600px; |
| | margin: 0 auto; |
| | } |
| |
|
| | .welcome-message h2 { |
| | font-size: 1.8rem; |
| | margin-bottom: 15px; |
| | color: var(--text-primary); |
| | } |
| |
|
| | .welcome-message p { |
| | color: var(--text-secondary); |
| | margin-bottom: 30px; |
| | } |
| |
|
| | .example-queries { |
| | margin-top: 20px; |
| | } |
| |
|
| | .example-queries p { |
| | font-size: 0.9rem; |
| | margin-bottom: 15px; |
| | } |
| |
|
| | .example-btn { |
| | display: inline-block; |
| | margin: 5px; |
| | padding: 10px 16px; |
| | background-color: var(--bg-tertiary); |
| | border: 1px solid var(--border-color); |
| | color: var(--text-secondary); |
| | border-radius: 20px; |
| | cursor: pointer; |
| | font-size: 0.9rem; |
| | transition: all 0.2s; |
| | } |
| |
|
| | .example-btn:hover { |
| | background-color: var(--accent); |
| | color: white; |
| | border-color: var(--accent); |
| | } |
| |
|
| | |
| | .message { |
| | margin-bottom: 20px; |
| | max-width: 800px; |
| | } |
| |
|
| | .message.user { |
| | margin-left: auto; |
| | } |
| |
|
| | .message-content { |
| | padding: 15px 20px; |
| | border-radius: 12px; |
| | line-height: 1.7; |
| | } |
| |
|
| | .message.user .message-content { |
| | background-color: var(--accent); |
| | color: white; |
| | border-bottom-right-radius: 4px; |
| | } |
| |
|
| | .message.assistant .message-content { |
| | background-color: var(--bg-secondary); |
| | border: 1px solid var(--border-color); |
| | border-bottom-left-radius: 4px; |
| | } |
| |
|
| | .message-meta { |
| | display: flex; |
| | justify-content: space-between; |
| | align-items: center; |
| | gap: 10px; |
| | margin-top: 8px; |
| | font-size: 0.75rem; |
| | color: var(--text-muted); |
| | } |
| |
|
| | .model-badge { |
| | background-color: var(--bg-tertiary); |
| | padding: 2px 8px; |
| | border-radius: 4px; |
| | color: var(--accent); |
| | font-weight: 500; |
| | } |
| |
|
| | |
| | .share-btn { |
| | display: inline-flex; |
| | align-items: center; |
| | justify-content: center; |
| | background: transparent; |
| | border: none; |
| | color: var(--text-muted); |
| | cursor: pointer; |
| | padding: 4px 8px; |
| | border-radius: 4px; |
| | transition: all 0.2s; |
| | margin-left: auto; |
| | } |
| |
|
| | .share-btn:hover { |
| | background-color: var(--bg-tertiary); |
| | color: var(--text-primary); |
| | } |
| |
|
| | .share-btn svg { |
| | transition: transform 0.2s; |
| | } |
| |
|
| | .share-btn:hover svg { |
| | transform: scale(1.1); |
| | } |
| |
|
| | |
| | .sources { |
| | margin-top: 15px; |
| | padding-top: 15px; |
| | border-top: 1px solid var(--border-color); |
| | } |
| |
|
| | .sources-header { |
| | font-size: 0.8rem; |
| | color: var(--text-muted); |
| | margin-bottom: 10px; |
| | text-transform: uppercase; |
| | letter-spacing: 0.5px; |
| | } |
| |
|
| | .source-item { |
| | display: inline-flex; |
| | align-items: center; |
| | gap: 6px; |
| | margin: 4px; |
| | padding: 6px 12px; |
| | background-color: var(--bg-tertiary); |
| | border-radius: 4px; |
| | font-size: 0.8rem; |
| | color: var(--text-secondary); |
| | text-decoration: none; |
| | transition: all 0.15s; |
| | border: 1px solid transparent; |
| | } |
| |
|
| | .source-link { |
| | cursor: pointer; |
| | } |
| |
|
| | .source-link:hover { |
| | background-color: var(--bg-secondary); |
| | border-color: var(--accent); |
| | color: var(--accent); |
| | } |
| |
|
| | .source-item .page-num { |
| | color: var(--accent); |
| | font-weight: 500; |
| | } |
| |
|
| | .source-item .score { |
| | color: var(--success); |
| | font-size: 0.75rem; |
| | } |
| |
|
| | |
| | .source-icon { |
| | display: inline-flex; |
| | align-items: center; |
| | justify-content: center; |
| | width: 18px; |
| | height: 18px; |
| | border-radius: 3px; |
| | font-size: 0.65rem; |
| | font-weight: 700; |
| | color: white; |
| | } |
| |
|
| | .source-icon.local { |
| | background-color: #6366f1; |
| | } |
| |
|
| | .source-icon.web { |
| | background-color: #22c55e; |
| | } |
| |
|
| | .source-icon.arxiv { |
| | background-color: #b91c1c; |
| | } |
| |
|
| | .source-icon.s2 { |
| | background-color: #0891b2; |
| | } |
| |
|
| | .source-icon.pubmed { |
| | background-color: #7c3aed; |
| | } |
| |
|
| | .source-item.external .external-icon { |
| | font-size: 0.7rem; |
| | opacity: 0.7; |
| | } |
| |
|
| | |
| | .search-mode-info { |
| | margin-top: 4px; |
| | font-size: 0.75rem; |
| | color: var(--text-muted); |
| | } |
| |
|
| | |
| | .citation-link { |
| | color: var(--accent); |
| | text-decoration: none; |
| | font-weight: 600; |
| | padding: 0 2px; |
| | border-radius: 3px; |
| | transition: all 0.15s; |
| | } |
| |
|
| | .citation-link:hover { |
| | background-color: var(--accent); |
| | color: white; |
| | text-decoration: none; |
| | } |
| |
|
| | |
| | .loading { |
| | display: flex; |
| | align-items: center; |
| | gap: 10px; |
| | padding: 15px 20px; |
| | background-color: var(--bg-secondary); |
| | border: 1px solid var(--border-color); |
| | border-radius: 12px; |
| | max-width: 200px; |
| | } |
| |
|
| | .loading-dots { |
| | display: flex; |
| | gap: 4px; |
| | } |
| |
|
| | .loading-dots span { |
| | width: 8px; |
| | height: 8px; |
| | background-color: var(--accent); |
| | border-radius: 50%; |
| | animation: bounce 1.4s infinite ease-in-out; |
| | } |
| |
|
| | .loading-dots span:nth-child(1) { animation-delay: -0.32s; } |
| | .loading-dots span:nth-child(2) { animation-delay: -0.16s; } |
| |
|
| | @keyframes bounce { |
| | 0%, 80%, 100% { transform: scale(0); } |
| | 40% { transform: scale(1); } |
| | } |
| |
|
| | @keyframes spin { |
| | from { transform: rotate(0deg); } |
| | to { transform: rotate(360deg); } |
| | } |
| |
|
| | .spin { |
| | animation: spin 1s linear infinite; |
| | } |
| |
|
| | |
| | .chat-input-container { |
| | padding: 20px; |
| | background-color: var(--bg-secondary); |
| | border-top: 1px solid var(--border-color); |
| | } |
| |
|
| | #chat-form { |
| | max-width: 800px; |
| | margin: 0 auto; |
| | } |
| |
|
| | .input-wrapper { |
| | display: flex; |
| | align-items: flex-end; |
| | gap: 10px; |
| | background-color: var(--bg-primary); |
| | border: 1px solid var(--border-color); |
| | border-radius: 12px; |
| | padding: 10px 15px; |
| | transition: border-color 0.2s; |
| | } |
| |
|
| | .input-wrapper:focus-within { |
| | border-color: var(--accent); |
| | } |
| |
|
| | #user-input { |
| | flex: 1; |
| | background: transparent; |
| | border: none; |
| | color: var(--text-primary); |
| | font-size: 1rem; |
| | resize: none; |
| | max-height: 150px; |
| | outline: none; |
| | font-family: inherit; |
| | } |
| |
|
| | #user-input::placeholder { |
| | color: var(--text-muted); |
| | } |
| |
|
| | .send-button { |
| | width: 40px; |
| | height: 40px; |
| | background-color: var(--accent); |
| | border: none; |
| | border-radius: 8px; |
| | cursor: pointer; |
| | display: flex; |
| | align-items: center; |
| | justify-content: center; |
| | transition: background-color 0.2s; |
| | } |
| |
|
| | .send-button:hover { |
| | background-color: var(--accent-hover); |
| | } |
| |
|
| | .send-button:disabled { |
| | background-color: var(--text-muted); |
| | cursor: not-allowed; |
| | } |
| |
|
| | .send-button svg { |
| | width: 20px; |
| | height: 20px; |
| | color: white; |
| | } |
| |
|
| | |
| | .message-content p { |
| | margin-bottom: 10px; |
| | } |
| |
|
| | .message-content p:last-child { |
| | margin-bottom: 0; |
| | } |
| |
|
| | .message-content code { |
| | background-color: var(--code-bg); |
| | padding: 2px 6px; |
| | border-radius: 4px; |
| | font-family: 'SF Mono', Monaco, monospace; |
| | font-size: 0.9em; |
| | } |
| |
|
| | .message-content pre { |
| | background-color: var(--code-bg); |
| | padding: 15px; |
| | border-radius: 8px; |
| | overflow-x: auto; |
| | margin: 10px 0; |
| | } |
| |
|
| | .message-content pre code { |
| | background: none; |
| | padding: 0; |
| | } |
| |
|
| | .message-content ul, .message-content ol { |
| | margin: 10px 0; |
| | padding-left: 20px; |
| | } |
| |
|
| | .message-content li { |
| | margin-bottom: 5px; |
| | } |
| |
|
| | .message-content strong { |
| | font-weight: 600; |
| | } |
| |
|
| | .message-content em { |
| | font-style: italic; |
| | } |
| |
|
| | |
| | .message-content h1, |
| | .message-content h2, |
| | .message-content h3, |
| | .message-content h4 { |
| | color: var(--text-primary); |
| | font-weight: 600; |
| | margin-top: 20px; |
| | margin-bottom: 12px; |
| | line-height: 1.3; |
| | } |
| |
|
| | .message-content h1:first-child, |
| | .message-content h2:first-child, |
| | .message-content h3:first-child, |
| | .message-content h4:first-child { |
| | margin-top: 0; |
| | } |
| |
|
| | .message-content h1 { |
| | font-size: 1.4rem; |
| | border-bottom: 2px solid var(--accent); |
| | padding-bottom: 8px; |
| | } |
| |
|
| | .message-content h2 { |
| | font-size: 1.2rem; |
| | color: var(--accent); |
| | border-left: 3px solid var(--accent); |
| | padding-left: 12px; |
| | margin-left: -12px; |
| | } |
| |
|
| | .message-content h3 { |
| | font-size: 1.05rem; |
| | color: var(--text-primary); |
| | } |
| |
|
| | .message-content h4 { |
| | font-size: 0.95rem; |
| | color: var(--text-secondary); |
| | text-transform: uppercase; |
| | letter-spacing: 0.5px; |
| | } |
| |
|
| | |
| | .message-content blockquote { |
| | border-left: 3px solid var(--border-color); |
| | margin: 15px 0; |
| | padding: 10px 15px; |
| | background-color: var(--bg-tertiary); |
| | border-radius: 0 6px 6px 0; |
| | color: var(--text-secondary); |
| | font-style: italic; |
| | } |
| |
|
| | .message-content blockquote p { |
| | margin-bottom: 0; |
| | } |
| |
|
| | |
| | .message-content hr { |
| | border: none; |
| | border-top: 1px solid var(--border-color); |
| | margin: 20px 0; |
| | } |
| |
|
| | |
| | .error-message { |
| | background-color: rgba(233, 69, 96, 0.1); |
| | border: 1px solid var(--accent); |
| | color: var(--accent); |
| | padding: 15px 20px; |
| | border-radius: 8px; |
| | margin-bottom: 20px; |
| | } |
| |
|
| | |
| | @media (max-width: 768px) { |
| | .sidebar { |
| | display: none; |
| | } |
| |
|
| | .chat-input-container { |
| | padding: 15px; |
| | } |
| | } |
| |
|
| | |
| | ::-webkit-scrollbar { |
| | width: 8px; |
| | } |
| |
|
| | ::-webkit-scrollbar-track { |
| | background: var(--bg-primary); |
| | } |
| |
|
| | ::-webkit-scrollbar-thumb { |
| | background: var(--border-color); |
| | border-radius: 4px; |
| | } |
| |
|
| | ::-webkit-scrollbar-thumb:hover { |
| | background: var(--text-muted); |
| | } |
| |
|
| | |
| | .modal-overlay { |
| | position: fixed; |
| | top: 0; |
| | left: 0; |
| | width: 100%; |
| | height: 100%; |
| | background-color: rgba(0, 0, 0, 0.7); |
| | display: flex; |
| | align-items: center; |
| | justify-content: center; |
| | z-index: 1000; |
| | opacity: 0; |
| | visibility: hidden; |
| | transition: opacity 0.2s, visibility 0.2s; |
| | } |
| |
|
| | .modal-overlay.visible { |
| | opacity: 1; |
| | visibility: visible; |
| | } |
| |
|
| | .modal-content { |
| | background-color: var(--bg-secondary); |
| | border-radius: 12px; |
| | width: 90%; |
| | max-width: 700px; |
| | max-height: 80vh; |
| | display: flex; |
| | flex-direction: column; |
| | box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); |
| | transform: translateY(20px); |
| | transition: transform 0.2s; |
| | } |
| |
|
| | .modal-overlay.visible .modal-content { |
| | transform: translateY(0); |
| | } |
| |
|
| | .modal-header { |
| | display: flex; |
| | justify-content: space-between; |
| | align-items: center; |
| | padding: 20px 25px; |
| | border-bottom: 1px solid var(--border-color); |
| | } |
| |
|
| | .modal-header h2 { |
| | font-size: 1.3rem; |
| | color: var(--text-primary); |
| | margin: 0; |
| | } |
| |
|
| | .modal-close { |
| | background: none; |
| | border: none; |
| | font-size: 1.8rem; |
| | color: var(--text-muted); |
| | cursor: pointer; |
| | padding: 0; |
| | line-height: 1; |
| | } |
| |
|
| | .modal-close:hover { |
| | color: var(--accent); |
| | } |
| |
|
| | .modal-body { |
| | padding: 20px 25px; |
| | overflow-y: auto; |
| | flex: 1; |
| | } |
| |
|
| | .modal-stats { |
| | display: flex; |
| | gap: 20px; |
| | margin-bottom: 20px; |
| | padding-bottom: 15px; |
| | border-bottom: 1px solid var(--border-color); |
| | } |
| |
|
| | .modal-stats span { |
| | color: var(--text-secondary); |
| | font-size: 0.9rem; |
| | } |
| |
|
| | .modal-documents-list { |
| | display: flex; |
| | flex-direction: column; |
| | gap: 8px; |
| | } |
| |
|
| | .modal-doc-item { |
| | display: flex; |
| | align-items: center; |
| | gap: 15px; |
| | padding: 12px 15px; |
| | background-color: var(--bg-tertiary); |
| | border-radius: 8px; |
| | cursor: pointer; |
| | transition: background-color 0.15s, transform 0.15s; |
| | } |
| |
|
| | .modal-doc-item:hover { |
| | background-color: var(--bg-primary); |
| | transform: translateX(5px); |
| | } |
| |
|
| | .modal-doc-icon { |
| | font-size: 1.5rem; |
| | } |
| |
|
| | .modal-doc-info { |
| | flex: 1; |
| | overflow: hidden; |
| | } |
| |
|
| | .modal-doc-name { |
| | color: var(--text-primary); |
| | font-size: 0.95rem; |
| | font-weight: 500; |
| | margin-bottom: 3px; |
| | } |
| |
|
| | .modal-doc-filename { |
| | color: var(--text-muted); |
| | font-size: 0.75rem; |
| | overflow: hidden; |
| | text-overflow: ellipsis; |
| | white-space: nowrap; |
| | } |
| |
|
| | .modal-doc-chunks { |
| | color: var(--text-secondary); |
| | font-size: 0.8rem; |
| | background-color: var(--bg-secondary); |
| | padding: 4px 10px; |
| | border-radius: 4px; |
| | white-space: nowrap; |
| | } |
| |
|
| | |
| | .modal-filter-controls { |
| | display: flex; |
| | align-items: center; |
| | gap: 12px; |
| | padding: 12px 15px; |
| | background-color: var(--bg-tertiary); |
| | border-radius: 8px; |
| | margin-bottom: 15px; |
| | flex-wrap: wrap; |
| | } |
| |
|
| | .modal-filter-label { |
| | color: var(--text-muted); |
| | font-size: 0.85rem; |
| | } |
| |
|
| | .modal-selection-count { |
| | color: var(--accent); |
| | font-weight: 500; |
| | font-size: 0.85rem; |
| | } |
| |
|
| | .modal-filter-buttons { |
| | display: flex; |
| | gap: 8px; |
| | margin-left: auto; |
| | } |
| |
|
| | .modal-filter-btn { |
| | padding: 6px 14px; |
| | background-color: var(--bg-secondary); |
| | border: 1px solid var(--border-color); |
| | border-radius: 4px; |
| | color: var(--text-secondary); |
| | font-size: 0.8rem; |
| | cursor: pointer; |
| | transition: all 0.15s; |
| | } |
| |
|
| | .modal-filter-btn:hover { |
| | background-color: var(--accent); |
| | color: white; |
| | border-color: var(--accent); |
| | } |
| |
|
| | |
| | .modal-doc-checkbox { |
| | width: 18px; |
| | height: 18px; |
| | cursor: pointer; |
| | accent-color: var(--accent); |
| | flex-shrink: 0; |
| | } |
| |
|
| | .modal-doc-item.selected { |
| | background-color: var(--bg-primary); |
| | border: 1px solid var(--accent); |
| | } |
| |
|
| | .modal-doc-item .modal-doc-icon, |
| | .modal-doc-item .modal-doc-info { |
| | cursor: pointer; |
| | } |
| |
|
| | .modal-doc-item .modal-doc-info:hover .modal-doc-name { |
| | color: var(--accent); |
| | } |
| |
|
| | |
| | .share-modal-overlay { |
| | position: fixed; |
| | top: 0; |
| | left: 0; |
| | width: 100%; |
| | height: 100%; |
| | background-color: rgba(0, 0, 0, 0.7); |
| | display: flex; |
| | align-items: center; |
| | justify-content: center; |
| | z-index: 1200; |
| | opacity: 0; |
| | visibility: hidden; |
| | transition: opacity 0.2s, visibility 0.2s; |
| | } |
| |
|
| | .share-modal-overlay.visible { |
| | opacity: 1; |
| | visibility: visible; |
| | } |
| |
|
| | .share-modal-content { |
| | background-color: var(--bg-secondary); |
| | border-radius: 12px; |
| | width: 90%; |
| | max-width: 480px; |
| | box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); |
| | transform: translateY(20px); |
| | transition: transform 0.2s; |
| | } |
| |
|
| | .share-modal-overlay.visible .share-modal-content { |
| | transform: translateY(0); |
| | } |
| |
|
| | .share-modal-header { |
| | display: flex; |
| | justify-content: space-between; |
| | align-items: center; |
| | padding: 16px 20px; |
| | border-bottom: 1px solid var(--border-color); |
| | font-size: 1rem; |
| | font-weight: 600; |
| | color: var(--text-primary); |
| | } |
| |
|
| | .share-modal-close { |
| | background: none; |
| | border: none; |
| | color: var(--text-muted); |
| | cursor: pointer; |
| | padding: 4px; |
| | border-radius: 4px; |
| | display: flex; |
| | align-items: center; |
| | } |
| |
|
| | .share-modal-close:hover { |
| | color: var(--text-primary); |
| | background-color: var(--bg-tertiary); |
| | } |
| |
|
| | .share-modal-body { |
| | padding: 20px; |
| | display: flex; |
| | flex-direction: column; |
| | gap: 14px; |
| | } |
| |
|
| | .share-url-row { |
| | display: flex; |
| | gap: 8px; |
| | } |
| |
|
| | #share-url-input { |
| | flex: 1; |
| | padding: 10px 12px; |
| | background-color: var(--bg-tertiary); |
| | border: 1px solid var(--border-color); |
| | border-radius: 8px; |
| | color: var(--text-primary); |
| | font-size: 0.85rem; |
| | font-family: 'SF Mono', Monaco, monospace; |
| | outline: none; |
| | min-width: 0; |
| | } |
| |
|
| | #share-url-input:focus { |
| | border-color: var(--accent); |
| | } |
| |
|
| | .share-action-btn { |
| | display: inline-flex; |
| | align-items: center; |
| | gap: 8px; |
| | padding: 10px 16px; |
| | border: 1px solid var(--border-color); |
| | border-radius: 8px; |
| | background-color: var(--bg-tertiary); |
| | color: var(--text-secondary); |
| | font-size: 0.85rem; |
| | cursor: pointer; |
| | transition: all 0.15s; |
| | white-space: nowrap; |
| | } |
| |
|
| | .share-copy-btn:hover { |
| | background-color: var(--accent); |
| | border-color: var(--accent); |
| | color: white; |
| | } |
| |
|
| | .share-copy-btn.copied { |
| | background-color: var(--success); |
| | border-color: var(--success); |
| | color: white; |
| | } |
| |
|
| | .share-social-row { |
| | display: flex; |
| | gap: 8px; |
| | } |
| |
|
| | .share-x-btn { |
| | flex: 1; |
| | justify-content: center; |
| | } |
| |
|
| | .share-x-btn:hover { |
| | background-color: #000; |
| | border-color: #555; |
| | color: white; |
| | } |
| |
|
| | |
| | .pdf-modal-overlay { |
| | position: fixed; |
| | top: 0; |
| | left: 0; |
| | width: 100%; |
| | height: 100%; |
| | background-color: rgba(0, 0, 0, 0.85); |
| | display: flex; |
| | align-items: center; |
| | justify-content: center; |
| | z-index: 1100; |
| | opacity: 0; |
| | visibility: hidden; |
| | transition: opacity 0.2s, visibility 0.2s; |
| | } |
| |
|
| | .pdf-modal-overlay.visible { |
| | opacity: 1; |
| | visibility: visible; |
| | } |
| |
|
| | .pdf-modal-content { |
| | background-color: var(--bg-secondary); |
| | border-radius: 12px; |
| | width: 70%; |
| | height: 80vh; |
| | display: flex; |
| | flex-direction: column; |
| | box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6); |
| | transform: scale(0.95); |
| | transition: transform 0.2s, width 0.3s, height 0.3s; |
| | } |
| |
|
| | .pdf-modal-overlay.visible .pdf-modal-content { |
| | transform: scale(1); |
| | } |
| |
|
| | .pdf-modal-content.expanded { |
| | width: 95%; |
| | height: 95vh; |
| | } |
| |
|
| | .pdf-modal-content:fullscreen { |
| | width: 100%; |
| | height: 100%; |
| | border-radius: 0; |
| | } |
| |
|
| | .pdf-modal-header { |
| | display: flex; |
| | justify-content: space-between; |
| | align-items: center; |
| | padding: 12px 20px; |
| | border-bottom: 1px solid var(--border-color); |
| | background-color: var(--bg-tertiary); |
| | border-radius: 12px 12px 0 0; |
| | } |
| |
|
| | .pdf-modal-content:fullscreen .pdf-modal-header { |
| | border-radius: 0; |
| | } |
| |
|
| | .pdf-modal-title { |
| | font-size: 1rem; |
| | font-weight: 500; |
| | color: var(--text-primary); |
| | overflow: hidden; |
| | text-overflow: ellipsis; |
| | white-space: nowrap; |
| | flex: 1; |
| | margin-right: 15px; |
| | } |
| |
|
| | .pdf-modal-controls { |
| | display: flex; |
| | gap: 8px; |
| | } |
| |
|
| | .pdf-control-btn { |
| | background: none; |
| | border: 1px solid var(--border-color); |
| | border-radius: 6px; |
| | padding: 6px 8px; |
| | cursor: pointer; |
| | color: var(--text-muted); |
| | transition: all 0.15s; |
| | display: flex; |
| | align-items: center; |
| | justify-content: center; |
| | } |
| |
|
| | .pdf-control-btn:hover { |
| | background-color: var(--bg-secondary); |
| | border-color: var(--accent); |
| | color: var(--accent); |
| | } |
| |
|
| | .pdf-control-btn svg { |
| | width: 18px; |
| | height: 18px; |
| | } |
| |
|
| | .pdf-close-btn:hover { |
| | background-color: rgba(233, 78, 78, 0.2); |
| | border-color: #e94e4e; |
| | color: #e94e4e; |
| | } |
| |
|
| | .pdf-modal-body { |
| | flex: 1; |
| | overflow: hidden; |
| | border-radius: 0 0 12px 12px; |
| | } |
| |
|
| | .pdf-modal-content:fullscreen .pdf-modal-body { |
| | border-radius: 0; |
| | } |
| |
|
| | #pdf-iframe { |
| | width: 100%; |
| | height: 100%; |
| | border: none; |
| | background-color: #525659; |
| | } |
| |
|
| | |
| | |
| | |
| |
|
| | |
| | .sidebar-mode { |
| | width: 100%; |
| | display: flex; |
| | flex-direction: column; |
| | flex: 1; |
| | } |
| |
|
| | |
| | #prompt-sidebar { |
| | display: flex; |
| | flex-direction: column; |
| | gap: 12px; |
| | overflow-y: auto; |
| | padding-bottom: 20px; |
| | } |
| |
|
| |
|
| | .prompt-sidebar-title { |
| | font-size: 1.1rem; |
| | color: var(--accent); |
| | margin: 10px 0; |
| | } |
| |
|
| | |
| | .prompt-field { |
| | margin-bottom: 12px; |
| | } |
| |
|
| | .prompt-field label { |
| | display: block; |
| | font-size: 0.85rem; |
| | color: var(--text-secondary); |
| | margin-bottom: 6px; |
| | } |
| |
|
| | .prompt-field input[type="text"], |
| | .prompt-field textarea, |
| | .prompt-field select { |
| | width: 100%; |
| | padding: 8px 10px; |
| | background: var(--bg-tertiary); |
| | border: 1px solid var(--border-color); |
| | border-radius: 6px; |
| | color: var(--text-primary); |
| | font-size: 0.85rem; |
| | font-family: inherit; |
| | transition: border-color 0.2s; |
| | } |
| |
|
| | .prompt-field input:focus, |
| | .prompt-field textarea:focus, |
| | .prompt-field select:focus { |
| | outline: none; |
| | border-color: var(--accent); |
| | } |
| |
|
| | .prompt-field textarea { |
| | resize: vertical; |
| | min-height: 50px; |
| | } |
| |
|
| | .prompt-field input[type="checkbox"] { |
| | accent-color: var(--accent); |
| | } |
| |
|
| | |
| | .prompt-type-toggle { |
| | display: grid; |
| | grid-template-columns: repeat(2, 1fr); |
| | gap: 8px; |
| | margin-bottom: 10px; |
| | } |
| |
|
| | .prompt-type-toggle input[type="radio"] { |
| | display: none; |
| | } |
| |
|
| | .prompt-type-toggle label { |
| | padding: 8px 12px; |
| | background: var(--bg-tertiary); |
| | border: 1px solid var(--border-color); |
| | border-radius: 6px; |
| | text-align: center; |
| | cursor: pointer; |
| | transition: all 0.2s; |
| | font-size: 0.85rem; |
| | color: var(--text-secondary); |
| | } |
| |
|
| | .prompt-type-toggle label:hover { |
| | background: var(--bg-primary); |
| | border-color: var(--accent); |
| | } |
| |
|
| | .prompt-type-toggle input[type="radio"]:checked + label { |
| | background: var(--accent); |
| | color: white; |
| | border-color: var(--accent); |
| | } |
| |
|
| | |
| | .prompt-actions { |
| | display: flex; |
| | flex-direction: column; |
| | gap: 8px; |
| | margin-top: 15px; |
| | } |
| |
|
| | .btn-generate-prompt, |
| | .btn-save-template { |
| | width: 100%; |
| | padding: 10px 12px; |
| | border-radius: 6px; |
| | font-size: 0.9rem; |
| | font-weight: 500; |
| | cursor: pointer; |
| | transition: all 0.2s; |
| | border: none; |
| | } |
| |
|
| | .btn-generate-prompt { |
| | background: var(--accent); |
| | color: white; |
| | } |
| |
|
| | .btn-generate-prompt:hover:not(:disabled) { |
| | background: var(--accent-hover); |
| | } |
| |
|
| | .btn-generate-prompt:disabled { |
| | opacity: 0.6; |
| | cursor: not-allowed; |
| | } |
| |
|
| | .btn-save-template { |
| | background: transparent; |
| | color: var(--text-secondary); |
| | border: 1px solid var(--border-color); |
| | } |
| |
|
| | .btn-save-template:hover { |
| | background: var(--bg-tertiary); |
| | border-color: var(--accent); |
| | color: var(--accent); |
| | } |
| |
|
| | |
| | .mode-content { |
| | width: 100%; |
| | height: 100%; |
| | display: flex; |
| | flex-direction: column; |
| | } |
| |
|
| | #prompt-content { |
| | overflow-y: auto; |
| | } |
| |
|
| | .prompt-view { |
| | display: flex; |
| | flex-direction: column; |
| | gap: 25px; |
| | padding: 20px; |
| | max-width: 1000px; |
| | margin: 0 auto; |
| | } |
| |
|
| | .prompt-source-section, |
| | .prompt-output-section { |
| | background: var(--bg-secondary); |
| | border: 1px solid var(--border-color); |
| | border-radius: 12px; |
| | padding: 20px; |
| | } |
| |
|
| | .prompt-source-section h3, |
| | .prompt-output-section h3 { |
| | font-size: 1rem; |
| | color: var(--text-secondary); |
| | margin-bottom: 12px; |
| | text-transform: uppercase; |
| | letter-spacing: 0.5px; |
| | font-weight: 500; |
| | } |
| |
|
| | .source-answer { |
| | color: var(--text-primary); |
| | line-height: 1.7; |
| | max-height: 250px; |
| | overflow-y: auto; |
| | padding: 10px; |
| | background: var(--bg-primary); |
| | border-radius: 6px; |
| | } |
| |
|
| | .prompt-output-header { |
| | display: flex; |
| | justify-content: space-between; |
| | align-items: center; |
| | margin-bottom: 12px; |
| | } |
| |
|
| | .btn-copy-prompt { |
| | padding: 8px 14px; |
| | background: var(--bg-tertiary); |
| | border: 1px solid var(--border-color); |
| | color: var(--text-secondary); |
| | border-radius: 6px; |
| | cursor: pointer; |
| | font-size: 0.85rem; |
| | transition: all 0.2s; |
| | } |
| |
|
| | .btn-copy-prompt:hover { |
| | background: var(--accent); |
| | color: white; |
| | border-color: var(--accent); |
| | } |
| |
|
| | .btn-copy-prompt.copied { |
| | background: var(--success); |
| | border-color: var(--success); |
| | color: white; |
| | } |
| |
|
| | .prompt-output-text { |
| | background: var(--bg-primary); |
| | padding: 20px; |
| | border-radius: 8px; |
| | color: var(--text-primary); |
| | line-height: 1.8; |
| | min-height: 120px; |
| | font-size: 1rem; |
| | } |
| |
|
| | .prompt-output-text p { |
| | margin: 0; |
| | white-space: pre-wrap; |
| | } |
| |
|
| | .prompt-placeholder { |
| | color: var(--text-muted); |
| | font-style: italic; |
| | text-align: center; |
| | padding: 30px 20px; |
| | } |
| |
|
| | .loading-prompt { |
| | color: var(--accent); |
| | text-align: center; |
| | padding: 30px 20px; |
| | animation: pulse 1.5s ease-in-out infinite; |
| | } |
| |
|
| | @keyframes pulse { |
| | 0%, 100% { opacity: 1; } |
| | 50% { opacity: 0.5; } |
| | } |
| |
|
| | .error-prompt { |
| | color: #e94e4e; |
| | text-align: center; |
| | padding: 30px 20px; |
| | } |
| |
|
| | |
| |
|
| | #prompt-mode-container { |
| | display: flex; |
| | flex-direction: column; |
| | height: 100%; |
| | gap: 20px; |
| | padding: 20px; |
| | } |
| |
|
| | |
| | .selection-tools { |
| | margin-bottom: 15px; |
| | } |
| |
|
| | |
| | .btn-primary, .btn-secondary { |
| | width: 100%; |
| | padding: 10px; |
| | border: none; |
| | border-radius: 6px; |
| | font-size: 0.9rem; |
| | font-weight: 500; |
| | cursor: pointer; |
| | transition: all 0.2s; |
| | } |
| |
|
| | .btn-primary { |
| | background: var(--accent); |
| | color: white; |
| | } |
| |
|
| | .btn-primary:hover { |
| | background: var(--accent-hover); |
| | } |
| |
|
| | .btn-secondary { |
| | background: var(--bg-tertiary); |
| | color: var(--text-primary); |
| | border: 1px solid var(--border-color); |
| | } |
| |
|
| | .btn-secondary:hover { |
| | background: var(--bg-hover); |
| | } |
| |
|
| | #toggle-selection-mode { |
| | width: 100%; |
| | padding: 10px; |
| | border: none; |
| | border-radius: 6px; |
| | background: var(--accent); |
| | color: white; |
| | cursor: pointer; |
| | font-weight: 600; |
| | } |
| |
|
| | #toggle-selection-mode.active { |
| | background: var(--success); |
| | } |
| |
|
| | #current-selection { |
| | margin-top: 15px; |
| | padding: 10px; |
| | background: var(--bg-tertiary); |
| | border-radius: 6px; |
| | border: 1px solid var(--border-color); |
| | } |
| |
|
| | #current-selection h4 { |
| | font-size: 0.9rem; |
| | margin: 0 0 8px 0; |
| | color: var(--text-secondary); |
| | } |
| |
|
| | #selection-preview { |
| | font-size: 0.85rem; |
| | font-style: italic; |
| | margin: 10px 0; |
| | max-height: 60px; |
| | overflow-y: auto; |
| | color: var(--text-primary); |
| | } |
| |
|
| | .selection-actions { |
| | display: flex; |
| | flex-direction: column; |
| | gap: 5px; |
| | } |
| |
|
| | .selection-actions button { |
| | padding: 8px; |
| | border: none; |
| | border-radius: 4px; |
| | background: var(--accent); |
| | color: white; |
| | cursor: pointer; |
| | font-size: 0.85rem; |
| | } |
| |
|
| | .selection-actions button:hover { |
| | background: var(--accent-hover); |
| | } |
| |
|
| | |
| | .shots-list { |
| | flex: 1; |
| | display: flex; |
| | flex-direction: column; |
| | margin-bottom: 15px; |
| | } |
| |
|
| | .shots-list h3 { |
| | margin: 0 0 10px 0; |
| | font-size: 1rem; |
| | } |
| |
|
| | #shots-container { |
| | flex: 1; |
| | overflow-y: auto; |
| | display: flex; |
| | flex-direction: column; |
| | gap: 8px; |
| | margin-bottom: 10px; |
| | max-height: 400px; |
| | } |
| |
|
| | .shot-item { |
| | padding: 10px; |
| | background: var(--bg-tertiary); |
| | border-radius: 6px; |
| | border-left: 3px solid var(--shot-color); |
| | cursor: pointer; |
| | transition: all 0.2s; |
| | } |
| |
|
| | .shot-item:hover { |
| | background: var(--bg-hover); |
| | transform: translateX(3px); |
| | } |
| |
|
| | .shot-item.active { |
| | background: var(--accent); |
| | color: white; |
| | border-left-color: white; |
| | } |
| |
|
| | .shot-item-header { |
| | display: flex; |
| | justify-content: space-between; |
| | align-items: center; |
| | margin-bottom: 5px; |
| | } |
| |
|
| | .shot-item-title { |
| | font-weight: 600; |
| | font-size: 0.95rem; |
| | } |
| |
|
| | .shot-item-preview { |
| | font-size: 0.85rem; |
| | opacity: 0.8; |
| | overflow: hidden; |
| | text-overflow: ellipsis; |
| | white-space: nowrap; |
| | } |
| |
|
| | |
| | .prompt-main { |
| | flex: 1; |
| | display: flex; |
| | flex-direction: column; |
| | gap: 20px; |
| | overflow: hidden; |
| | } |
| |
|
| | |
| | .research-text-container { |
| | flex: 3; |
| | min-height: 100px; |
| | display: flex; |
| | flex-direction: column; |
| | background: var(--bg-secondary); |
| | border-radius: 12px; |
| | overflow: hidden; |
| | transition: flex 0.3s ease; |
| | } |
| |
|
| | .research-text-container.collapsed { |
| | flex: 0 0 50px; |
| | min-height: 50px; |
| | max-height: 50px; |
| | } |
| |
|
| | .research-text-header { |
| | display: flex; |
| | justify-content: space-between; |
| | align-items: center; |
| | padding: 15px 20px; |
| | border-bottom: 1px solid var(--border); |
| | } |
| |
|
| | .research-text-header h3 { |
| | margin: 0; |
| | } |
| |
|
| | .research-text-header button { |
| | padding: 6px 12px; |
| | border: none; |
| | border-radius: 4px; |
| | background: var(--accent); |
| | color: white; |
| | cursor: pointer; |
| | } |
| |
|
| | #research-text-content { |
| | flex: 1; |
| | padding: 20px; |
| | overflow-y: auto; |
| | line-height: 1.8; |
| | user-select: text; |
| | } |
| |
|
| | .research-text-container.collapsed #research-text-content, |
| | .research-text-container.collapsed .color-legend { |
| | display: none; |
| | } |
| |
|
| | .research-text-container.collapsed .research-text-header { |
| | border-bottom: none; |
| | padding: 10px 20px; |
| | } |
| |
|
| | .research-text-container.collapsed .research-text-header h3 { |
| | font-size: 0.9rem; |
| | } |
| |
|
| | |
| | .selectable-text { |
| | position: relative; |
| | } |
| |
|
| | .text-highlight { |
| | background-color: var(--highlight-color); |
| | padding: 2px 0; |
| | border-radius: 3px; |
| | cursor: pointer; |
| | transition: background-color 0.2s; |
| | } |
| |
|
| | .text-highlight:hover { |
| | filter: brightness(1.2); |
| | } |
| |
|
| | |
| | .color-legend { |
| | padding: 10px 20px; |
| | background: var(--bg-primary); |
| | border-top: 1px solid var(--border); |
| | display: flex; |
| | flex-wrap: wrap; |
| | gap: 15px; |
| | } |
| |
|
| | .legend-item { |
| | display: flex; |
| | align-items: center; |
| | gap: 8px; |
| | font-size: 0.85rem; |
| | } |
| |
|
| | .legend-color { |
| | width: 20px; |
| | height: 20px; |
| | border-radius: 4px; |
| | } |
| |
|
| | |
| | .resize-handle { |
| | flex: 0 0 8px; |
| | display: flex; |
| | align-items: center; |
| | justify-content: center; |
| | cursor: ns-resize; |
| | position: relative; |
| | z-index: 10; |
| | transition: opacity 0.3s ease, flex 0.3s ease; |
| | } |
| |
|
| | |
| | .research-text-container.collapsed + .resize-handle { |
| | flex: 0 0 0px; |
| | opacity: 0; |
| | pointer-events: none; |
| | } |
| |
|
| | .resize-handle:hover .resize-handle-bar { |
| | background: var(--accent); |
| | } |
| |
|
| | .resize-handle-bar { |
| | width: 50px; |
| | height: 4px; |
| | background: var(--border-color); |
| | border-radius: 2px; |
| | transition: background 0.2s; |
| | } |
| |
|
| | .resize-handle.dragging .resize-handle-bar { |
| | background: var(--accent); |
| | } |
| |
|
| | |
| | .shot-editor { |
| | flex: 2; |
| | min-height: 200px; |
| | display: flex; |
| | flex-direction: column; |
| | background: var(--bg-secondary); |
| | border-radius: 12px; |
| | overflow: hidden; |
| | transition: flex 0.3s ease; |
| | } |
| |
|
| | |
| | .research-text-container.collapsed ~ .shot-editor { |
| | flex: 1; |
| | } |
| |
|
| | .shot-editor-header { |
| | display: flex; |
| | justify-content: space-between; |
| | align-items: center; |
| | padding: 15px 20px; |
| | border-bottom: 1px solid var(--border); |
| | } |
| |
|
| | .shot-editor-header h3 { |
| | margin: 0; |
| | } |
| |
|
| | .shot-editor-header button { |
| | background: none; |
| | border: none; |
| | font-size: 1.5rem; |
| | cursor: pointer; |
| | color: var(--text-secondary); |
| | } |
| |
|
| | .shot-editor-header button:hover { |
| | color: var(--text-primary); |
| | } |
| |
|
| | .shot-editor-content { |
| | flex: 1; |
| | padding: 20px; |
| | overflow-y: auto; |
| | } |
| |
|
| | .form-group { |
| | margin-bottom: 20px; |
| | } |
| |
|
| | .form-group label { |
| | display: block; |
| | font-weight: 600; |
| | margin-bottom: 8px; |
| | font-size: 0.95rem; |
| | } |
| |
|
| | .form-group input[type="text"], |
| | .form-group input[type="number"], |
| | .form-group select, |
| | .form-group textarea { |
| | width: 100%; |
| | padding: 10px; |
| | border: 1px solid var(--border); |
| | border-radius: 6px; |
| | background: var(--bg-primary); |
| | color: var(--text-primary); |
| | font-size: 0.95rem; |
| | } |
| |
|
| | .form-group textarea { |
| | resize: vertical; |
| | font-family: inherit; |
| | } |
| |
|
| | .form-group input[type="checkbox"] { |
| | margin-right: 8px; |
| | } |
| |
|
| | |
| | #characters-list { |
| | display: flex; |
| | flex-direction: column; |
| | gap: 10px; |
| | margin-bottom: 10px; |
| | } |
| |
|
| | .character-entry { |
| | display: flex; |
| | gap: 10px; |
| | padding: 10px; |
| | background: var(--bg-primary); |
| | border-radius: 6px; |
| | } |
| |
|
| | .character-entry input { |
| | flex: 1; |
| | } |
| |
|
| | .character-entry button { |
| | background: var(--danger); |
| | color: white; |
| | border: none; |
| | border-radius: 4px; |
| | padding: 5px 10px; |
| | cursor: pointer; |
| | } |
| |
|
| | .character-entry button:hover { |
| | opacity: 0.8; |
| | } |
| |
|
| | |
| | .btn-small { |
| | padding: 6px 12px; |
| | font-size: 0.85rem; |
| | border: none; |
| | border-radius: 4px; |
| | background: var(--accent); |
| | color: white; |
| | cursor: pointer; |
| | } |
| |
|
| | .btn-small:hover { |
| | background: var(--accent-hover); |
| | } |
| |
|
| | .shot-editor-actions { |
| | display: flex; |
| | gap: 10px; |
| | margin-top: 20px; |
| | } |
| |
|
| | .shot-editor-actions button { |
| | flex: 1; |
| | padding: 12px; |
| | border: none; |
| | border-radius: 6px; |
| | font-weight: 600; |
| | cursor: pointer; |
| | } |
| |
|
| | .btn-danger { |
| | background: var(--danger); |
| | color: white; |
| | } |
| |
|
| | .btn-danger:hover { |
| | opacity: 0.9; |
| | } |
| |
|
| | |
| | #shot-prompt-preview { |
| | margin-top: 20px; |
| | padding: 15px; |
| | background: var(--bg-primary); |
| | border-radius: 6px; |
| | } |
| |
|
| | #shot-prompt-preview h4 { |
| | margin: 0 0 10px 0; |
| | } |
| |
|
| | #shot-prompt-content { |
| | max-height: 150px; |
| | overflow-y: auto; |
| | background: var(--bg-secondary); |
| | padding: 10px; |
| | border-radius: 4px; |
| | font-size: 0.9rem; |
| | white-space: pre-wrap; |
| | font-family: 'Courier New', monospace; |
| | } |
| |
|
| | #shot-prompt-preview button { |
| | margin-top: 10px; |
| | padding: 8px 16px; |
| | border: none; |
| | border-radius: 4px; |
| | background: var(--accent); |
| | color: white; |
| | cursor: pointer; |
| | } |
| |
|
| | |
| | :root { |
| | --shot-color-1: #3b82f6; |
| | --shot-color-2: #10b981; |
| | --shot-color-3: #f59e0b; |
| | --shot-color-4: #ef4444; |
| | --shot-color-5: #8b5cf6; |
| | --shot-color-6: #ec4899; |
| | --shot-color-7: #14b8a6; |
| | --shot-color-8: #f97316; |
| | --shot-color-9: #6366f1; |
| | --shot-color-10: #84cc16; |
| | } |
| |
|
| | |
| | @media (max-width: 1024px) { |
| | #prompt-mode-container { |
| | flex-direction: column; |
| | } |
| | |
| | .prompt-sidebar { |
| | width: 100%; |
| | } |
| | |
| | .research-text-container, |
| | .shot-editor { |
| | flex: 1 1 auto; |
| | } |
| | } |
| |
|