98 lines
1.6 KiB
CSS
98 lines
1.6 KiB
CSS
body {
|
|
background-color: #F5F3FF;
|
|
font-family: 'Poppins', sans-serif;
|
|
color: #1E1E1E;
|
|
}
|
|
|
|
.chat-container {
|
|
max-width: 800px;
|
|
margin: 50px auto;
|
|
background-color: #FFFFFF;
|
|
border-radius: 12px;
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 80vh;
|
|
}
|
|
|
|
.chat-header {
|
|
background-color: #7C5BFF;
|
|
color: white;
|
|
padding: 20px;
|
|
border-top-left-radius: 12px;
|
|
border-top-right-radius: 12px;
|
|
text-align: center;
|
|
}
|
|
|
|
.chat-header h3 {
|
|
margin: 0;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.chat-messages {
|
|
flex-grow: 1;
|
|
padding: 20px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.message {
|
|
margin-bottom: 15px;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.message.user {
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.message .avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
margin: 0 10px;
|
|
}
|
|
|
|
.message .text {
|
|
padding: 10px 15px;
|
|
border-radius: 12px;
|
|
max-width: 70%;
|
|
}
|
|
|
|
.message.assistant .text {
|
|
background-color: #A28BFF;
|
|
color: white;
|
|
}
|
|
|
|
.message.user .text {
|
|
background-color: #EAEAEA;
|
|
}
|
|
|
|
.chat-input {
|
|
display: flex;
|
|
padding: 20px;
|
|
border-top: 1px solid #EEEEEE;
|
|
}
|
|
|
|
.chat-input input {
|
|
flex-grow: 1;
|
|
border: 1px solid #DDDDDD;
|
|
border-radius: 12px;
|
|
padding: 10px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.chat-input button {
|
|
background-color: #7C5BFF;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 12px;
|
|
padding: 10px 20px;
|
|
margin-left: 10px;
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.chat-input button:hover {
|
|
background-color: #A28BFF;
|
|
}
|