~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
Fix hardcoded colors for multi-theme support
LearningCircuitdf6e851babab
diff --git a/src/local_deep_research/web/static/css/help-system.css b/src/local_deep_research/web/static/css/help-system.cssindex 60dcd77d2d..d6b8389d18 100644--- a/src/local_deep_research/web/static/css/help-system.css+++ b/src/local_deep_research/web/static/css/help-system.css@@ -149,7 +149,7 @@--------------------------------------------- */.ldr-help-panel {- background: linear-gradient(135deg, rgba(110, 79, 246, 0.06) 0%, rgba(64, 191, 255, 0.04) 100%);+ background: linear-gradient(135deg, rgba(var(--accent-primary-rgb), 0.06) 0%, rgba(var(--accent-tertiary-rgb), 0.04) 100%);border: 1px solid var(--border-color);border-left: 3px solid var(--accent-primary);border-radius: 10px;@@ -159,7 +159,7 @@}.ldr-help-panel:hover {- border-color: rgba(110, 79, 246, 0.3);+ border-color: rgba(var(--accent-primary-rgb), 0.3);}/* Panel Header - clickable to toggle */@@ -174,7 +174,7 @@}.ldr-help-panel-header:hover {- background-color: rgba(110, 79, 246, 0.08);+ background-color: rgba(var(--accent-primary-rgb), 0.08);}.ldr-help-panel-title {@@ -307,7 +307,7 @@align-items: flex-start;gap: 0.7rem;padding: 0.85rem 1rem;- background: rgba(64, 191, 255, 0.1);+ background: rgba(var(--accent-tertiary-rgb), 0.1);border-radius: 8px;margin-top: 0.75rem;font-size: 0.88rem;@@ -325,7 +325,7 @@/* Warning variant */.ldr-help-tip--warning {- background: rgba(249, 188, 11, 0.1);+ background: rgba(var(--warning-color-rgb), 0.1);}.ldr-help-tip--warning i,@@ -368,7 +368,7 @@/* Card variants */.ldr-help-card--success {- background: rgba(10, 207, 151, 0.1);+ background: rgba(var(--success-color-rgb), 0.1);border-left-color: var(--success-color);}@@ -377,7 +377,7 @@}.ldr-help-card--warning {- background: rgba(249, 188, 11, 0.1);+ background: rgba(var(--warning-color-rgb), 0.1);border-left-color: var(--warning-color);}@@ -386,7 +386,7 @@}.ldr-help-card--neutral {- background: rgba(138, 138, 160, 0.1);+ background: rgba(var(--text-muted-rgb), 0.1);border-left-color: var(--text-muted);}@@ -395,7 +395,7 @@}.ldr-help-card--info {- background: rgba(64, 191, 255, 0.1);+ background: rgba(var(--accent-tertiary-rgb), 0.1);border-left-color: var(--accent-tertiary);}@@ -533,7 +533,7 @@align-items: center;gap: 0.5rem;padding: 0.6rem 0.85rem;- background: rgba(10, 207, 151, 0.08);+ background: rgba(var(--success-color-rgb), 0.08);border-radius: 6px;font-size: 0.82rem;color: var(--text-secondary);diff --git a/src/local_deep_research/web/static/js/collection_create.js b/src/local_deep_research/web/static/js/collection_create.jsindex 2647eb8deb..c52418c916 100644--- a/src/local_deep_research/web/static/js/collection_create.js+++ b/src/local_deep_research/web/static/js/collection_create.js@@ -131,7 +131,7 @@ async function handleCreateCollection(e) {function showCreateResults(data) {const resultsDiv = document.getElementById('create-results');- let html = '<div class="alert" style="background: #d4edda; color: #155724; border: 1px solid #c3e6cb; padding: 1rem; border-radius: 8px; margin-bottom: 1rem;">';+ let html = '<div class="ldr-alert ldr-alert-success" style="padding: 1rem; border-radius: 8px; margin-bottom: 1rem;">';html += '<h4 style="margin: 0 0 0.5rem 0;"><i class="fas fa-check-circle"></i> Collection Created!</h4>';if (data.collection && data.collection.id) {@@ -171,7 +171,7 @@ function showCreateResults(data) {function showError(message) {const resultsDiv = document.getElementById('create-results');const html = `- <div class="alert" style="background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; padding: 1rem; border-radius: 8px; margin-bottom: 1rem;">+ <div class="ldr-alert ldr-alert-danger" style="padding: 1rem; border-radius: 8px; margin-bottom: 1rem;"><h4 style="margin: 0 0 0.5rem 0;"><i class="fas fa-exclamation-triangle"></i> Creation Error</h4><p>${message}</p><div style="margin-top: 1rem;">diff --git a/src/local_deep_research/web/static/js/collection_upload.js b/src/local_deep_research/web/static/js/collection_upload.jsindex e3332591d9..ff3dbdd35c 100644--- a/src/local_deep_research/web/static/js/collection_upload.js+++ b/src/local_deep_research/web/static/js/collection_upload.js@@ -464,26 +464,26 @@ function showBatchedProgress(files, totalBatches) {const totalSizeMB = (totalSize / (1024 * 1024)).toFixed(1);progressDiv.innerHTML = `- <div style="padding: 1.5rem; background: #f8f9fa; border-radius: 8px;">+ <div style="padding: 1.5rem; background: var(--bg-tertiary); border-radius: 8px;"><div style="display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem;">- <h3 style="margin: 0; font-size: 1.1rem; color: #333;">- <i class="fas fa-cloud-upload-alt" style="color: #667eea;"></i>+ <h3 style="margin: 0; font-size: 1.1rem; color: var(--text-primary);">+ <i class="fas fa-cloud-upload-alt" style="color: var(--accent-primary);"></i>Uploading ${totalFiles} Files</h3>- <span id="progress-summary" style="font-weight: 600; color: #667eea;">+ <span id="progress-summary" style="font-weight: 600; color: var(--accent-primary);">0% (0 / ${totalSizeMB} MB)</span></div>- <div style="background: #e9ecef; border-radius: 8px; height: 12px; overflow: hidden; margin-bottom: 1rem;">- <div id="progress-bar-fill" style="background: linear-gradient(90deg, #667eea 0%, #764ba2 100%); height: 100%; width: 0%; transition: width 0.2s ease;"></div>+ <div style="background: var(--bg-secondary); border-radius: 8px; height: 12px; overflow: hidden; margin-bottom: 1rem;">+ <div id="progress-bar-fill" style="background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%); height: 100%; width: 0%; transition: width 0.2s ease;"></div></div>- <div id="progress-details" style="font-size: 0.9rem; color: #6c757d; margin-bottom: 0.5rem; text-align: center;">+ <div id="progress-details" style="font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.5rem; text-align: center;">Preparing batched upload (${totalBatches} batches)...</div>- <div id="batch-info" style="font-size: 0.85rem; color: #667eea; text-align: center;">+ <div id="batch-info" style="font-size: 0.85rem; color: var(--accent-primary); text-align: center;">Batch 1 of ${totalBatches}</div></div>@@ -534,37 +534,37 @@ function showCleanProgress(files) {const totalSizeMB = (totalSize / (1024 * 1024)).toFixed(1);let html = `- <div style="padding: 1.5rem; background: #f8f9fa; border-radius: 8px;">+ <div style="padding: 1.5rem; background: var(--bg-tertiary); border-radius: 8px;"><div style="display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem;">- <h3 style="margin: 0; font-size: 1.1rem; color: #333;">- <i class="fas fa-cloud-upload-alt" style="color: #667eea;"></i>+ <h3 style="margin: 0; font-size: 1.1rem; color: var(--text-primary);">+ <i class="fas fa-cloud-upload-alt" style="color: var(--accent-primary);"></i>Uploading ${totalFiles} Files</h3>- <span id="progress-summary" style="font-weight: 600; color: #667eea;">+ <span id="progress-summary" style="font-weight: 600; color: var(--accent-primary);">0% (0 / ${totalSizeMB} MB)</span></div>- <div style="background: #e9ecef; border-radius: 8px; height: 12px; overflow: hidden; margin-bottom: 1rem;">- <div id="progress-bar-fill" style="background: linear-gradient(90deg, #667eea 0%, #764ba2 100%); height: 100%; width: 0%; transition: width 0.2s ease;"></div>+ <div style="background: var(--bg-secondary); border-radius: 8px; height: 12px; overflow: hidden; margin-bottom: 1rem;">+ <div id="progress-bar-fill" style="background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%); height: 100%; width: 0%; transition: width 0.2s ease;"></div></div>- <div id="progress-details" style="font-size: 0.9rem; color: #6c757d; margin-bottom: 1rem; text-align: center;">+ <div id="progress-details" style="font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; text-align: center;">Starting upload...</div><details style="margin-top: 1rem;">- <summary style="cursor: pointer; color: #667eea; font-weight: 500;">Show file list (${totalFiles} files)</summary>+ <summary style="cursor: pointer; color: var(--accent-primary); font-weight: 500;">Show file list (${totalFiles} files)</summary><div id="file-progress-list" style="max-height: 300px; overflow-y: auto; margin-top: 0.5rem;">`;files.forEach((file, index) => {const fileSize = (file.size / 1024 / 1024).toFixed(2);html += `- <div id="file-${index}" style="display: flex; align-items: center; padding: 0.5rem; background: white; border-radius: 4px; margin-bottom: 0.25rem; border: 1px solid #dee2e6; font-size: 0.85rem;">- <i class="fas fa-file-pdf" style="color: #e74c3c; margin-right: 0.5rem; width: 14px;"></i>+ <div id="file-${index}" style="display: flex; align-items: center; padding: 0.5rem; background: var(--bg-secondary); border-radius: 4px; margin-bottom: 0.25rem; border: 1px solid var(--border-color); font-size: 0.85rem;">+ <i class="fas fa-file-pdf" style="color: var(--error-color); margin-right: 0.5rem; width: 14px;"></i><span style="flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;">${escapeHtml(file.name)}</span>- <span style="color: #6c757d; margin-left: 0.5rem;">${fileSize} MB</span>+ <span style="color: var(--text-muted); margin-left: 0.5rem;">${fileSize} MB</span></div>`;});@@ -614,7 +614,7 @@ function updateProgressComplete(data) {if (progressBarFill) {progressBarFill.style.width = '100%';- progressBarFill.style.background = '#27ae60';+ progressBarFill.style.background = 'var(--success-color)';}// Server returns data.uploaded and data.errors (not uploaded_files/failed_files)@@ -623,11 +623,11 @@ function updateProgressComplete(data) {if (progressSummary) {progressSummary.textContent = `✓ ${successCount} uploaded${failedCount > 0 ? `, ${failedCount} failed` : ''}`;- progressSummary.style.color = failedCount > 0 ? '#f39c12' : '#27ae60';+ progressSummary.style.color = failedCount > 0 ? 'var(--warning-color)' : 'var(--success-color)';}if (progressDetails) {- progressDetails.innerHTML = `<i class="fas fa-check-circle" style="color: #27ae60;"></i> Upload complete!`;+ progressDetails.innerHTML = `<i class="fas fa-check-circle" style="color: var(--success-color);"></i> Upload complete!`;}}@@ -653,32 +653,32 @@ function showUploadResults(data) {const actualNewCount = newUploads.length + addedToCollection.length;const skippedCount = alreadyInCollection.length;- let html = '<div style="padding: 1.5rem; background: #f8f9fa; border-radius: 8px;">';+ let html = '<div style="padding: 1.5rem; background: var(--bg-tertiary); border-radius: 8px;">';// Summary header- html += '<h3 style="margin: 0 0 1rem 0; color: #333;"><i class="fas fa-check-circle" style="color: #28a745;"></i> Upload Complete!</h3>';+ html += '<h3 style="margin: 0 0 1rem 0; color: var(--text-primary);"><i class="fas fa-check-circle" style="color: var(--success-color);"></i> Upload Complete!</h3>';// Stats gridhtml += '<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem; margin-bottom: 1.5rem;">';if (actualNewCount > 0) {- html += `<div style="background: #d4edda; padding: 1rem; border-radius: 8px; text-align: center;">- <div style="font-size: 1.5rem; font-weight: 700; color: #155724;">${actualNewCount}</div>- <div style="font-size: 0.85rem; color: #155724;">New Files Added</div>+ html += `<div class="ldr-alert ldr-alert-success" style="padding: 1rem; border-radius: 8px; text-align: center;">+ <div style="font-size: 1.5rem; font-weight: 700;">${actualNewCount}</div>+ <div style="font-size: 0.85rem;">New Files Added</div></div>`;}if (skippedCount > 0) {- html += `<div style="background: #fff3cd; padding: 1rem; border-radius: 8px; text-align: center;">- <div style="font-size: 1.5rem; font-weight: 700; color: #856404;">${skippedCount}</div>- <div style="font-size: 0.85rem; color: #856404;">Already Existed</div>+ html += `<div class="ldr-alert ldr-alert-warning" style="padding: 1rem; border-radius: 8px; text-align: center;">+ <div style="font-size: 1.5rem; font-weight: 700;">${skippedCount}</div>+ <div style="font-size: 0.85rem;">Already Existed</div></div>`;}if (failedFiles.length > 0) {- html += `<div style="background: #f8d7da; padding: 1rem; border-radius: 8px; text-align: center;">- <div style="font-size: 1.5rem; font-weight: 700; color: #721c24;">${failedFiles.length}</div>- <div style="font-size: 0.85rem; color: #721c24;">Failed</div>+ html += `<div class="ldr-alert ldr-alert-danger" style="padding: 1rem; border-radius: 8px; text-align: center;">+ <div style="font-size: 1.5rem; font-weight: 700;">${failedFiles.length}</div>+ <div style="font-size: 0.85rem;">Failed</div></div>`;}@@ -687,7 +687,7 @@ function showUploadResults(data) {// Details sectionsif (newUploads.length > 0) {html += `<details style="margin-bottom: 0.5rem;">- <summary style="cursor: pointer; color: #28a745; font-weight: 500;">+ <summary style="cursor: pointer; color: var(--success-color); font-weight: 500;">✅ New uploads (${newUploads.length})</summary><ul style="margin: 0.5rem 0 0 1rem; padding: 0; list-style: none;">@@ -698,7 +698,7 @@ function showUploadResults(data) {if (addedToCollection.length > 0) {html += `<details style="margin-bottom: 0.5rem;">- <summary style="cursor: pointer; color: #17a2b8; font-weight: 500;">+ <summary style="cursor: pointer; color: var(--accent-tertiary); font-weight: 500;">📁 Added to collection (already in library) (${addedToCollection.length})</summary><ul style="margin: 0.5rem 0 0 1rem; padding: 0; list-style: none;">@@ -709,7 +709,7 @@ function showUploadResults(data) {if (alreadyInCollection.length > 0) {html += `<details style="margin-bottom: 0.5rem;">- <summary style="cursor: pointer; color: #856404; font-weight: 500;">+ <summary style="cursor: pointer; color: var(--warning-color); font-weight: 500;">⏭️ Skipped - already in collection (${alreadyInCollection.length})</summary><ul style="margin: 0.5rem 0 0 1rem; padding: 0; list-style: none;">@@ -720,11 +720,11 @@ function showUploadResults(data) {if (failedFiles.length > 0) {html += `<details open style="margin-bottom: 0.5rem;">- <summary style="cursor: pointer; color: #dc3545; font-weight: 500;">+ <summary style="cursor: pointer; color: var(--error-color); font-weight: 500;">❌ Failed (${failedFiles.length})</summary><ul style="margin: 0.5rem 0 0 1rem; padding: 0; list-style: none;">- ${failedFiles.map(f => `<li style="padding: 0.25rem 0; color: #721c24;">📄 ${escapeHtml(f.filename)}: ${escapeHtml(f.error)}</li>`).join('')}+ ${failedFiles.map(f => `<li style="padding: 0.25rem 0; color: var(--error-color);">📄 ${escapeHtml(f.filename)}: ${escapeHtml(f.error)}</li>`).join('')}</ul></details>`;}@@ -758,7 +758,7 @@ function showError(message) {}const html = `- <div class="alert" style="background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; padding: 1rem; border-radius: 8px; margin-bottom: 1rem;">+ <div class="ldr-alert ldr-alert-danger" style="padding: 1rem; border-radius: 8px; margin-bottom: 1rem;"><h4 style="margin: 0 0 0.5rem 0;"><i class="fas fa-exclamation-triangle"></i> Upload Error</h4><p>${message}</p></div>diff --git a/src/local_deep_research/web/static/js/followup.js b/src/local_deep_research/web/static/js/followup.jsindex e446dc1388..f4cedbd3a7 100644--- a/src/local_deep_research/web/static/js/followup.js+++ b/src/local_deep_research/web/static/js/followup.js@@ -122,8 +122,7 @@ class FollowUpResearch {z-index: 1040;width: 100vw;height: 100vh;- background-color: #000;- opacity: 0.5;+ background-color: rgba(0, 0, 0, 0.5);}#followUpModal {position: fixed;@@ -148,44 +147,44 @@ class FollowUpResearch {max-width: 800px;}#followUpModal .modal-content {- background: #1a1a1a;- color: #e0e0e0;+ background: var(--bg-secondary);+ color: var(--text-primary);border-radius: 0.5rem;- box-shadow: 0 10px 25px rgba(0,0,0,0.5);- border: 1px solid #333;+ box-shadow: var(--card-shadow);+ border: 1px solid var(--border-color);}#followUpModal .modal-header {- border-bottom: 1px solid #333;+ border-bottom: 1px solid var(--border-color);}#followUpModal .modal-footer {- border-top: 1px solid #333;+ border-top: 1px solid var(--border-color);}#followUpModal .btn-close {filter: invert(1);}#followUpModal .ldr-form-control,#followUpModal .form-select {- background-color: #2a2a2a;- color: #e0e0e0;- border: 1px solid #444;+ background-color: var(--bg-tertiary);+ color: var(--text-primary);+ border: 1px solid var(--border-color);}#followUpModal .ldr-form-control:focus,#followUpModal .form-select:focus {- background-color: #2a2a2a;- color: #e0e0e0;- border-color: #007bff;- box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);+ background-color: var(--bg-tertiary);+ color: var(--text-primary);+ border-color: var(--accent-primary);+ box-shadow: 0 0 0 0.2rem rgba(var(--accent-primary-rgb), 0.25);}#followUpModal .bg-light {- background-color: #2a2a2a !important;+ background-color: var(--bg-tertiary) !important;}#followUpModal .text-muted {- color: #999 !important;+ color: var(--text-muted) !important;}#followUpModal .alert-info {- background-color: #1e3a5f;- border-color: #2d5a8f;- color: #9ec5fe;+ background-color: rgba(var(--accent-tertiary-rgb), 0.1);+ border-color: rgba(var(--accent-tertiary-rgb), 0.3);+ color: var(--accent-tertiary);}</style>`;diff --git a/src/local_deep_research/web/static/js/pdf_upload_handler.js b/src/local_deep_research/web/static/js/pdf_upload_handler.jsindex f25487c782..29fb2edbaf 100644--- a/src/local_deep_research/web/static/js/pdf_upload_handler.js+++ b/src/local_deep_research/web/static/js/pdf_upload_handler.js@@ -382,7 +382,7 @@ class PDFUploadHandler {// Create elements safely (XSS prevention)const container = document.createElement('div');- container.style.cssText = 'display: flex; align-items: center; gap: 8px; color: #007bff;';+ container.style.cssText = 'display: flex; align-items: center; gap: 8px; color: var(--accent-tertiary);';const icon = document.createElement('i');icon.className = 'fas fa-spinner fa-spin';@@ -426,7 +426,7 @@ class PDFUploadHandler {// Create elements safely (XSS prevention)const container = document.createElement('div');- container.style.color = '#28a745';+ container.style.color = 'var(--success-color)';const icon = document.createElement('i');icon.className = 'fas fa-check-circle';@@ -441,7 +441,7 @@ class PDFUploadHandler {if (errors.length > 0) {const br = document.createElement('br');const errorText = document.createElement('small');- errorText.style.color = '#6c757d';+ errorText.style.color = 'var(--text-muted)';errorText.textContent = `Some files had issues: ${errors.join('; ')}`;container.appendChild(br);@@ -472,7 +472,7 @@ class PDFUploadHandler {// Create elements safely (XSS prevention)const container = document.createElement('div');- container.style.color = '#dc3545';+ container.style.color = 'var(--error-color)';const icon = document.createElement('i');icon.className = 'fas fa-exclamation-triangle';diff --git a/src/local_deep_research/web/static/js/research_form.js b/src/local_deep_research/web/static/js/research_form.jsindex 0cf2e0709d..c9a76c6d26 100644--- a/src/local_deep_research/web/static/js/research_form.js+++ b/src/local_deep_research/web/static/js/research_form.js@@ -277,16 +277,12 @@ function displayWarnings(warnings) {}const warningsHtml = warnings.map(warning => {- // Use green styling for recommendations/tips+ // Use success styling for recommendations/tips, warning for othersconst isRecommendation = warning.type === 'searxng_recommendation';- const bgColor = isRecommendation ? '#d4edda' : '#fff3cd';- const borderColor = isRecommendation ? '#c3e6cb' : '#ffeaa7';- const textColor = isRecommendation ? '#155724' : '#856404';+ const alertClass = isRecommendation ? 'ldr-alert-success' : 'ldr-alert-warning';return `- <div class="warning-banner warning-${warning.type}" style="- background: ${bgColor};- border: 1px solid ${borderColor};+ <div class="ldr-alert ${alertClass} warning-banner warning-${warning.type}" style="border-radius: 6px;padding: 12px 16px;margin-bottom: 8px;@@ -296,21 +292,22 @@ function displayWarnings(warnings) {"><span style="font-size: 16px; flex-shrink: 0;">${warning.icon}</span><div style="flex: 1;">- <div style="font-weight: 600; color: ${textColor}; margin-bottom: 4px;">+ <div style="font-weight: 600; margin-bottom: 4px;">${warning.title}</div>- <div style="color: ${textColor}; font-size: 14px; line-height: 1.4;">+ <div style="font-size: 14px; line-height: 1.4;">${warning.message}</div></div><button onclick="dismissWarning('${warning.dismissKey}')" style="background: none;border: none;- color: ${textColor};+ color: inherit;cursor: pointer;padding: 4px;font-size: 16px;flex-shrink: 0;+ opacity: 0.7;">×</button></div>`;diff --git a/src/local_deep_research/web/templates/auth/change_password.html b/src/local_deep_research/web/templates/auth/change_password.htmlindex 8bc0d914fe..7d7dc252a9 100644--- a/src/local_deep_research/web/templates/auth/change_password.html+++ b/src/local_deep_research/web/templates/auth/change_password.html@@ -10,9 +10,11 @@<!-- Load all vendor dependencies and styles through Vite -->{{ vite_asset('js/app.js') }}+ <link rel="stylesheet" href="/static/css/themes.css">+ <link rel="stylesheet" href="/static/css/styles.css"><style>body {- background-color: #f8f9fa;+ background-color: var(--bg-primary);display: flex;align-items: center;justify-content: center;@@ -20,10 +22,10 @@margin: 0;}.ldr-change-password-container {- background: white;+ background: var(--bg-secondary);padding: 2rem;border-radius: 10px;- box-shadow: 0 0 20px rgba(0,0,0,0.1);+ box-shadow: var(--card-shadow);width: 100%;max-width: 450px;}@@ -32,12 +34,12 @@margin-bottom: 2rem;}.ldr-change-password-header h1 {- color: #333;+ color: var(--text-primary);font-size: 1.8rem;margin-bottom: 0.5rem;}.ldr-change-password-header p {- color: #666;+ color: var(--text-muted);margin: 0;}.form-floating {@@ -52,21 +54,23 @@margin-bottom: 1rem;}.ldr-warning-box {- background-color: #e3f2fd;- border-left: 4px solid #2196f3;+ background-color: rgba(var(--accent-tertiary-rgb), 0.1);+ border-left: 4px solid var(--accent-tertiary);padding: 1rem;margin-bottom: 1.5rem;font-size: 0.9rem;+ color: var(--text-primary);}.ldr-warning-box i {- color: #1976d2;+ color: var(--accent-tertiary);}.ldr-process-info {- background-color: #f5f5f5;+ background-color: var(--bg-tertiary);padding: 1rem;border-radius: 5px;margin-bottom: 1.5rem;font-size: 0.85rem;+ color: var(--text-secondary);}.ldr-process-info ul {margin-bottom: 0;@@ -76,7 +80,7 @@text-align: center;margin-top: 1.5rem;padding-top: 1.5rem;- border-top: 1px solid #dee2e6;+ border-top: 1px solid var(--border-color);}.ldr-password-strength {height: 4px;@@ -84,9 +88,9 @@margin-top: 0.5rem;transition: all 0.3s ease;}- .ldr-strength-weak { background-color: #f44336; width: 33%; }- .ldr-strength-medium { background-color: #ff9800; width: 66%; }- .ldr-strength-strong { background-color: #4caf50; width: 100%; }+ .ldr-strength-weak { background-color: var(--error-color); width: 33%; }+ .ldr-strength-medium { background-color: var(--warning-color); width: 66%; }+ .ldr-strength-strong { background-color: var(--success-color); width: 100%; }</style></head><body>diff --git a/src/local_deep_research/web/templates/pages/benchmark.html b/src/local_deep_research/web/templates/pages/benchmark.htmlindex 22e37feb34..b28fe8dc11 100644--- a/src/local_deep_research/web/templates/pages/benchmark.html+++ b/src/local_deep_research/web/templates/pages/benchmark.html@@ -125,10 +125,10 @@.ldr-question-text {font-size: 1rem;line-height: 1.4;- color: #e0e0e0;+ color: var(--text-primary);margin-bottom: 8px;padding: 10px;- background: #2a2a2a;+ background: var(--bg-tertiary);border-radius: 4px;border-left: 4px solid var(--primary-color);}@@ -159,15 +159,15 @@}.ldr-search-count-badge.ldr-critical {- background: #f44336; /* Red for 0-1 results */+ background: var(--error-color); /* Red for 0-1 results */}.ldr-search-count-badge.ldr-warning {- background: #ff9800; /* Orange for 2-4 results */+ background: var(--warning-color); /* Orange for 2-4 results */}.ldr-search-count-badge.ldr-good {- background: #4caf50; /* Green for 5+ results */+ background: var(--success-color); /* Green for 5+ results */}.ldr-processing-status {@@ -179,18 +179,18 @@}.ldr-processing-status.ldr-processing {- background: #ff9800;- color: #ffffff;+ background: var(--warning-color);+ color: var(--bg-primary);}.ldr-processing-status.ldr-completed {- background: #e8f5e8;- color: #2e7d32;+ background: rgba(var(--success-color-rgb), 0.15);+ color: var(--success-color);}.ldr-result-card {- background: #1a1a1a;- border: 1px solid #333;+ background: var(--bg-secondary);+ border: 1px solid var(--border-color);border-radius: 6px;padding: 12px;margin-bottom: 8px;@@ -198,11 +198,11 @@}.ldr-result-card.ldr-correct {- border-left: 4px solid #4caf50;+ border-left: 4px solid var(--success-color);}.ldr-result-card.ldr-incorrect {- border-left: 4px solid #f44336;+ border-left: 4px solid var(--error-color);}.ldr-result-header {@@ -211,7 +211,7 @@align-items: center;margin-bottom: 8px;font-size: 0.85rem;- color: #a0a0a0;+ color: var(--text-muted);}.ldr-result-status {@@ -219,11 +219,11 @@}.ldr-result-status.ldr-correct {- color: #4caf50;+ color: var(--success-color);}.ldr-result-status.ldr-incorrect {- color: #f44336;+ color: var(--error-color);}.ldr-answer-comparison {@@ -239,30 +239,30 @@white-space: pre-wrap;word-break: break-word;min-height: 60px;- color: #e0e0e0 !important;+ color: var(--text-primary) !important;}.ldr-answer-box > div {margin-top: 5px;- color: #e0e0e0 !important;+ color: var(--text-primary) !important;}.ldr-model-answer {- background: #1e2a3a;- border-left: 4px solid #2196f3;- color: #e0e0e0 !important;+ background: rgba(var(--accent-tertiary-rgb), 0.1);+ border-left: 4px solid var(--accent-tertiary);+ color: var(--text-primary) !important;}.ldr-correct-answer {- background: #1e3a1e;- border-left: 4px solid #4caf50;- color: #e0e0e0 !important;+ background: rgba(var(--success-color-rgb), 0.1);+ border-left: 4px solid var(--success-color);+ color: var(--text-primary) !important;}.ldr-answer-label {font-size: 0.75rem;font-weight: 600;- color: #a0a0a0;+ color: var(--text-muted);margin-bottom: 4px;text-transform: uppercase;letter-spacing: 0.5px;@@ -299,12 +299,12 @@/* Better visual hierarchy */.ldr-benchmark-guidelines {- background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);- border: 1px solid #404040;+ background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);+ border: 1px solid var(--border-color);border-left: 4px solid var(--primary-color);border-radius: 8px;margin-bottom: 25px;- box-shadow: 0 2px 8px rgba(0,0,0,0.3);+ box-shadow: var(--card-shadow);}.ldr-guidelines-content {@@ -329,17 +329,17 @@/* Enhanced form sections */.ldr-form-section {- background: #1a1a1a;- border: 1px solid #333;+ background: var(--bg-secondary);+ border: 1px solid var(--border-color);border-radius: 8px;margin-bottom: 20px;overflow: hidden;}.ldr-form-section-header {- background: linear-gradient(90deg, #2a2a2a 0%, #333 100%);+ background: linear-gradient(90deg, var(--bg-tertiary) 0%, var(--border-color) 100%);padding: 15px 20px;- border-bottom: 1px solid #404040;+ border-bottom: 1px solid var(--border-color);}.ldr-form-section-title {@@ -364,8 +364,8 @@}.ldr-dataset-card {- background: #1e1e1e;- border: 2px solid #333;+ background: var(--bg-secondary);+ border: 2px solid var(--border-color);border-radius: 10px;padding: 20px;transition: all 0.3s ease;@@ -379,7 +379,7 @@.ldr-dataset-card.ldr-disabled {opacity: 0.6;- border-color: #555;+ border-color: var(--text-muted);}.ldr-dataset-header {@@ -390,13 +390,13 @@}.ldr-dataset-info h3 {- color: #e0e0e0;+ color: var(--text-primary);margin: 0 0 5px 0;font-size: 1.2rem;}.ldr-dataset-info p {- color: #a0a0a0;+ color: var(--text-muted);margin: 0;font-size: 0.9rem;}@@ -440,11 +440,11 @@/* Enhanced input styling */.ldr-form-control {- background: #2a2a2a;- border: 2px solid #404040;+ background: var(--bg-tertiary);+ border: 2px solid var(--border-color);border-radius: 6px;padding: 10px 12px;- color: #e0e0e0;+ color: var(--text-primary);font-size: 0.95rem;transition: border-color 0.3s, box-shadow 0.3s;}@@ -495,15 +495,15 @@}.ldr-chart-container {- background: #1a1a1a;- border: 1px solid #333;+ background: var(--bg-secondary);+ border: 1px solid var(--border-color);border-radius: 8px;padding: 15px;height: 300px;}.ldr-chart-title {- color: #e0e0e0;+ color: var(--text-primary);font-size: 1rem;font-weight: 600;margin-bottom: 10px;diff --git a/src/local_deep_research/web/templates/pages/context_overflow.html b/src/local_deep_research/web/templates/pages/context_overflow.htmlindex fe0dc299da..cc40fa6a2d 100644--- a/src/local_deep_research/web/templates/pages/context_overflow.html+++ b/src/local_deep_research/web/templates/pages/context_overflow.html@@ -129,15 +129,15 @@}.ldr-truncated-item.critical {- border-left: 4px solid #f44336;+ border-left: 4px solid var(--error-color);}.ldr-truncated-item.warning {- border-left: 4px solid #ff9800;+ border-left: 4px solid var(--warning-color);}.ldr-truncation-badge {- background: #f44336;+ background: var(--error-color);color: white;padding: 2px 8px;border-radius: 12px;@@ -180,7 +180,7 @@.ldr-progress-fill {height: 100%;- background: linear-gradient(90deg, #4CAF50 0%, #FF9800 80%, #f44336 95%);+ background: linear-gradient(90deg, var(--success-color) 0%, var(--warning-color) 80%, var(--error-color) 95%);transition: width 0.3s ease;}@@ -216,8 +216,8 @@}.ldr-warning-banner {- background: rgba(255, 152, 0, 0.1);- border: 1px solid #ff9800;+ background: rgba(var(--warning-color-rgb), 0.1);+ border: 1px solid var(--warning-color);border-radius: 0.5rem;padding: 1rem;margin-bottom: 1.5rem;@@ -227,7 +227,7 @@}.ldr-warning-banner i {- color: #ff9800;+ color: var(--warning-color);font-size: 1.5rem;}diff --git a/src/local_deep_research/web/templates/pages/news-subscription-form.html b/src/local_deep_research/web/templates/pages/news-subscription-form.htmlindex 88fef711ed..18beabaaa1 100644--- a/src/local_deep_research/web/templates/pages/news-subscription-form.html+++ b/src/local_deep_research/web/templates/pages/news-subscription-form.html@@ -7,18 +7,15 @@<link rel="stylesheet" href="/static/css/custom_dropdown.css"><link rel="stylesheet" href="/static/css/news.css"><style>- body {- background-color: #121212 !important;- color: #f5f5f5 !important;- }+ /* Uses theme variables from themes.css - no hardcoded colors */.ldr-subscription-form-container {max-width: 800px;margin: 2rem auto;padding: 0 1rem;}.ldr-form-card {- background-color: #1e1e1e;- border: 1px solid #333;+ background-color: var(--bg-secondary);+ border: 1px solid var(--border-color);border-radius: 8px;padding: 2rem;margin-bottom: 2rem;@@ -33,28 +30,28 @@font-size: 1.2rem;font-weight: 600;margin-bottom: 1rem;- color: #f5f5f5;+ color: var(--text-primary);display: flex;align-items: center;gap: 0.5rem;}.ldr-form-label {- color: #e0e0e0;+ color: var(--text-primary);margin-bottom: 0.5rem;}.ldr-form-control, .form-select {- background-color: #2a2a2a;- border: 1px solid #444;- color: #f5f5f5;+ background-color: var(--bg-tertiary);+ border: 1px solid var(--border-color);+ color: var(--text-primary);}.ldr-form-control:focus, .form-select:focus {- background-color: #2a2a2a;- border-color: #007bff;- color: #f5f5f5;- box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);+ background-color: var(--bg-tertiary);+ border-color: var(--accent-primary);+ color: var(--text-primary);+ box-shadow: 0 0 0 0.2rem rgba(var(--accent-primary-rgb), 0.25);}.ldr-form-text {- color: #999;+ color: var(--text-muted);font-size: 0.875rem;}.ldr-btn-group-actions {@@ -64,8 +61,8 @@margin-top: 2rem;}.ldr-preview-box {- background-color: #2a2a2a;- border: 1px solid #444;+ background-color: var(--bg-tertiary);+ border: 1px solid var(--border-color);border-radius: 4px;padding: 1rem;margin-top: 1rem;