Spaces:
Sleeping
Sleeping
| /* ── Base-template overrides ── */ | |
| /* Remove page-wrapper padding so blog can control its own layout */ | |
| .page-wrapper { | |
| padding: 0 ; | |
| display: flex ; | |
| flex: 1 ; | |
| flex-direction: row ; /* Sidebar and Main side-by-side */ | |
| overflow: hidden ; | |
| height: calc(100vh - 60px - 40px) ; /* Adjust if base header/footer heights vary */ | |
| background-color: var(--bg-dark); | |
| } | |
| :root { | |
| --bg-dark: #0f1117; | |
| --sidebar-bg: #161922; | |
| --accent: #6366f1; | |
| --accent-hover: #4f46e5; | |
| --text-primary: #f8fafc; | |
| --text-secondary: #94a3b8; | |
| --glass-bg: rgba(255, 255, 255, 0.03); | |
| --border: rgba(255, 255, 255, 0.1); | |
| --card-bg: #1e293b; | |
| } | |
| /* User styles already exist below, just ensuring main/header names align with HTML edit */ | |
| /* Existing Sidebar Styles */ | |
| aside { | |
| width: 300px; | |
| background-color: var(--sidebar-bg); | |
| border-right: 1px solid var(--border); | |
| display: flex; | |
| flex-direction: column; | |
| padding: 1.5rem; | |
| flex-shrink: 0; | |
| transition: transform 0.3s ease; | |
| } | |
| .logo { | |
| font-size: 1.5rem; | |
| font-weight: 700; | |
| margin-bottom: 2rem; | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| color: var(--accent); | |
| } | |
| .new-chat-btn { | |
| background: var(--accent); | |
| color: white; | |
| border: none; | |
| padding: 0.8rem; | |
| border-radius: 0.5rem; | |
| cursor: pointer; | |
| font-weight: 600; | |
| margin-bottom: 1.5rem; | |
| transition: all 0.2s; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 0.5rem; | |
| } | |
| .new-chat-btn:hover { | |
| background: var(--accent-hover); | |
| transform: translateY(-1px); | |
| } | |
| .history-list { | |
| flex: 1; | |
| overflow-y: auto; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.5rem; | |
| } | |
| .history-item { | |
| padding: 0.75rem; | |
| border-radius: 0.4rem; | |
| cursor: pointer; | |
| transition: background 0.2s; | |
| font-size: 0.9rem; | |
| color: var(--text-secondary); | |
| white-space: nowrap; | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| border: 1px solid transparent; | |
| } | |
| .history-item:hover { | |
| background: var(--glass-bg); | |
| color: var(--text-primary); | |
| border-color: var(--border); | |
| } | |
| .history-item.active { | |
| background: rgba(99, 102, 241, 0.15); | |
| color: var(--accent); | |
| border-color: rgba(99, 102, 241, 0.3); | |
| } | |
| /* Main Content Styles */ | |
| main { | |
| flex: 1; | |
| display: flex; | |
| flex-direction: column; | |
| position: relative; | |
| background: radial-gradient( | |
| circle at bottom right, | |
| rgba(99, 102, 241, 0.05), | |
| transparent | |
| ); | |
| } | |
| header { | |
| height: 60px; | |
| border-bottom: 1px solid var(--border); | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| padding: 0 2rem; | |
| background: rgba(15, 17, 23, 0.8); | |
| backdrop-filter: blur(8px); | |
| z-index: 10; | |
| } | |
| .blog-actions { | |
| display: flex; | |
| gap: 1rem; | |
| } | |
| .btn-icon { | |
| background: transparent; | |
| border: 1px solid var(--border); | |
| color: var(--text-secondary); | |
| padding: 0.5rem; | |
| border-radius: 0.4rem; | |
| cursor: pointer; | |
| display: flex; | |
| align-items: center; | |
| gap: 0.4rem; | |
| font-weight: 500; | |
| transition: all 0.2s; | |
| } | |
| .btn-icon:hover:not(:disabled) { | |
| background: var(--glass-bg); | |
| color: var(--text-primary); | |
| border-color: var(--text-secondary); | |
| } | |
| .btn-delete:hover:not(:disabled) { | |
| background: rgba(239, 68, 68, 0.1); | |
| color: #ef4444; | |
| border-color: rgba(239, 68, 68, 0.3); | |
| } | |
| /* Chat/Content Area */ | |
| #content-area { | |
| flex: 1; | |
| overflow-y: auto; | |
| padding: 2rem; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| } | |
| .welcome-screen { | |
| height: 100%; | |
| display: flex; | |
| flex-direction: column; | |
| justify-content: center; | |
| align-items: center; | |
| text-align: center; | |
| max-width: 600px; | |
| } | |
| .welcome-screen h1 { | |
| font-size: 2.5rem; | |
| margin-bottom: 1rem; | |
| background: linear-gradient(to right, #818cf8, #6366f1); | |
| -webkit-background-clip: text; | |
| background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| } | |
| .welcome-screen p { | |
| color: var(--text-secondary); | |
| font-size: 1.1rem; | |
| line-height: 1.6; | |
| } | |
| /* Markdown Display */ | |
| .markdown-body { | |
| width: 100%; | |
| max-width: 1000px; | |
| color: var(--text-primary); | |
| line-height: 1.7; | |
| display: none; | |
| } | |
| .markdown-body h1, | |
| .markdown-body h2, | |
| .markdown-body h3 { | |
| margin-top: 2rem; | |
| margin-bottom: 1rem; | |
| color: white; | |
| } | |
| .markdown-body p { | |
| margin-bottom: 1rem; | |
| } | |
| .markdown-body img { | |
| max-width: 100%; | |
| border-radius: 0.8rem; | |
| margin: 2rem 0; | |
| box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); | |
| } | |
| .markdown-body pre { | |
| background: #1e1e1e; | |
| padding: 1.5rem; | |
| border-radius: 0.8rem; | |
| overflow-x: auto; | |
| margin-bottom: 1.5rem; | |
| border: 1px solid var(--border); | |
| } | |
| /* Pipeline Progression (Console) */ | |
| #pipeline-status { | |
| width: 100%; | |
| max-width: 1000px; | |
| background: #000; | |
| color: #10b981; | |
| font-family: "Courier New", Courier, monospace; | |
| padding: 1.5rem; | |
| border-radius: 0.8rem; | |
| margin-bottom: 2rem; | |
| font-size: 0.9rem; | |
| display: none; | |
| border: 1px solid #10b98133; | |
| max-height: 400px; | |
| overflow-y: auto; | |
| box-shadow: 0 0 20px rgba(16, 185, 129, 0.1); | |
| } | |
| .status-line { | |
| margin-bottom: 0.5rem; | |
| animation: fadeIn 0.3s ease-out; | |
| } | |
| @keyframes fadeIn { | |
| from { | |
| opacity: 0; | |
| transform: translateY(5px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |
| /* Input Area at the bottom */ | |
| .input-container { | |
| padding: 2rem; | |
| width: 100%; | |
| display: flex; | |
| justify-content: center; | |
| } | |
| .input-wrapper { | |
| max-width: 1000px; | |
| width: 100%; | |
| position: relative; | |
| background: var(--glass-bg); | |
| border: 1px solid var(--border); | |
| border-radius: 1rem; | |
| padding: 0.5rem; | |
| display: flex; | |
| align-items: center; | |
| transition: all 0.3s; | |
| } | |
| .input-wrapper:focus-within { | |
| border-color: var(--accent); | |
| background: rgba(255, 255, 255, 0.05); | |
| box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1); | |
| } | |
| input { | |
| flex: 1; | |
| background: transparent; | |
| border: none; | |
| color: white; | |
| padding: 0.75rem 1rem; | |
| outline: none; | |
| font-size: 1rem; | |
| } | |
| .send-btn { | |
| background: var(--accent); | |
| color: white; | |
| border: none; | |
| width: 40px; | |
| height: 40px; | |
| border-radius: 0.5rem; | |
| cursor: pointer; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| transition: all 0.2s; | |
| } | |
| .send-btn:hover { | |
| background: var(--accent-hover); | |
| } | |
| .send-btn:disabled { | |
| background: var(--text-secondary); | |
| cursor: not-allowed; | |
| opacity: 0.5; | |
| } | |
| /* Loading Spinner */ | |
| .spinner { | |
| width: 20px; | |
| height: 20px; | |
| border: 2px solid rgba(255, 255, 255, 0.3); | |
| border-radius: 50%; | |
| border-top-color: white; | |
| animation: spin 0.8s linear infinite; | |
| } | |
| @keyframes spin { | |
| to { | |
| transform: rotate(360deg); | |
| } | |
| } | |