36407-vm/assets/css/custom.css
2025-11-28 00:36:51 +00:00

104 lines
2.0 KiB
CSS

body {
background-color: #E5E5E5;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
.chat-container {
display: flex;
flex-direction: column;
height: 100vh;
max-width: 800px;
margin: 0 auto;
background-color: #E5E5E5;
border-left: 1px solid #ddd;
border-right: 1px solid #ddd;
}
.chat-header {
background-color: #0088cc;
color: white;
padding: 1rem;
text-align: center;
font-size: 1.25rem;
font-weight: 500;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
z-index: 10;
}
.chat-messages {
flex-grow: 1;
overflow-y: auto;
padding: 1rem;
display: flex;
flex-direction: column;
gap: 0.75rem;
padding-bottom: 80px; /* Space for the input form */
}
.message-bubble {
padding: 0.75rem 1rem;
border-radius: 1.25rem;
max-width: 75%;
word-wrap: break-word;
box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.message-bubble.sent {
background-color: #DCF8C6;
align-self: flex-end;
border-bottom-right-radius: 0.25rem;
}
.message-bubble.received {
background-color: #FFFFFF;
align-self: flex-start;
border-bottom-left-radius: 0.25rem;
}
.message-time {
font-size: 0.75rem;
color: #999;
margin-top: 4px;
text-align: right;
}
.chat-form {
position: fixed;
bottom: 0;
left: 0;
right: 0;
max-width: 800px;
margin: 0 auto;
padding: 1rem;
background-color: #f0f0f0;
border-top: 1px solid #ddd;
box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
}
.chat-form form {
display: flex;
gap: 0.5rem;
}
.chat-form input {
flex-grow: 1;
border-radius: 1.5rem;
border: 1px solid #ccc;
padding: 0.75rem 1rem;
}
.chat-form button {
border-radius: 50%;
width: 48px;
height: 48px;
border: none;
background-color: #0088cc;
color: white;
font-size: 1.5rem;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}