Spaces:
Running
Running
body { | |
font-family: Arial, sans-serif; | |
background-color: #f4f4f4; | |
margin: 0; | |
padding: 0; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
height: 100vh; | |
} | |
.chat-container { | |
width: 400px; | |
height: 600px; | |
background: #ffffff; | |
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); | |
display: flex; | |
flex-direction: column; | |
overflow: hidden; | |
border-radius: 8px; | |
} | |
.chat-header { | |
background: #0078d7; | |
color: white; | |
padding: 10px; | |
text-align: center; | |
} | |
.chat-messages { | |
flex: 1; | |
padding: 10px; | |
overflow-y: auto; | |
background: #f9f9f9; | |
} | |
.message { | |
margin-bottom: 10px; | |
padding: 10px; | |
border-radius: 4px; | |
max-width: 80%; | |
} | |
.user-message { | |
background: #0078d7; | |
color: white; | |
align-self: flex-end; | |
} | |
.bot-message { | |
background: #e4e6eb; | |
color: #000; | |
align-self: flex-start; | |
} | |
.chat-input { | |
display: flex; | |
padding: 10px; | |
border-top: 1px solid #ddd; | |
} | |
.chat-input input { | |
flex: 1; | |
padding: 10px; | |
border: 1px solid #ccc; | |
border-radius: 4px; | |
outline: none; | |
} | |
.chat-input button { | |
margin-left: 10px; | |
padding: 10px 20px; | |
background: #0078d7; | |
color: white; | |
border: none; | |
border-radius: 4px; | |
cursor: pointer; | |
} | |
.chat-input button:hover { | |
background: #005bb5; | |
} |