93 lines
1.7 KiB
CSS
93 lines
1.7 KiB
CSS
body {
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
background-color: #F3F4F6;
|
|
margin: 0;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100vh;
|
|
}
|
|
|
|
.chat-container {
|
|
width: 100%;
|
|
max-width: 600px;
|
|
height: 100%;
|
|
max-height: 800px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background-color: #FFFFFF;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.chat-header {
|
|
background: linear-gradient(90deg, #4F46E5, #6D28D9);
|
|
color: white;
|
|
padding: 16px;
|
|
text-align: center;
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.chat-box {
|
|
flex-grow: 1;
|
|
padding: 16px;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.chat-message {
|
|
padding: 10px 16px;
|
|
border-radius: 18px;
|
|
max-width: 75%;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.user-message {
|
|
background-color: #4F46E5;
|
|
color: white;
|
|
align-self: flex-end;
|
|
border-bottom-right-radius: 4px;
|
|
}
|
|
|
|
.ai-message {
|
|
background-color: #E5E7EB;
|
|
color: #1F2937;
|
|
align-self: flex-start;
|
|
border-bottom-left-radius: 4px;
|
|
}
|
|
|
|
.chat-footer {
|
|
padding: 16px;
|
|
border-top: 1px solid #E5E7EB;
|
|
}
|
|
|
|
#chat-form {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
#message-input {
|
|
flex-grow: 1;
|
|
border: 1px solid #D1D5DB;
|
|
padding: 12px;
|
|
border-radius: 8px;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
#chat-form button {
|
|
background-color: #4F46E5;
|
|
color: white;
|
|
border: none;
|
|
padding: 12px 20px;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-size: 1rem;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
#chat-form button:hover {
|
|
background-color: #4338CA;
|
|
} |