/* ChatWindow Component Styles */ .chat-window { display: flex; flex-direction: column; height: 100vh; width: 90vw; max-width: 1400px; background-color: #fff; border-radius: 0; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } /* Header */ .chat-header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 20px; border-bottom: 2px solid #5a67d8; } .chat-header h1 { margin: 0; font-size: 24px; font-weight: 600; } .header-info { display: flex; gap: 16px; margin-top: 8px; font-size: 14px; opacity: 0.9; } .status-indicator { display: flex; align-items: center; gap: 6px; font-weight: 500; } .status-indicator.connected { color: #4ade80; } .status-indicator.disconnected { color: #f87171; } .tools-indicator { padding: 4px 10px; background-color: rgba(255, 255, 255, 0.2); border-radius: 12px; font-size: 13px; } /* Messages Container */ .messages-container { flex: 1; overflow-y: auto; padding: 20px; scroll-behavior: smooth; } .messages-container > * { margin-bottom: 12px; } /* Empty State */ .empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; color: #666; } .empty-state h2 { font-size: 28px; color: #333; margin-bottom: 12px; } .empty-state p { font-size: 16px; margin-bottom: 24px; color: #888; } .available-tools { margin-top: 24px; padding: 16px; background-color: #f5f5f5; border-radius: 8px; max-width: 400px; text-align: left; } .available-tools h3 { margin-top: 0; color: #333; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; } .available-tools ul { list-style: none; padding: 0; margin: 0; } .available-tools li { padding: 8px 0; border-bottom: 1px solid #ddd; font-size: 13px; color: #666; } .available-tools li:last-child { border-bottom: none; } .available-tools strong { color: #333; } /* Loading Indicator */ .loading-indicator { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background-color: #e8f4f8; border-left: 4px solid #0ea5e9; border-radius: 4px; color: #0c63e4; font-size: 14px; } .spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid #0ea5e9; border-top-color: transparent; border-radius: 50%; animation: spin 0.6s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* Error Message */ .error-message { display: flex; align-items: center; gap: 12px; margin: 12px 20px 0; padding: 12px 16px; background-color: #fee2e2; border-left: 4px solid #ef4444; border-radius: 4px; color: #991b1b; font-size: 14px; } .error-icon { flex-shrink: 0; font-size: 18px; } .close-error { margin-left: auto; background: none; border: none; color: #991b1b; cursor: pointer; font-size: 20px; padding: 0; line-height: 1; } .close-error:hover { opacity: 0.7; } /* Input Area */ .input-area { padding: 16px 20px; background-color: #f9fafb; border-top: 1px solid #e5e7eb; } .input-wrapper { display: flex; gap: 12px; margin-bottom: 12px; } .message-input { flex: 1; padding: 12px 16px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; font-family: inherit; transition: border-color 0.2s; } .message-input:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } .message-input:disabled { background-color: #f3f4f6; color: #9ca3af; cursor: not-allowed; } .send-button { padding: 12px 24px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; min-width: 80px; } .send-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4); } .send-button:disabled { opacity: 0.5; cursor: not-allowed; } .send-button:active:not(:disabled) { transform: translateY(0); } /* Action Buttons */ .action-buttons { display: flex; gap: 8px; justify-content: flex-end; } .clear-button { padding: 8px 16px; background-color: #f3f4f6; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; cursor: pointer; transition: all 0.2s; color: #374151; } .clear-button:hover:not(:disabled) { background-color: #e5e7eb; border-color: #9ca3af; } .clear-button:disabled { opacity: 0.5; cursor: not-allowed; } /* Scrollbar Styling */ .messages-container::-webkit-scrollbar { width: 8px; } .messages-container::-webkit-scrollbar-track { background: transparent; } .messages-container::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; } .messages-container::-webkit-scrollbar-thumb:hover { background: #9ca3af; } /* Responsive Design */ @media (max-width: 768px) { .chat-window { height: 100%; } .chat-header h1 { font-size: 20px; } .header-info { flex-direction: column; gap: 8px; } .messages-container { padding: 12px; } .input-area { padding: 12px; } .input-wrapper { margin-bottom: 8px; } .action-buttons { flex-direction: column; } .clear-button { width: 100%; } }