Spaces:
Runtime error
Runtime error
/* static/styles.css */ | |
body { | |
font-family: Arial, sans-serif; | |
background-color: #f0f0f0; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
height: 100vh; | |
margin: 0; | |
} | |
.chat-container { | |
width: 400px; | |
background-color: #ffffff; | |
border-radius: 8px; | |
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); | |
overflow: hidden; | |
} | |
.chat-box { | |
max-height: 500px; | |
overflow-y: auto; | |
padding: 20px; | |
border-bottom: 1px solid #ddd; | |
} | |
.message { | |
padding: 10px; | |
margin: 10px 0; | |
border-radius: 5px; | |
max-width: 80%; | |
} | |
.message.sent { | |
background-color: #dcf8c6; | |
align-self: flex-end; | |
margin-left: auto; | |
} | |
.message.received { | |
background-color: #f1f0f0; | |
} | |
#chat-form { | |
display: flex; | |
padding: 20px; | |
background-color: #ffffff; | |
} | |
#user-input { | |
flex: 1; | |
padding: 10px; | |
border: 1px solid #ddd; | |
border-radius: 5px; | |
} | |
button { | |
padding: 10px 20px; | |
border: none; | |
background-color: #007bff; | |
color: white; | |
border-radius: 5px; | |
margin-left: 10px; | |
} | |
button:hover { | |
background-color: #0056b3; | |
} | |