|
body { |
|
font-family: system-ui, sans-serif; |
|
margin: 0; |
|
background: #f4f6fb; |
|
} |
|
|
|
header { |
|
background: #232946; |
|
color: #fff; |
|
padding: 12px 20px; |
|
display: flex; |
|
align-items: center; |
|
gap: 16px; |
|
justify-content: space-between; |
|
} |
|
|
|
header select, header button { |
|
font-size: 1em; |
|
padding: 4px 8px; |
|
border-radius: 4px; |
|
border: none; |
|
} |
|
|
|
#chatContainer { |
|
max-width: 600px; |
|
margin: 30px auto 0 auto; |
|
background: #fff; |
|
border-radius: 10px; |
|
box-shadow: 0 2px 16px rgba(0,0,0,0.06); |
|
min-height: 400px; |
|
padding: 18px 10px 70px 10px; |
|
overflow-y: auto; |
|
height: 60vh; |
|
display: flex; |
|
flex-direction: column; |
|
} |
|
|
|
.message { |
|
display: flex; |
|
margin-bottom: 10px; |
|
align-items: flex-end; |
|
} |
|
|
|
.message.user { |
|
justify-content: flex-end; |
|
} |
|
|
|
.message.bot { |
|
justify-content: flex-start; |
|
} |
|
|
|
.bubble { |
|
max-width: 70%; |
|
padding: 10px 14px; |
|
border-radius: 20px; |
|
font-size: 1em; |
|
line-height: 1.5; |
|
word-break: break-word; |
|
} |
|
|
|
.user .bubble { |
|
background: #232946; |
|
color: #fff; |
|
border-bottom-right-radius: 4px; |
|
} |
|
|
|
.bot .bubble { |
|
background: #e7eaf6; |
|
color: #232946; |
|
border-bottom-left-radius: 4px; |
|
} |
|
|
|
#inputForm { |
|
position: fixed; |
|
left: 0; right: 0; bottom: 0; |
|
max-width: 600px; |
|
margin: 0 auto; |
|
display: flex; |
|
gap: 10px; |
|
background: #fff; |
|
padding: 12px 10px; |
|
border-top: 1px solid #e7eaf6; |
|
} |
|
|
|
#userInput { |
|
flex: 1; |
|
padding: 10px; |
|
border-radius: 6px; |
|
border: 1px solid #ccc; |
|
font-size: 1em; |
|
} |
|
|
|
#inputForm button { |
|
padding: 0 18px; |
|
border-radius: 6px; |
|
background: #232946; |
|
color: #fff; |
|
border: none; |
|
font-size: 1em; |
|
cursor: pointer; |
|
} |
|
|
|
.typing { |
|
font-size: 0.95em; |
|
color: #888; |
|
margin-left: 18px; |
|
margin-bottom: 8px; |
|
} |
|
|
|
.hidden { |
|
display: none !important; |
|
} |
|
|
|
|
|
.modal { |
|
position: fixed; |
|
top: 0; left: 0; right: 0; bottom: 0; |
|
background: rgba(0,0,0,0.18); |
|
display: flex; |
|
align-items: center; |
|
justify-content: center; |
|
z-index: 10; |
|
} |
|
|
|
.modal-content { |
|
background: #fff; |
|
padding: 32px 28px 24px 28px; |
|
border-radius: 12px; |
|
box-shadow: 0 2px 16px rgba(0,0,0,0.12); |
|
min-width: 320px; |
|
display: flex; |
|
flex-direction: column; |
|
gap: 16px; |
|
} |
|
|
|
.modal-content input { |
|
padding: 10px; |
|
border-radius: 6px; |
|
border: 1px solid #ccc; |
|
font-size: 1em; |
|
} |
|
|
|
.toggle-label { |
|
display: flex; |
|
align-items: center; |
|
gap: 5px; |
|
font-size: 1em; |
|
color: #fff; |
|
} |
|
.toggle-label input[type="checkbox"] { |
|
accent-color: #232946; |
|
width: 16px; |
|
height: 16px; |
|
} |
|
.modal-content button { |
|
padding: 8px 0; |
|
border-radius: 6px; |
|
background: #232946; |
|
color: #fff; |
|
border: none; |
|
font-size: 1em; |
|
cursor: pointer; |
|
} |
|
|
|
.error { |
|
color: #c00; |
|
font-size: 0.95em; |
|
min-height: 18px; |
|
} |
|
|