Spaces:
Runtime error
Runtime error
Download static/css/theme.css from VashuTheGreat2/Multi-Rag: direct link, hf CLI and curl.
- Browser
- Download file 34.5 kB
-
https://huggingface.co/spaces/VashuTheGreat2/Multi-Rag/resolve/main/static/css/theme.css
- Command line
-
hf download hf://spaces/VashuTheGreat2/Multi-Rag/static/css/theme.css
-
curl -L -o theme.css https://huggingface.co/spaces/VashuTheGreat2/Multi-Rag/resolve/main/static/css/theme.css
34.5 kB
/* ==========================================================================
Chai Prep Multi-RAG Theme System
Faithful "Chai & Code" Warm Brownish Palette with Dark/Day Modes
========================================================================== */
:root {
/* Base Font Family */
--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
--font-mono: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
/* Transition Durations */
--transition-fast: 0.15s ease;
--transition-base: 0.25s ease;
--transition-slow: 0.35s ease;
/* Border Radii */
--radius-xs: 4px;
--radius-sm: 6px;
--radius-md: 10px;
--radius-lg: 14px;
--radius-xl: 20px;
--radius-full: 9999px;
/* Layout Constraints */
--sidebar-width: 270px;
--header-height: 60px;
--input-max-width: 820px;
}
/* --------------------------------------------------------------------------
Dark Mode Theme (Default: Rich Black Tea & Amber Palette)
-------------------------------------------------------------------------- */
html[data-theme="dark"], body.theme-dark {
--bg-app: #0e0c0b;
--bg-sidebar: #15110f;
--bg-card: #1b1613;
--bg-surface: #221c18;
--bg-surface-hover: #2d241f;
--bg-input: #1a1512;
--bg-code: #130f0d;
--border-subtle: #2a211c;
--border-main: #382c24;
--border-focus: #b45309;
--text-primary: #f5ede6;
--text-secondary: #a89a8f;
--text-muted: #736559;
--text-inverse: #120e0c;
--accent-chai: #d97706;
--accent-amber: #f59e0b;
--accent-tea: #92400e;
--accent-hover: #b45309;
--accent-glow: rgba(217, 119, 6, 0.2);
--user-avatar-bg: #ef4444; /* Streamlit Red/Coral User Avatar */
--ai-avatar-bg: #f97316; /* Streamlit Orange AI Robot Avatar */
--shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
--shadow-md: 0 4px 12px rgba(0,0,0,0.6);
--shadow-lg: 0 10px 28px rgba(0,0,0,0.7);
--modal-backdrop: rgba(10, 8, 7, 0.82);
}
/* --------------------------------------------------------------------------
Day Mode Theme (Warm Chai Latte & Ivory Cream Palette)
-------------------------------------------------------------------------- */
html[data-theme="light"], body.theme-light {
--bg-app: #fbf8f5;
--bg-sidebar: #f2ebe1;
--bg-card: #ffffff;
--bg-surface: #eae0d2;
--bg-surface-hover: #ded1c0;
--bg-input: #ffffff;
--bg-code: #f4efe9;
--border-subtle: #e5dacb;
--border-main: #d3c4b1;
--border-focus: #b45309;
--text-primary: #291e17;
--text-secondary: #665447;
--text-muted: #8c786a;
--text-inverse: #fcf9f6;
--accent-chai: #b45309;
--accent-amber: #d97706;
--accent-tea: #78350f;
--accent-hover: #92400e;
--accent-glow: rgba(180, 83, 9, 0.16);
--user-avatar-bg: #ef4444; /* Streamlit Red */
--ai-avatar-bg: #f97316; /* Streamlit Orange */
--shadow-sm: 0 1px 3px rgba(41,30,23,0.06);
--shadow-md: 0 4px 14px rgba(41,30,23,0.09);
--shadow-lg: 0 10px 30px rgba(41,30,23,0.12);
--modal-backdrop: rgba(41, 30, 23, 0.6);
}
/* ==========================================================================
Base Styles & Reset
========================================================================== */
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: var(--font-sans);
background-color: var(--bg-app);
color: var(--text-primary);
line-height: 1.55;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
overflow: hidden;
height: 100vh;
width: 100vw;
}
/* ==========================================================================
App Container & Layout
========================================================================== */
.app-container {
display: flex;
height: 100vh;
width: 100vw;
background-color: var(--bg-app);
overflow: hidden;
position: relative;
}
/* ==========================================================================
Left Sidebar
========================================================================== */
.sidebar {
width: var(--sidebar-width);
height: 100%;
background-color: var(--bg-sidebar);
border-right: 1px solid var(--border-subtle);
display: flex;
flex-direction: column;
flex-shrink: 0;
z-index: 40;
transition: transform var(--transition-base);
}
.sidebar-header {
padding: 16px 18px;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid var(--border-subtle);
}
.brand {
display: flex;
align-items: center;
gap: 10px;
user-select: none;
}
.brand-icon {
width: 34px;
height: 34px;
border-radius: var(--radius-sm);
background: linear-gradient(135deg, var(--accent-chai), var(--accent-tea));
color: #ffffff;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 2px 6px var(--accent-glow);
}
.brand-text {
display: flex;
flex-direction: column;
}
.brand-title {
font-size: 15px;
font-weight: 700;
letter-spacing: -0.3px;
color: var(--text-primary);
}
.brand-badge {
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.6px;
color: var(--accent-amber);
}
.mobile-close-btn {
display: none;
}
.sidebar-action {
padding: 14px 16px 8px 16px;
}
.btn-new-chat {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
background-color: var(--bg-surface);
color: var(--text-primary);
border: 1px solid var(--border-main);
padding: 10px 14px;
border-radius: var(--radius-md);
font-size: 13.5px;
font-weight: 600;
cursor: pointer;
transition: all var(--transition-fast);
}
.btn-new-chat:hover {
background-color: var(--bg-surface-hover);
border-color: var(--accent-chai);
color: var(--accent-amber);
box-shadow: 0 2px 8px var(--accent-glow);
}
/* Thread List */
.threads-section {
flex: 1;
overflow-y: auto;
padding: 10px 12px;
scrollbar-width: thin;
scrollbar-color: var(--border-subtle) transparent;
}
.threads-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 6px 8px 10px 8px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--text-muted);
}
.threads-count {
background-color: var(--bg-surface);
padding: 2px 7px;
border-radius: var(--radius-full);
font-size: 10.5px;
border: 1px solid var(--border-subtle);
}
.thread-list {
display: flex;
flex-direction: column;
gap: 4px;
}
.thread-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 8px 10px;
border-radius: var(--radius-sm);
cursor: pointer;
transition: all var(--transition-fast);
color: var(--text-secondary);
border: 1px solid transparent;
user-select: none;
}
.thread-item:hover {
background-color: var(--bg-surface);
color: var(--text-primary);
border-color: var(--border-subtle);
}
.thread-item.active {
background-color: var(--bg-surface);
color: var(--accent-amber);
border-color: var(--border-main);
font-weight: 500;
}
.thread-item-content {
display: flex;
align-items: center;
gap: 8px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
flex: 1;
}
.thread-item-icon {
flex-shrink: 0;
color: var(--text-muted);
}
.thread-item.active .thread-item-icon {
color: var(--accent-chai);
}
.thread-item-title {
overflow: hidden;
text-overflow: ellipsis;
font-size: 13px;
}
.thread-item-delete {
opacity: 0;
background: none;
border: none;
color: var(--text-muted);
cursor: pointer;
padding: 4px;
border-radius: var(--radius-xs);
display: flex;
align-items: center;
justify-content: center;
transition: all var(--transition-fast);
}
.thread-item:hover .thread-item-delete {
opacity: 1;
}
.thread-item-delete:hover {
color: #ef4444;
background-color: rgba(239, 68, 68, 0.12);
}
/* Sidebar Footer */
.sidebar-footer {
padding: 12px 14px;
border-top: 1px solid var(--border-subtle);
display: flex;
flex-direction: column;
gap: 6px;
background-color: var(--bg-sidebar);
}
.sidebar-footer-btn {
display: flex;
align-items: center;
gap: 10px;
padding: 9px 12px;
border-radius: var(--radius-sm);
border: 1px solid transparent;
background: none;
color: var(--text-secondary);
font-size: 13px;
cursor: pointer;
transition: all var(--transition-fast);
width: 100%;
text-align: left;
}
.sidebar-footer-btn:hover {
background-color: var(--bg-surface);
color: var(--text-primary);
border-color: var(--border-subtle);
}
.thread-info-badge {
display: flex;
align-items: center;
gap: 6px;
padding: 6px 10px;
background-color: var(--bg-surface);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-sm);
font-size: 11px;
color: var(--text-muted);
font-family: var(--font-mono);
}
.thread-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background-color: var(--accent-amber);
box-shadow: 0 0 5px var(--accent-amber);
}
/* ==========================================================================
Main Workspace
========================================================================== */
.main-workspace {
flex: 1;
display: flex;
flex-direction: column;
height: 100%;
overflow: hidden;
position: relative;
background-color: var(--bg-app);
}
/* Top Bar */
.top-bar {
height: var(--header-height);
padding: 0 24px;
border-bottom: 1px solid var(--border-subtle);
display: flex;
align-items: center;
justify-content: space-between;
background-color: var(--bg-app);
z-index: 20;
}
.top-bar-left {
display: flex;
align-items: center;
gap: 14px;
}
.mobile-menu-btn {
display: none;
}
.chat-header-info {
display: flex;
align-items: center;
gap: 12px;
}
.chat-title {
font-size: 15px;
font-weight: 600;
color: var(--text-primary);
}
.pipeline-pill {
display: inline-flex;
align-items: center;
gap: 6px;
background-color: var(--bg-surface);
border: 1px solid var(--border-subtle);
padding: 3px 10px;
border-radius: var(--radius-full);
font-size: 11px;
font-weight: 500;
color: var(--accent-amber);
}
.pulsing-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background-color: #22c55e;
box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
animation: pulse 2s infinite ease-in-out;
}
.pulsing-amber-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background-color: var(--accent-amber);
box-shadow: 0 0 8px var(--accent-glow);
animation: pulse 1.6s infinite ease-in-out;
}
@keyframes pulse {
0%, 100% { transform: scale(0.9); opacity: 0.7; }
50% { transform: scale(1.15); opacity: 1; }
}
.top-bar-actions {
display: flex;
align-items: center;
gap: 10px;
}
.model-picker {
display: flex;
align-items: center;
gap: 8px;
color: var(--text-secondary);
font-size: 12px;
}
.model-picker select {
max-width: 230px;
min-width: 170px;
height: 34px;
padding: 0 28px 0 10px;
border: 1px solid var(--border-main);
border-radius: var(--radius-md);
background: var(--bg-surface);
color: var(--text-primary);
font: inherit;
font-size: 12px;
color-scheme: dark;
}
.model-picker optgroup,
.model-picker option {
background: var(--bg-card);
color: var(--text-primary);
}
html[data-theme="light"] .model-picker select,
body.theme-light .model-picker select {
color-scheme: light;
}
.model-picker select:focus-visible {
outline: 2px solid var(--accent-amber);
outline-offset: 2px;
}
/* ==========================================================================
Chat Timeline & Messages
========================================================================== */
.chat-scroll-container {
flex: 1;
overflow-y: auto;
padding: 24px 20px 40px 20px;
display: flex;
flex-direction: column;
align-items: center;
scrollbar-width: thin;
scrollbar-color: var(--border-subtle) transparent;
}
/* Empty State */
.empty-state {
max-width: 680px;
width: 100%;
margin: auto 0;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
padding: 40px 16px;
}
.empty-logo {
margin-bottom: 18px;
}
.empty-cup-icon {
width: 68px;
height: 68px;
border-radius: var(--radius-lg);
background: linear-gradient(135deg, var(--bg-surface), var(--bg-card));
border: 1px solid var(--border-main);
display: flex;
align-items: center;
justify-content: center;
color: var(--accent-amber);
box-shadow: 0 4px 16px var(--accent-glow);
}
.empty-title {
font-size: 26px;
font-weight: 700;
letter-spacing: -0.5px;
margin-bottom: 8px;
color: var(--text-primary);
}
.empty-subtitle {
font-size: 14.5px;
color: var(--text-secondary);
max-width: 520px;
margin-bottom: 32px;
}
.quick-prompts-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px;
width: 100%;
}
.quick-prompt-card {
background-color: var(--bg-card);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
padding: 16px;
text-align: left;
cursor: pointer;
transition: all var(--transition-fast);
display: flex;
flex-direction: column;
gap: 8px;
}
.quick-prompt-card:hover {
border-color: var(--accent-chai);
background-color: var(--bg-surface);
transform: translateY(-2px);
box-shadow: var(--shadow-md);
}
.prompt-icon {
font-size: 20px;
}
.prompt-title {
font-size: 13.5px;
font-weight: 600;
color: var(--text-primary);
}
.prompt-desc {
font-size: 12px;
color: var(--text-muted);
line-height: 1.4;
}
/* Messages Container */
.messages-container {
width: 100%;
max-width: var(--input-max-width);
display: flex;
flex-direction: column;
gap: 24px;
}
.message-row {
display: flex;
gap: 16px;
width: 100%;
}
/* Faithful Streamlit-style Avatars */
.message-avatar {
width: 36px;
height: 36px;
border-radius: var(--radius-md);
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
color: #ffffff;
box-shadow: 0 2px 6px rgba(0,0,0,0.25);
margin-top: 2px;
}
.message-avatar.user-avatar {
background-color: var(--user-avatar-bg); /* Streamlit Coral/Red human */
}
.message-avatar.ai-avatar {
background-color: var(--ai-avatar-bg); /* Streamlit Orange robot */
}
.message-content-wrapper {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 8px;
}
.message-sender {
font-size: 12.5px;
font-weight: 600;
color: var(--text-muted);
}
.message-body {
font-size: 14.5px;
color: var(--text-primary);
line-height: 1.65;
word-break: break-word;
}
.message-row.user .message-body {
background-color: var(--bg-card);
padding: 12px 18px;
border-radius: var(--radius-md);
border: 1px solid var(--border-subtle);
display: inline-block;
max-width: 90%;
align-self: flex-start;
}
/* ==========================================================================
Live Reasoning & Tool Calling UI
========================================================================== */
/* Tool Execution Badge */
.tool-execution-badge {
display: inline-flex;
align-items: center;
gap: 8px;
background-color: var(--bg-surface);
border: 1px solid var(--border-main);
padding: 6px 12px;
border-radius: var(--radius-sm);
font-size: 12px;
font-family: var(--font-mono);
color: var(--accent-amber);
margin-bottom: 6px;
animation: fadeIn 0.2s ease;
}
.tool-execution-badge.completed {
color: var(--text-muted);
border-color: var(--border-subtle);
}
/* Thinking Accordion */
.thinking-accordion {
background-color: var(--bg-surface);
border: 1px solid var(--border-subtle);
border-left: 3px solid var(--accent-chai);
border-radius: var(--radius-sm);
margin-bottom: 12px;
overflow: hidden;
transition: all var(--transition-fast);
}
.thinking-accordion[open] {
border-color: var(--border-main);
border-left-color: var(--accent-amber);
}
.thinking-summary {
display: flex;
align-items: center;
gap: 8px;
padding: 9px 12px;
font-size: 12.5px;
font-weight: 500;
color: var(--text-secondary);
cursor: pointer;
user-select: none;
list-style: none;
background: transparent;
}
.thinking-summary::-webkit-details-marker {
display: none;
}
.thinking-label {
display: flex;
align-items: center;
gap: 6px;
flex: 1;
}
.thinking-timer {
font-size: 11px;
color: var(--text-muted);
font-family: var(--font-mono);
}
.thinking-chevron {
transition: transform var(--transition-fast);
color: var(--text-muted);
}
.thinking-accordion[open] .thinking-chevron {
transform: rotate(90deg);
}
.thinking-content {
padding: 10px 14px 14px 14px;
border-top: 1px solid var(--border-subtle);
font-size: 12.5px;
color: var(--text-secondary);
font-family: var(--font-mono);
white-space: pre-wrap;
line-height: 1.5;
max-height: 280px;
overflow-y: auto;
background-color: var(--bg-code);
}
/* Techstack Pipeline Flow Accordion & Vertical Line Timeline */
.techstack-flow-accordion {
background-color: var(--bg-surface);
border: 1px solid var(--border-subtle);
border-left: 3px solid var(--accent-chai);
border-radius: var(--radius-sm);
margin-bottom: 12px;
overflow: hidden;
transition: all var(--transition-fast);
}
.techstack-flow-accordion[open] {
border-color: var(--border-main);
border-left-color: var(--accent-amber);
}
.techstack-summary {
display: flex;
align-items: center;
gap: 8px;
padding: 9px 12px;
font-size: 12.5px;
font-weight: 500;
color: var(--text-secondary);
cursor: pointer;
user-select: none;
list-style: none;
background: transparent;
}
.techstack-summary::-webkit-details-marker {
display: none;
}
.techstack-label {
display: flex;
align-items: center;
gap: 8px;
flex: 1;
}
.techstack-status-badge {
font-size: 10.5px;
padding: 1px 7px;
border-radius: 10px;
font-weight: 600;
background-color: rgba(245, 158, 11, 0.15);
color: var(--accent-amber);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.techstack-status-badge.completed {
background-color: rgba(16, 185, 129, 0.15);
color: #10b981;
}
.techstack-status-badge.blocked {
background-color: rgba(239, 68, 68, 0.15);
color: #ef4444;
}
.techstack-chevron {
transition: transform var(--transition-fast);
color: var(--text-muted);
}
.techstack-flow-accordion[open] .techstack-chevron {
transform: rotate(90deg);
}
.techstack-content {
padding: 10px 14px 12px 14px;
border-top: 1px solid var(--border-subtle);
background-color: var(--bg-surface-elevated, var(--bg-surface));
}
.techstack-timeline {
position: relative;
padding: 6px 0 6px 26px;
margin-left: 8px;
border-left: 2px solid var(--border-subtle);
}
.techstack-step {
position: relative;
margin-bottom: 14px;
animation: fadeIn 0.2s ease;
}
.techstack-step:last-child {
margin-bottom: 2px;
}
.techstack-step-marker {
position: absolute;
left: -33px;
top: 2px;
width: 12px;
height: 12px;
border-radius: 50%;
background: var(--bg-surface);
border: 2px solid var(--border-subtle);
transition: all 0.25s ease;
}
.techstack-step.running .techstack-step-marker {
border-color: var(--accent-amber);
background: var(--accent-amber);
box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
animation: pulseMarker 1.4s infinite;
}
.techstack-step.completed .techstack-step-marker {
border-color: #10b981;
background: #10b981;
box-shadow: 0 0 5px rgba(16, 185, 129, 0.4);
}
.techstack-step.blocked .techstack-step-marker {
border-color: #ef4444;
background: #ef4444;
box-shadow: 0 0 5px rgba(239, 68, 68, 0.4);
}
@keyframes pulseMarker {
0%, 100% {
transform: scale(1);
opacity: 1;
}
50% {
transform: scale(1.3);
opacity: 0.7;
}
}
.techstack-step-title {
font-size: 12.5px;
font-weight: 600;
color: var(--text-primary);
display: flex;
align-items: center;
gap: 6px;
}
.techstack-step-desc {
font-size: 11.5px;
color: var(--text-muted);
margin-top: 2px;
line-height: 1.4;
}
/* Active streaming cursor */
.streaming-cursor {
display: inline-block;
width: 6px;
height: 15px;
background-color: var(--accent-amber);
margin-left: 3px;
vertical-align: middle;
animation: blink 0.8s infinite;
}
@keyframes blink {
0%, 100% { opacity: 1; }
50% { opacity: 0; }
}
/* ==========================================================================
Markdown Elements Styling
========================================================================== */
.message-body p {
margin-bottom: 12px;
}
.message-body p:last-child {
margin-bottom: 0;
}
.message-body h1, .message-body h2, .message-body h3, .message-body h4 {
margin-top: 18px;
margin-bottom: 10px;
color: var(--text-primary);
font-weight: 600;
}
.message-body ul, .message-body ol {
margin: 10px 0 14px 20px;
}
.message-body li {
margin-bottom: 4px;
}
.message-body blockquote {
border-left: 3px solid var(--accent-chai);
padding-left: 12px;
color: var(--text-secondary);
margin: 12px 0;
font-style: italic;
}
.message-body code:not(pre code) {
background-color: var(--bg-surface);
color: var(--accent-amber);
padding: 2px 6px;
border-radius: var(--radius-xs);
font-size: 13px;
font-family: var(--font-mono);
border: 1px solid var(--border-subtle);
}
.code-block-wrapper {
position: relative;
margin: 14px 0;
border-radius: var(--radius-md);
background-color: var(--bg-code);
border: 1px solid var(--border-subtle);
overflow: hidden;
}
.code-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 6px 14px;
background-color: var(--bg-surface);
border-bottom: 1px solid var(--border-subtle);
font-family: var(--font-mono);
font-size: 11.5px;
color: var(--text-muted);
}
.code-copy-btn {
background: none;
border: none;
color: var(--text-muted);
font-size: 11.5px;
cursor: pointer;
display: flex;
align-items: center;
gap: 4px;
transition: color var(--transition-fast);
}
.code-copy-btn:hover {
color: var(--text-primary);
}
.code-block-wrapper pre {
margin: 0;
padding: 14px 16px;
overflow-x: auto;
font-family: var(--font-mono);
font-size: 13px;
line-height: 1.5;
}
/* ==========================================================================
Input Section
========================================================================== */
.input-section {
padding: 0 20px 24px 20px;
display: flex;
justify-content: center;
width: 100%;
background: linear-gradient(to top, var(--bg-app) 75%, transparent);
}
.input-card {
max-width: var(--input-max-width);
width: 100%;
background-color: var(--bg-input);
border: 1px solid var(--border-main);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-md);
transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
padding: 10px 14px;
display: flex;
flex-direction: column;
gap: 6px;
}
.input-card:focus-within {
border-color: var(--border-focus);
box-shadow: 0 0 0 1px var(--border-focus), var(--shadow-md);
}
.pipeline-status-banner {
display: flex;
align-items: center;
justify-content: space-between;
padding: 4px 6px 6px 6px;
border-bottom: 1px solid var(--border-subtle);
}
.pipeline-status-badge {
display: flex;
align-items: center;
gap: 8px;
font-size: 12px;
color: var(--accent-amber);
font-weight: 500;
}
.stop-btn {
background: none;
border: 1px solid var(--border-subtle);
color: var(--text-secondary);
padding: 3px 8px;
border-radius: var(--radius-xs);
font-size: 11px;
display: flex;
align-items: center;
gap: 4px;
cursor: pointer;
}
.stop-btn:hover {
color: #ef4444;
border-color: #ef4444;
}
.input-box-wrapper {
display: flex;
align-items: flex-end;
gap: 10px;
}
.chat-input {
flex: 1;
background: transparent;
border: none;
color: var(--text-primary);
font-family: var(--font-sans);
font-size: 14.5px;
line-height: 1.5;
resize: none;
outline: none;
max-height: 180px;
min-height: 24px;
padding: 4px 0;
}
.chat-input::placeholder {
color: var(--text-muted);
}
.send-btn {
width: 36px;
height: 36px;
border-radius: var(--radius-md);
border: none;
background: linear-gradient(135deg, var(--accent-chai), var(--accent-tea));
color: #ffffff;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
transition: all var(--transition-fast);
}
.send-btn:hover:not(:disabled) {
background: linear-gradient(135deg, var(--accent-amber), var(--accent-chai));
box-shadow: 0 2px 8px var(--accent-glow);
transform: scale(1.04);
}
.send-btn:disabled {
opacity: 0.45;
cursor: not-allowed;
}
.input-meta {
display: flex;
align-items: center;
gap: 6px;
font-size: 11px;
color: var(--text-muted);
padding-top: 2px;
}
.meta-separator {
opacity: 0.5;
}
/* ==========================================================================
Buttons & General Components
========================================================================== */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 8px 14px;
font-size: 13px;
font-weight: 500;
border-radius: var(--radius-sm);
cursor: pointer;
transition: all var(--transition-fast);
border: 1px solid transparent;
}
.btn-primary {
background: linear-gradient(135deg, var(--accent-chai), var(--accent-tea));
color: #ffffff;
}
.btn-primary:hover:not(:disabled) {
background: linear-gradient(135deg, var(--accent-amber), var(--accent-chai));
box-shadow: 0 2px 10px var(--accent-glow);
}
.btn-primary:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.btn-secondary {
background-color: var(--bg-surface);
color: var(--text-secondary);
border-color: var(--border-main);
}
.btn-secondary:hover {
background-color: var(--bg-surface-hover);
color: var(--text-primary);
}
.btn-outline {
background: transparent;
color: var(--text-secondary);
border-color: var(--border-main);
}
.btn-outline:hover {
background-color: var(--bg-surface);
color: var(--text-primary);
border-color: var(--accent-chai);
}
.btn-sm {
padding: 5px 10px;
font-size: 12px;
}
.icon-btn {
width: 34px;
height: 34px;
border-radius: var(--radius-sm);
background: transparent;
border: 1px solid transparent;
color: var(--text-secondary);
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all var(--transition-fast);
}
.icon-btn:hover {
background-color: var(--bg-surface);
color: var(--text-primary);
border-color: var(--border-subtle);
}
/* ==========================================================================
Document Ingestion Modal
========================================================================== */
.modal-backdrop {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: var(--modal-backdrop);
backdrop-filter: blur(4px);
z-index: 100;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
animation: fadeIn 0.2s ease;
}
.modal-dialog {
background-color: var(--bg-card);
border: 1px solid var(--border-main);
border-radius: var(--radius-lg);
width: 100%;
max-width: 540px;
box-shadow: var(--shadow-lg);
display: flex;
flex-direction: column;
overflow: hidden;
animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes scaleUp {
from { transform: scale(0.96); opacity: 0; }
to { transform: scale(1); opacity: 1; }
}
.modal-header {
padding: 16px 20px;
border-bottom: 1px solid var(--border-subtle);
display: flex;
align-items: center;
justify-content: space-between;
}
.modal-title-group {
display: flex;
align-items: center;
gap: 12px;
}
.modal-icon {
width: 36px;
height: 36px;
border-radius: var(--radius-sm);
background-color: var(--bg-surface);
border: 1px solid var(--border-subtle);
color: var(--accent-amber);
display: flex;
align-items: center;
justify-content: center;
}
.modal-title {
font-size: 16px;
font-weight: 600;
color: var(--text-primary);
}
.modal-subtitle {
font-size: 12.5px;
color: var(--text-muted);
}
.modal-body {
padding: 20px;
display: flex;
flex-direction: column;
gap: 16px;
}
/* Upload Dropzone */
.upload-dropzone {
border: 2px dashed var(--border-main);
border-radius: var(--radius-md);
padding: 32px 20px;
text-align: center;
background-color: var(--bg-surface);
cursor: pointer;
transition: all var(--transition-fast);
}
.upload-dropzone.dragover {
border-color: var(--accent-chai);
background-color: var(--accent-glow);
}
.dropzone-icon {
color: var(--accent-amber);
margin-bottom: 12px;
}
.dropzone-text {
display: flex;
flex-direction: column;
gap: 4px;
margin-bottom: 10px;
}
.dropzone-text .primary-text {
font-size: 14.5px;
font-weight: 600;
color: var(--text-primary);
}
.dropzone-text .secondary-text {
font-size: 12.5px;
color: var(--text-muted);
}
.browse-link {
background: none;
border: none;
color: var(--accent-amber);
text-decoration: underline;
cursor: pointer;
font-size: inherit;
}
.dropzone-formats {
font-size: 11.5px;
color: var(--text-muted);
font-family: var(--font-mono);
}
/* Selected Files */
.selected-files-list {
background-color: var(--bg-surface);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
padding: 12px;
}
.files-list-header {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 12px;
font-weight: 600;
color: var(--text-secondary);
margin-bottom: 8px;
}
.btn-text-danger {
background: none;
border: none;
color: #ef4444;
font-size: 11.5px;
cursor: pointer;
}
.files-items {
display: flex;
flex-direction: column;
gap: 6px;
max-height: 140px;
overflow-y: auto;
}
.file-row {
display: flex;
align-items: center;
justify-content: space-between;
padding: 6px 8px;
background-color: var(--bg-card);
border-radius: var(--radius-xs);
font-size: 12.5px;
border: 1px solid var(--border-subtle);
}
.file-row-name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 320px;
color: var(--text-primary);
}
.file-row-size {
font-size: 11px;
color: var(--text-muted);
font-family: var(--font-mono);
}
/* Progress Bar */
.ingest-progress {
display: flex;
flex-direction: column;
gap: 6px;
}
.progress-info {
display: flex;
justify-content: space-between;
font-size: 12px;
color: var(--accent-amber);
}
.progress-bar-bg {
width: 100%;
height: 6px;
background-color: var(--bg-surface);
border-radius: var(--radius-full);
overflow: hidden;
}
.progress-bar-fill {
height: 100%;
background: linear-gradient(90deg, var(--accent-chai), var(--accent-amber));
border-radius: var(--radius-full);
transition: width var(--transition-base);
}
.progress-bar-fill.indeterminate {
width: 40%;
animation: indeterminate 1.5s infinite ease-in-out;
}
@keyframes indeterminate {
0% { transform: translateX(-100%); }
100% { transform: translateX(300%); }
}
/* Alert Banner */
.ingest-alert {
padding: 10px 14px;
border-radius: var(--radius-sm);
font-size: 12.5px;
display: flex;
align-items: center;
gap: 8px;
}
.ingest-alert.success {
background-color: rgba(34, 197, 94, 0.12);
border: 1px solid rgba(34, 197, 94, 0.3);
color: #4ade80;
}
.ingest-alert.error {
background-color: rgba(239, 68, 68, 0.12);
border: 1px solid rgba(239, 68, 68, 0.3);
color: #f87171;
}
.modal-footer {
padding: 14px 20px;
border-top: 1px solid var(--border-subtle);
display: flex;
justify-content: flex-end;
gap: 10px;
background-color: var(--bg-card);
}
/* ==========================================================================
Responsive Adaptations
========================================================================== */
@media (max-width: 768px) {
.sidebar {
position: fixed;
left: 0;
top: 0;
bottom: 0;
transform: translateX(-100%);
box-shadow: var(--shadow-lg);
}
.sidebar.open {
transform: translateX(0);
}
.mobile-menu-btn {
display: inline-flex;
}
.mobile-close-btn {
display: inline-flex;
}
.quick-prompts-grid {
grid-template-columns: 1fr;
}
.top-bar {
padding: 0 14px;
}
.chat-scroll-container {
padding: 16px 12px 30px 12px;
}
.input-section {
padding: 0 12px 16px 12px;
}
}
/* ==========================================================================
Chai Prep Multi-RAG Theme System
Faithful "Chai & Code" Warm Brownish Palette with Dark/Day Modes
========================================================================== */
:root {
/* Base Font Family */
--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
--font-mono: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
/* Transition Durations */
--transition-fast: 0.15s ease;
--transition-base: 0.25s ease;
--transition-slow: 0.35s ease;
/* Border Radii */
--radius-xs: 4px;
--radius-sm: 6px;
--radius-md: 10px;
--radius-lg: 14px;
--radius-xl: 20px;
--radius-full: 9999px;
/* Layout Constraints */
--sidebar-width: 270px;
--header-height: 60px;
--input-max-width: 820px;
}
/* --------------------------------------------------------------------------
Dark Mode Theme (Default: Rich Black Tea & Amber Palette)
-------------------------------------------------------------------------- */
html[data-theme="dark"], body.theme-dark {
--bg-app: #0e0c0b;
--bg-sidebar: #15110f;
--bg-card: #1b1613;
--bg-surface: #221c18;
--bg-surface-hover: #2d241f;
--bg-input: #1a1512;
--bg-code: #130f0d;
--border-subtle: #2a211c;
--border-main: #382c24;
--border-focus: #b45309;
--text-primary: #f5ede6;
--text-secondary: #a89a8f;
--text-muted: #736559;
--text-inverse: #120e0c;
--accent-chai: #d97706;
--accent-amber: #f59e0b;
--accent-tea: #92400e;
--accent-hover: #b45309;
--accent-glow: rgba(217, 119, 6, 0.2);
--user-avatar-bg: #ef4444; /* Streamlit Red/Coral User Avatar */
--ai-avatar-bg: #f97316; /* Streamlit Orange AI Robot Avatar */
--shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
--shadow-md: 0 4px 12px rgba(0,0,0,0.6);
--shadow-lg: 0 10px 28px rgba(0,0,0,0.7);
--modal-backdrop: rgba(10, 8, 7, 0.82);
}
/* --------------------------------------------------------------------------
Day Mode Theme (Warm Chai Latte & Ivory Cream Palette)
-------------------------------------------------------------------------- */
html[data-theme="light"], body.theme-light {
--bg-app: #fbf8f5;
--bg-sidebar: #f2ebe1;
--bg-card: #ffffff;
--bg-surface: #eae0d2;
--bg-surface-hover: #ded1c0;
--bg-input: #ffffff;
--bg-code: #f4efe9;
--border-subtle: #e5dacb;
--border-main: #d3c4b1;
--border-focus: #b45309;
--text-primary: #291e17;
--text-secondary: #665447;
--text-muted: #8c786a;
--text-inverse: #fcf9f6;
--accent-chai: #b45309;
--accent-amber: #d97706;
--accent-tea: #78350f;
--accent-hover: #92400e;
--accent-glow: rgba(180, 83, 9, 0.16);
--user-avatar-bg: #ef4444; /* Streamlit Red */
--ai-avatar-bg: #f97316; /* Streamlit Orange */
--shadow-sm: 0 1px 3px rgba(41,30,23,0.06);
--shadow-md: 0 4px 14px rgba(41,30,23,0.09);
--shadow-lg: 0 10px 30px rgba(41,30,23,0.12);