| .chat-container { |
| display: flex; |
| flex-direction: column; |
| height: 100vh; |
| max-width: 800px; |
| margin: auto; |
| font-family: Arial, sans-serif; |
| } |
|
|
| .chat-header { |
| padding: 16px; |
| background-color: #4a90e2; |
| color: white; |
| font-size: 1.5rem; |
| text-align: center; |
| } |
|
|
| .chat-messages { |
| flex: 1; |
| padding: 16px; |
| overflow-y: auto; |
| background-color: #f5f5f5; |
| display: flex; |
| flex-direction: column; |
| gap: 12px; |
| } |
|
|
| .chat-bubble { |
| max-width: 70%; |
| padding: 12px; |
| border-radius: 16px; |
| white-space: pre-wrap; |
| word-wrap: break-word; |
| } |
|
|
| .chat-bubble.user { |
| align-self: flex-end; |
| background-color: #dcf8c6; |
| } |
|
|
| .chat-bubble.ai { |
| align-self: flex-start; |
| background-color: #ffffff; |
| border: 1px solid #ddd; |
| } |
|
|
| .chat-bubble.loading { |
| font-style: italic; |
| opacity: 0.6; |
| } |
|
|
| .chat-input-area { |
| display: flex; |
| padding: 12px; |
| border-top: 1px solid #ccc; |
| background-color: #fff; |
| } |
|
|
| .chat-input-area input { |
| flex: 1; |
| padding: 8px; |
| border: 1px solid #ccc; |
| border-radius: 8px; |
| margin-right: 8px; |
| } |
|
|
| .chat-input-area button { |
| padding: 8px 16px; |
| background-color: #4a90e2; |
| color: white; |
| border: none; |
| border-radius: 8px; |
| cursor: pointer; |
| } |
|
|
| .chat-input-area button:disabled { |
| background-color: #a0c4f2; |
| cursor: not-allowed; |
| } |
|
|
| .back-button { |
| float: right; |
| margin-right: 20px; |
| background-color: #f2f2f2; |
| border: none; |
| padding: 6px 12px; |
| border-radius: 8px; |
| cursor: pointer; |
| font-size: 14px; |
| } |
|
|
| .back-button:hover { |
| background-color: #ddd; |
| } |