| .chat_box { |
| background: var(--bg-color); |
| width: 100%; |
| max-width: 450px; |
| max-height: 900px; |
| display: flex; |
| height: 100vh; |
| flex-direction: column; |
| box-shadow: 0 8px 16px var(--shadow-color); |
| } |
|
|
| .chat-area { |
| flex: 1; |
| padding: 10px; |
| overflow-y: auto; |
| display: flex; |
| flex-direction: column; |
| gap: 10px; |
| } |
|
|
| .chat-message { |
| display: flex; |
| flex-direction: column; |
| max-width: 70%; |
| } |
|
|
| .chat-message.sent { |
| align-self: flex-end; |
| text-align: right; |
| } |
|
|
| .chat-message.received { |
| align-self: flex-start; |
| text-align: left; |
| } |
|
|
| .message-text { |
| background-color: var(--menu-bg); |
| color: var(--text-color); |
| padding: 10px 15px; |
| border-radius: 10px; |
| word-wrap: break-word; |
| line-height: 1.5; |
| text-align: left; |
| } |
|
|
| .timestamp { |
| font-size: 12px; |
| color: var(--timestamp-color); |
| margin-top: 4px; |
| } |
|
|
| .input-area { |
| display: flex; |
| align-items: center; |
| border-radius: 30px; |
| } |
|
|
| .message-input { |
| flex: 1; |
| background-color: var(--menu-bg); |
| color: var(--text-color); |
| border: 8px solid var(--menu-bg); |
| resize: none; |
| outline: none; |
| border-radius: 20px; |
| height: 46px; |
| max-height: 110px; |
| overflow-y: auto; |
| line-height: 20px; |
| padding: 5px 15px; |
| margin: 10px 0px 10px 10px; |
| } |
|
|
| .send-button { |
| margin: 10px 10px 10px 5px; |
| padding: 5px 12px 6px 12px; |
| border: none; |
| border-radius: 50%; |
| background: var(--btn-bg); |
| color: var(--btn-text-color); |
| cursor: pointer; |
| font-size: 25px; |
| transition: background 0.3s ease, transform 0.2s ease; |
| } |
|
|
| .send-button:hover { |
| background: var(--btn-bg-hover); |
| transform: scale(1.02); |
| } |