* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; padding: 20px; color: #333; } .container { max-width: 900px; margin: 0 auto; background: white; border-radius: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); overflow: hidden; } header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 40px 30px; text-align: center; } header h1 { font-size: 2.5em; margin-bottom: 10px; font-weight: 700; } .subtitle { font-size: 1.1em; opacity: 0.9; } .main-content { padding: 40px 30px; } .query-section { margin-bottom: 30px; } .input-group { margin-bottom: 20px; } textarea { width: 100%; padding: 15px; border: 2px solid #e0e0e0; border-radius: 10px; font-size: 16px; font-family: inherit; resize: vertical; transition: border-color 0.3s; } textarea:focus { outline: none; border-color: #667eea; } .submit-btn { width: 100%; padding: 15px 30px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; border-radius: 10px; font-size: 18px; font-weight: 600; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; } .submit-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4); } .submit-btn:disabled { opacity: 0.6; cursor: not-allowed; } .cancel-btn { width: 100%; padding: 10px 20px; background: #f44; color: white; border: none; border-radius: 10px; font-size: 16px; font-weight: 600; cursor: pointer; transition: transform 0.2s; } .cancel-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(244, 68, 68, 0.4); } .answer-section { margin-top: 30px; padding: 30px; background: #f8f9fa; border-radius: 15px; border-left: 4px solid #667eea; margin-bottom: 20px; } .answer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; } .answer-header h2 { color: #667eea; font-size: 1.5em; } .answer-meta { font-size: 0.9em; color: #666; } .answer-content { font-size: 16px; line-height: 1.8; color: #333; } .answer-content p { margin-bottom: 15px; } .answer-content strong { color: #667eea; font-weight: 600; } .answer-content em { font-style: italic; color: #555; } .answer-content ul, .answer-content ol { margin: 15px 0; padding-left: 30px; } .answer-content li { margin-bottom: 8px; line-height: 1.6; } .sources-section { margin-top: 30px; padding-top: 30px; border-top: 2px solid #e0e0e0; } .sources-section h3 { margin-bottom: 15px; color: #667eea; } .source-item { background: white; padding: 15px; margin-bottom: 10px; border-radius: 8px; border-left: 3px solid #764ba2; } .source-path { font-weight: 600; color: #667eea; margin-bottom: 5px; font-size: 0.9em; } .source-content { color: #666; font-size: 0.9em; line-height: 1.6; } .error-section { padding: 20px; background: #fee; border-radius: 10px; border-left: 4px solid #f44; margin-bottom: 20px; } .error-content { color: #c33; font-weight: 500; } .suggestions { margin-top: 40px; } .suggestions h3 { margin-bottom: 15px; color: #667eea; } .suggestion-chips { display: flex; flex-wrap: wrap; gap: 10px; } .chip { padding: 10px 20px; background: #f0f0f0; border: 2px solid #e0e0e0; border-radius: 25px; cursor: pointer; font-size: 14px; transition: all 0.2s; color: #333; } .chip:hover { background: #667eea; color: white; border-color: #667eea; transform: translateY(-2px); } footer { text-align: center; padding: 20px; background: #f8f9fa; color: #666; font-size: 0.9em; } .loading { display: inline-block; width: 20px; height: 20px; border: 3px solid rgba(255, 255, 255, 0.3); border-radius: 50%; border-top-color: white; animation: spin 1s ease-in-out infinite; } @keyframes spin { to { transform: rotate(360deg); } } @media (max-width: 768px) { header h1 { font-size: 2em; } .main-content { padding: 20px; } .answer-section { padding: 20px; } }