| body { | |
| background: #1a1a2e; | |
| color: #eaeaea; | |
| font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | |
| margin: 0; | |
| height: 100vh; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| } | |
| .chat-container { | |
| background: #16213e; | |
| width: 400px; | |
| max-width: 90vw; | |
| height: 600px; | |
| border-radius: 8px; | |
| display: flex; | |
| flex-direction: column; | |
| box-shadow: 0 0 15px rgba(0,0,0,0.7); | |
| } | |
| .chat-box { | |
| flex: 1; | |
| padding: 10px; | |
| overflow-y: auto; | |
| border-bottom: 2px solid #0f3460; | |
| font-size: 14px; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 8px; | |
| } | |
| .message { | |
| padding: 8px 12px; | |
| border-radius: 15px; | |
| max-width: 75%; | |
| word-wrap: break-word; | |
| } | |
| .message.user { | |
| align-self: flex-end; | |
| background-color: #0f3460; | |
| color: #f0f0f0; | |
| } | |
| .message.bot { | |
| align-self: flex-start; | |
| background-color: #53354a; | |
| color: #eaeaea; | |
| } | |
| .input-area { | |
| display: flex; | |
| padding: 10px; | |
| background-color: #0f3460; | |
| border-radius: 0 0 8px 8px; | |
| } | |
| #user-input { | |
| flex: 1; | |
| padding: 10px; | |
| border-radius: 15px; | |
| border: none; | |
| font-size: 14px; | |
| } | |
| #send-button { | |
| margin-left: 10px; | |
| padding: 10px 18px; | |
| background-color: #53354a; | |
| border: none; | |
| color: #eaeaea; | |
| border-radius: 15px; | |
| cursor: pointer; | |
| font-weight: bold; | |
| transition: background-color 0.3s ease; | |
| } | |
| #send-button:hover { | |
| background-color: #6f3d6f; | |
| } | |
| #user-input:focus { | |
| outline: none; | |
| } |