:root { --primary: #2563eb; --primary-light: #3b82f6; --primary-dark: #1d4ed8; --danger: #ef4444; --success: #10b981; --warning: #f59e0b; --gray-100: #f3f4f6; --gray-200: #e5e7eb; --gray-300: #d1d5db; --gray-400: #9ca3af; --gray-500: #6b7280; --gray-600: #4b5563; --gray-700: #374151; --gray-800: #1f2937; --gray-900: #111827; --transition: all 0.2s ease; --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05); --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; line-height: 1.6; color: var(--gray-800); background-color: #f8fafc; max-width: 1200px; margin: 0 auto; padding: 2rem; } @media (max-width: 768px) { body { padding: 1rem; } } .tab { overflow: hidden; border: 1px solid #ccc; background-color: #f1f1f1; } .tab button { background-color: inherit; float: left; border: none; outline: none; cursor: pointer; padding: 14px 16px; transition: 0.3s; } .tab button.active { background-color: #ccc; } .tabcontent { display: none; } .container { max-width: 1000px; margin: 0 auto; } .header { margin-bottom: 2.5rem; text-align: center; } .logo { display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; } .logo-icon { width: 40px; height: 40px; background-color: var(--primary); border-radius: 8px; color: white; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.5rem; margin-right: 10px; } h1 { font-size: 2rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.5rem; } h2 { font-size: 1.5rem; font-weight: 600; color: var(--gray-800); margin-bottom: 1.5rem; } p { color: var(--gray-600); margin-bottom: 1rem; } .card { background-color: white; border-radius: 0.75rem; box-shadow: var(--shadow); padding: 2rem; margin-bottom: 2rem; } .form-group { margin-bottom: 1.5rem; } label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--gray-700); } #userInput { width: 100%; padding: 0.75rem; border: 1px solid var(--gray-300); border-radius: 0.5rem; min-height: 150px; font-family: inherit; resize: vertical; transition: var(--transition); } #userProblemDescription { width: 100%; padding: 0.75rem; border: 1px solid var(--gray-300); border-radius: 0.5rem; min-height: 150px; font-family: inherit; resize: vertical; transition: var(--transition); } #userInput:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2); } .btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.625rem 1.25rem; border: none; border-radius: 0.5rem; font-weight: 500; font-size: 0.875rem; cursor: pointer; transition: var(--transition); gap: 0.5rem; } .btn-primary { background-color: var(--primary); color: white; } .btn-primary:hover { background-color: var(--primary-dark); } .btn-secondary { background-color: var(--gray-100); color: var(--gray-700); } .btn-secondary:hover { background-color: var(--gray-200); } .btn-danger { background-color: var(--danger); color: white; } .btn-danger:hover { background-color: #dc2626; } .btn-success { background-color: var(--success); color: white; } .btn-success:hover { background-color: #059669; } .btn-warning { background-color: var(--warning); color: white; } .btn-warning:hover { background-color: #d97706; } .btn-info { background-color: #0dcaf0; color: white; } .btn-info:hover { background-color: #0aa2c0; } .btn-info.disabled { opacity: 0.6; cursor: not-allowed; } .btn-group-insights { background-color: #8e44ad; color: white; } .btn-group-insights:hover { background-color: #7d3c98; } .query-item { background-color: white; border-radius: 0.75rem; box-shadow: var(--shadow); padding: 1.5rem; margin-bottom: 1.5rem; } .query-container { display: flex; margin-bottom: 1rem; align-items: center; gap: 0.5rem; } .query-field { flex-grow: 1; padding: 0.625rem 0.75rem; border: 1px solid var(--gray-300); border-radius: 0.5rem; transition: var(--transition); } .query-field:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2); } .action-button { background-color: hsl(192, 83%, 66%); color: white; padding: 8px 12px; border: none; border-radius: 4px; cursor: pointer; margin-right: 5px; } .delete-button { background-color: #f44336; } .search-button { background-color: #2196F3; } button:hover { opacity: 0.9; } #resultsContainer { margin-top: 20px; display: none; } #queriesContainer { margin-bottom: 15px; } #loadingIndicator { display: none; margin-top: 20px; text-align: center; color: #666; } .button-container { margin-top: 15px; } .results-table { width: 100%; border-collapse: collapse; margin-top: 10px; display: none; } .results-table th, .results-table td { border: 1px solid #ddd; padding: 8px; text-align: left; } .results-table th { background-color: #f2f2f2; } .results-table tr:nth-child(even) { background-color: #f9f9f9; } .results-table tr:hover { background-color: #f1f1f1; } .search-loading { display: none; margin: 10px 0; font-style: italic; color: #666; } .url-link { color: #0066cc; text-decoration: none; word-break: break-all; } .url-link:hover { text-decoration: underline; } .analyze-button { margin-top: 5px; padding: 3px 8px; font-size: 0.8em; } .loading-spinner { border: 4px solid #f3f3f3; border-top: 4px solid #3498db; border-radius: 50%; width: 20px; height: 20px; animation: spin 2s linear infinite; margin: 0 auto; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .score-cell, .justification-cell { max-width: 150px; overflow: hidden; text-overflow: ellipsis; } .score-cell { font-weight: bold; text-align: center; } .floating-buttons { position: fixed; bottom: 2rem; right: 2rem; display: flex; flex-direction: column; gap: 0.75rem; z-index: 100; } .floating-button { padding: 0.75rem; border-radius: 0.5rem; box-shadow: var(--shadow-md); transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: auto; white-space: nowrap; } .floating-button:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); } .loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); display: none; justify-content: center; align-items: center; z-index: 1000; } .loading-content { background-color: white; padding: 2rem; border-radius: 0.75rem; text-align: center; box-shadow: var(--shadow-lg); max-width: 80%; } .loading-content .loading-spinner { width: 40px; height: 40px; border-width: 4px; margin-bottom: 1rem; } .progress-text { font-size: 1rem; margin-top: 0.75rem; color: var(--gray-700); } .button-container { margin-top: 1.5rem; display: flex; justify-content: flex-start; gap: 0.75rem; } /* Add icons for better UX */ .icon { display: inline-block; width: 20px; height: 20px; background-size: contain; background-repeat: no-repeat; background-position: center; } .table-container { margin-top: 1rem; overflow-x: auto; border-radius: 0.5rem; border: 1px solid var(--gray-200); } /* Responsive adjustments */ @media (max-width: 768px) { .query-container { flex-direction: column; align-items: stretch; } .query-container .btn { margin-top: 0.5rem; } .floating-buttons { bottom: 1rem; right: 1rem; } } .search-options { margin-bottom: 20px; text-align: center; } .checkbox-group { display: flex; gap: 15px; margin-top: 5px; justify-content: center; /* This centers the checkboxes horizontally */ } .checkbox-item { display: flex; align-items: center; gap: 5px; } /* Adding styles for insights feature */ .insights-container { margin-top: 10px; border-top: 1px dashed #ccc; padding-top: 10px; } .insights-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } .insights-title { font-weight: bold; color: #333; } .insights-actions { display: flex; gap: 8px; } .insights-button { font-size: 12px; padding: 2px 6px; background-color: #4CAF50; color: white; border: none; border-radius: 3px; cursor: pointer; } .insights-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; } .insight-tag { background-color: #f1f1f1; border: 1px solid #ddd; border-radius: 15px; padding: 4px 12px; font-size: 12px; cursor: pointer; transition: all 0.2s ease; user-select: none; } .insight-tag.selected { background-color: #4CAF50; color: white; border-color: #4CAF50; } /* Styles for problem refinement functionality */ .problem-history { position: relative; margin-bottom: 10px; } .problem-history-nav { display: flex; align-items: center; margin-bottom: 5px; } .history-arrow { padding: 2px 8px; background-color: var(--gray-200); border-radius: 3px; cursor: pointer; margin-right: 5px; font-size: 14px; color: var(--gray-700); } .history-arrow:hover { background-color: var(--gray-300); } .history-arrow.disabled { opacity: 0.5; cursor: not-allowed; } .history-status { font-size: 12px; color: var(--gray-600); } .insight-comment-area { margin-top: 10px; width: 100%; } .insight-comment-textarea { width: 100%; padding: 8px; border: 1px solid var(--gray-300); border-radius: 4px; font-size: 14px; resize: vertical; min-height: 60px; } .refined-problem-container { margin-top: 20px; border: 1px solid var(--gray-300); border-radius: 8px; overflow: hidden; } .refined-problem-tabs { display: flex; background-color: var(--gray-100); border-bottom: 1px solid var(--gray-300); } .refined-problem-tab { padding: 10px 15px; cursor: pointer; font-weight: 500; border-right: 1px solid var(--gray-300); } .refined-problem-tab.active { background-color: white; border-bottom: 2px solid var(--primary); } .refined-problem-content { padding: 15px; background-color: white; } .refined-problem { display: none; } .refined-problem.active { display: block; } .refined-problem-title { font-weight: 600; margin-bottom: 10px; color: var(--primary-dark); } .refined-problem-description { line-height: 1.5; } .apply-problem-btn { margin-top: 10px; background-color: var(--primary); color: white; border: none; border-radius: 4px; padding: 5px 10px; cursor: pointer; font-size: 14px; } .apply-problem-btn:hover { background-color: var(--primary-dark); } .enhance-problem-button { background-color: var(--warning); color: white; } .enhance-problem-button:hover { background-color: #d97706; } .enhance-problem-button.disabled { opacity: 0.6; cursor: not-allowed; } /* Accordion styles for collapsible search results */ .accordion-section { margin-bottom: 20px; border: 1px solid var(--gray-300); border-radius: 8px; overflow: hidden; background-color: white; } .accordion-header { background-color: var(--gray-100); padding: 10px 15px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 500; border-bottom: 1px solid var(--gray-300); } .accordion-header:hover { background-color: var(--gray-200); } .accordion-header .toggle-icon { transition: transform 0.3s ease; } .accordion-header.collapsed .toggle-icon { transform: rotate(-90deg); } .accordion-body { transition: max-height 0.5s ease; max-height: none; /* Changed from 2000px to none to allow full height */ overflow: hidden; } .accordion-body.collapsed { max-height: 0; padding: 0; border-top: none; } /* Add padding to accordion content for better readability */ .accordion-content { padding: 15px; } .query-timestamp { font-size: 12px; color: var(--gray-500); margin-left: 10px; } .grouped-insights-container { background-color: white; border-radius: 8px; border: 1px solid var(--gray-300); margin-top: 20px; margin-bottom: 20px; box-shadow: var(--shadow); overflow: hidden; display: none; } .grouped-insights-header { display: flex; justify-content: space-between; padding: 15px; background-color: var(--primary-light); color: white; font-weight: 600; align-items: center; } .grouped-insights-close { cursor: pointer; font-size: 20px; font-weight: bold; margin-left: 8px; } .grouped-insights-content { padding: 0; } .score-group { margin-bottom: 10px; border-bottom: 1px solid var(--gray-300); } .score-group-header { padding: 10px 15px; background-color: var(--gray-100); font-weight: 500; display: flex; justify-content: space-between; border-bottom: 1px solid var(--gray-200); } .score-group-actions { display: flex; gap: 8px; } .score-insights-list { padding: 10px 15px; } .grouped-insight-tag { background-color: #f1f1f1; border: 1px solid #ddd; border-radius: 15px; padding: 4px 12px; font-size: 12px; cursor: pointer; transition: all 0.2s ease; user-select: none; margin: 4px; display: inline-flex; align-items: center; } .grouped-insight-tag.selected { background-color: #4CAF50; color: white; border-color: #4CAF50; } .insight-source { font-size: 9px; background-color: var(--primary-dark); color: white; border-radius: 10px; padding: 1px 6px; margin-left: 5px; display: inline-block; text-decoration: none; } .insight-source:hover { background-color: var(--primary); } .grouped-insights-actions { display: flex; align-items: center; gap: 8px; } /* AI Select Button Styling */ .ai-select-btn { background: linear-gradient(135deg, #4b6cb7, #8e44ad); color: white; border: none; padding: 8px 16px; border-radius: 4px; font-weight: 500; cursor: pointer; display: flex; align-items: center; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); transition: all 0.3s ease; } .ai-select-btn:before { content: "🧠"; margin-right: 6px; font-size: 14px; } .ai-select-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); } .ai-select-btn:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); } .ai-select-btn:disabled { background: linear-gradient(135deg, #a0a0a0, #7a7a7a); cursor: wait; transform: none; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(142, 68, 173, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(142, 68, 173, 0); } 100% { box-shadow: 0 0 0 0 rgba(142, 68, 173, 0); } } .pulse { animation: pulse 2s infinite; } /* Existing styles continue below */ .ai-select-btn { background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%); color: white; font-weight: 600; padding: 6px 12px; border-radius: 6px; border: none; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); display: flex; align-items: center; transition: all 0.3s ease; position: relative; overflow: hidden; } .ai-select-btn::before { content: "🧠"; margin-right: 6px; font-size: 14px; } .ai-select-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%); } .ai-select-btn:active { transform: translateY(1px); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); } /* Add pulsing effect to draw attention */ @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7); } 70% { box-shadow: 0 0 0 6px rgba(139, 92, 246, 0); } 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); } } .ai-select-btn.pulse { animation: pulse 2s infinite; } .prob-desc-container { margin-top: 20px; padding: 15px; background-color: #f9f9f9; border-radius: 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .prob-desc-container { margin-top: 2rem; border-radius: 0.5rem; overflow: hidden; } .prob-desc-list { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1rem; } @media (min-width: 768px) { .prob-desc-list { grid-template-columns: repeat(2, 1fr); } } .prob-desc-card { background-color: white; border: 1px solid var(--gray-300); border-radius: 0.75rem; padding: 1.5rem; box-shadow: var(--shadow-sm); cursor: pointer; transition: var(--transition); } .prob-desc-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-md); } .prob-desc-card.selected { border: 2px solid var(--primary); background-color: rgba(37, 99, 235, 0.05); } .prob-desc-title { font-weight: 600; font-size: 1.125rem; color: var(--gray-800); margin-bottom: 0.5rem; } .prob-desc-description { color: var(--gray-600); margin-bottom: 1rem; font-size: 0.9375rem; } .prob-desc-container h3 { margin-top: 0; color: #333; font-size: 18px; font-weight: 600; margin-bottom: 15px; border-bottom: 1px solid #ddd; padding-bottom: 8px; } .prob-desc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 15px; } .prob-desc-card { background-color: white; border: 1px solid #e0e0e0; border-radius: 6px; padding: 15px; box-shadow: 0 2px 3px rgba(0, 0, 0, 0.05); transition: all 0.3s ease; cursor: pointer; } .prob-desc-card:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); border-color: #ccc; } .prob-desc-card.selected { border: 2px solid #4b6cb7; background-color: rgba(75, 108, 183, 0.05); } .prob-desc-title { font-weight: 600; color: #333; margin-bottom: 10px; font-size: 16px; } .prob-desc-description { color: #555; font-size: 14px; line-height: 1.5; margin-bottom: 12px; } .key-issues-container { margin-top: 20px; padding: 15px; background-color: #f9f9f9; border-radius: 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .key-issues-container { margin-top: 2rem; border-radius: 0.5rem; overflow: hidden; } .key-issues-list { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1rem; } @media (min-width: 768px) { .key-issues-list { grid-template-columns: repeat(2, 1fr); } } .key-issue-card { background-color: white; border: 1px solid var(--gray-300); border-radius: 0.75rem; padding: 1.5rem; box-shadow: var(--shadow-sm); cursor: pointer; transition: var(--transition); } .key-issue-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-md); } .key-issue-card.selected { border: 2px solid var(--primary); background-color: rgba(37, 99, 235, 0.05); } .key-issue-title { font-weight: 600; font-size: 1.125rem; color: var(--gray-800); margin-bottom: 0.5rem; } .key-issue-description { color: var(--gray-600); margin-bottom: 1rem; font-size: 0.9375rem; } .key-issue-challenges { margin: 0.75rem 0; padding-left: 1.5rem; } .key-issue-challenges li { margin-bottom: 0.5rem; font-size: 0.875rem; color: var(--gray-700); } .key-issue-impact { font-size: 0.875rem; color: var(--gray-700); font-style: italic; margin-top: 0.75rem; } .key-issues-container h3 { margin-top: 0; color: #333; font-size: 18px; font-weight: 600; margin-bottom: 15px; border-bottom: 1px solid #ddd; padding-bottom: 8px; } .key-issues-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 15px; } .key-issue-card { background-color: white; border: 1px solid #e0e0e0; border-radius: 6px; padding: 15px; box-shadow: 0 2px 3px rgba(0, 0, 0, 0.05); transition: all 0.3s ease; cursor: pointer; } .key-issue-card:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); border-color: #ccc; } .key-issue-card.selected { border: 2px solid #4b6cb7; background-color: rgba(75, 108, 183, 0.05); } .key-issue-title { font-weight: 600; color: #333; margin-bottom: 10px; font-size: 16px; } .key-issue-description { color: #555; font-size: 14px; line-height: 1.5; margin-bottom: 12px; } .key-issue-challenges { padding-left: 18px; margin: 10px 0; } .key-issue-challenges li { font-size: 13px; color: #666; margin-bottom: 5px; } .key-issue-impact { font-size: 13px; color: #d32f2f; font-style: italic; } /* Accordion Ribbon Styles */ .ribbon-accordion { position: fixed; bottom: 2rem; right: 2rem; z-index: 100; width: 320px; background-color: #fff; border-radius: 0.75rem 0.75rem 0 0; box-shadow: var(--shadow-lg); overflow: hidden; transition: transform 0.3s ease; transform-origin: bottom center; } .ribbon-accordion.collapsed { transform: translateY(calc(100% - 50px)); } .ribbon-header { background-color: #2563eb; color: white; padding: 15px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; } .ribbon-title { font-weight: 600; font-size: 1rem; display: flex; align-items: center; gap: 8px; } .ribbon-icon { font-size: 1.25rem; } .ribbon-toggle { transition: transform 0.3s ease; } .collapsed .ribbon-toggle { transform: rotate(180deg); } .ribbon-content { padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; max-height: 400px; overflow-y: auto; } .auto-run-btn { background: linear-gradient(135deg, #ff9966, #ff5e62); color: white; border: none; border-radius: 0.5rem; padding: 0.75rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.5rem; box-shadow: var(--shadow); transition: all 0.3s ease; position: relative; overflow: hidden; } .auto-run-btn::before { content: "🚀"; font-size: 1.25rem; } .auto-run-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); background: linear-gradient(135deg, #ff5e62, #ff9966); } .auto-run-btn:active { transform: translateY(0); box-shadow: var(--shadow); } /* Progress bar for auto-run */ .progress-bar-container { height: 6px; background-color: #f0f0f0; border-radius: 3px; margin-top: 0.75rem; overflow: hidden; display: none; } .progress-bar { height: 100%; background: linear-gradient(90deg, #8e44ad, #3498db); width: 0%; transition: width 0.3s ease; } .progress-step { font-size: 0.75rem; color: var(--gray-600); margin-top: 0.25rem; display: none; } /* Hide original floating buttons when using ribbon */ .floating-buttons { display: none; }