Spaces:
Sleeping
Sleeping
body { | |
background: #f4f6fb; | |
font-family: 'Segoe UI', Arial, sans-serif; | |
margin: 0; | |
padding: 0; | |
} | |
.chat-container { | |
max-width: 480px; | |
margin: 40px auto; | |
background: #fff; | |
border-radius: 12px; | |
box-shadow: 0 2px 16px rgba(0,0,0,0.08); | |
padding: 24px 18px 18px 18px; | |
} | |
h2 { | |
text-align: center; | |
color: #2d3a4b; | |
margin-bottom: 18px; | |
} | |
#chat-box { | |
min-height: 220px; | |
max-height: 340px; | |
overflow-y: auto; | |
border: 1px solid #e0e0e0; | |
border-radius: 8px; | |
padding: 12px; | |
background: #fafbfc; | |
margin-bottom: 16px; | |
} | |
.message { | |
margin-bottom: 14px; | |
display: flex; | |
flex-direction: column; | |
} | |
.message.user { | |
align-items: flex-end; | |
} | |
.message.ai { | |
align-items: flex-start; | |
} | |
.bubble { | |
padding: 10px 16px; | |
border-radius: 18px; | |
max-width: 80%; | |
font-size: 1rem; | |
line-height: 1.5; | |
} | |
.bubble.user { | |
background: #e3f0ff; | |
color: #1a2a3a; | |
border-bottom-right-radius: 4px; | |
} | |
.bubble.ai { | |
background: #e9fbe5; | |
color: #1a3a1a; | |
border-bottom-left-radius: 4px; | |
} | |
.feedback { | |
margin-top: 4px; | |
display: flex; | |
gap: 8px; | |
} | |
.feedback button { | |
background: none; | |
border: none; | |
cursor: pointer; | |
font-size: 1.2em; | |
transition: color 0.2s; | |
} | |
.feedback button:hover { | |
color: #0078d7; | |
} | |
#loading { | |
text-align: center; | |
color: #888; | |
margin-top: 10px; | |
} | |
@media (max-width: 600px) { | |
.chat-container { | |
max-width: 98vw; | |
padding: 10px 2vw 10px 2vw; | |
} | |
#chat-box { | |
min-height: 120px; | |
max-height: 220px; | |
} | |
} |