| * { |
| margin: 0; |
| padding: 0; |
| box-sizing: border-box; |
| } |
|
|
| body { |
| background: #0f172a; |
| color: white; |
| font-family: Arial, Helvetica, sans-serif; |
| height: 100vh; |
| display: flex; |
| justify-content: center; |
| align-items: center; |
| } |
|
|
| .container { |
| width: 90%; |
| max-width: 900px; |
| height: 90vh; |
| background: #111827; |
| border-radius: 20px; |
| overflow: hidden; |
| display: flex; |
| flex-direction: column; |
| } |
|
|
| .topbar { |
| padding: 20px; |
| background: #1e293b; |
| border-bottom: 1px solid #334155; |
| } |
|
|
| .topbar h1 { |
| font-size: 24px; |
| } |
|
|
| #chat-box { |
| flex: 1; |
| overflow-y: auto; |
| padding: 20px; |
| } |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| .user { |
| background: #2563eb; |
| margin-left: auto; |
| } |
|
|
| .ai { |
| background: #374151; |
| } |
|
|
| .controls { |
| padding: 20px; |
| border-top: 1px solid #334155; |
| } |
|
|
| .text-section { |
| display: flex; |
| gap: 10px; |
| } |
|
|
| #text-input { |
| flex: 1; |
| padding: 14px; |
| border-radius: 12px; |
| border: none; |
| outline: none; |
| background: #1e293b; |
| color: white; |
| font-size: 16px; |
| } |
|
|
| button { |
| padding: 14px 20px; |
| border: none; |
| border-radius: 12px; |
| cursor: pointer; |
| background: #2563eb; |
| color: white; |
| font-size: 16px; |
| } |
|
|
| button:hover { |
| opacity: 0.9; |
| } |
|
|
| .voice-section { |
| margin-top: 15px; |
| } |
|
|
| #mic-btn.recording { |
| background: red; |
| } |
|
|
| .message { |
| max-width: 80%; |
| padding: 12px 14px; |
| margin: 8px 0; |
| border-radius: 12px; |
|
|
| line-height: 1.6; |
| font-size: 15px; |
|
|
| word-wrap: break-word; |
| overflow-wrap: break-word; |
|
|
| white-space: normal; |
| } |
|
|
| .message.ai { |
| background: #2d3748; |
| color: #fff; |
| text-align: left; |
| } |
|
|
| .message.user { |
| background: #4a5568; |
| color: #fff; |
| text-align: left; |
| margin-left: auto; |
| } |
|
|
| .message ul, |
| .message ol { |
| padding-left: 20px; |
| margin: 8px 0; |
| } |
|
|
| .message li { |
| margin-bottom: 6px; |
| } |
|
|
| .message p { |
| margin: 6px 0; |
| } |
|
|
| #chat-box { |
| display: flex; |
| flex-direction: column; |
| padding: 10px; |
| gap: 6px; |
| } |