Spaces:
Runtime error
Runtime error
| body { | |
| font-family: Arial, sans-serif; | |
| background-color: #f4f4f9; | |
| margin: 0; | |
| padding: 0; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| height: 100vh; | |
| } | |
| .chat-container { | |
| width: 400px; | |
| background: white; | |
| border-radius: 10px; | |
| box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); | |
| overflow: hidden; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| h1 { | |
| background: #007bff; | |
| color: white; | |
| margin: 0; | |
| padding: 15px; | |
| text-align: center; | |
| font-size: 1.5em; | |
| } | |
| #chat-box { | |
| flex-grow: 1; | |
| padding: 15px; | |
| overflow-y: auto; | |
| max-height: 400px; | |
| } | |
| .message { | |
| margin: 10px 0; | |
| padding: 10px; | |
| border-radius: 5px; | |
| max-width: 80%; | |
| } | |
| .user-message { | |
| background: #007bff; | |
| color: white; | |
| margin-left: auto; | |
| text-align: right; | |
| } | |
| .bot-message { | |
| background: #e9ecef; | |
| color: #333; | |
| margin-right: auto; | |
| } | |
| .bot-error { | |
| background: #f8d7da; | |
| color: #721c24; | |
| margin-right: auto; | |
| } | |
| .input-area { | |
| display: flex; | |
| padding: 10px; | |
| border-top: 1px solid #ddd; | |
| } | |
| #user-input { | |
| flex-grow: 1; | |
| padding: 10px; | |
| border: 1px solid #ddd; | |
| border-radius: 5px; | |
| margin-right: 10px; | |
| } | |
| button { | |
| padding: 10px 15px; | |
| background: #007bff; | |
| color: white; | |
| border: none; | |
| border-radius: 5px; | |
| cursor: pointer; | |
| } | |
| button:hover { | |
| background: #0056b3; | |
| } | |
| .quick-replies { | |
| padding: 10px; | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 10px; | |
| } | |
| .quick-replies button { | |
| background: #6c757d; | |
| padding: 8px 12px; | |
| font-size: 0.9em; | |
| } | |
| .quick-replies button:hover { | |
| background: #5a6268; | |
| } |