172 lines
3.3 KiB
CSS
172 lines
3.3 KiB
CSS
|
|
<style>
|
|
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
|
|
|
|
:root {
|
|
--background: #111827;
|
|
--surface: rgba(31, 41, 55, 0.5);
|
|
--primary: #38BDF8;
|
|
--text-primary: #F9FAFB;
|
|
--text-secondary: #9CA3AF;
|
|
--user-msg-bg: #374151;
|
|
--bot-msg-bg: #1F2937;
|
|
--border-color: rgba(55, 65, 81, 0.6);
|
|
}
|
|
|
|
body {
|
|
background-color: var(--background);
|
|
color: var(--text-primary);
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
|
|
margin: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.chat-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-grow: 1;
|
|
max-width: 800px;
|
|
width: 100%;
|
|
margin: 0 auto;
|
|
padding: 1rem;
|
|
}
|
|
|
|
header.main-header {
|
|
text-align: center;
|
|
padding: 1rem;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
header.main-header h1 {
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
color: var(--primary);
|
|
margin: 0;
|
|
}
|
|
|
|
.messages {
|
|
flex-grow: 1;
|
|
overflow-y: auto;
|
|
padding: 1rem 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.message {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
gap: 0.5rem;
|
|
max-width: 85%;
|
|
animation: fadeIn 0.3s ease-in-out;
|
|
}
|
|
|
|
.message-content {
|
|
padding: 0.75rem 1rem;
|
|
border-radius: 12px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.message.user {
|
|
align-self: flex-end;
|
|
}
|
|
|
|
.message.user .message-content {
|
|
background-color: var(--user-msg-bg);
|
|
border-bottom-right-radius: 4px;
|
|
}
|
|
|
|
.message.bot {
|
|
align-self: flex-start;
|
|
}
|
|
|
|
.message.bot .message-content {
|
|
background-color: var(--bot-msg-bg);
|
|
border-bottom-left-radius: 4px;
|
|
}
|
|
|
|
.message.typing {
|
|
align-self: flex-start;
|
|
color: var(--text-secondary);
|
|
font-style: italic;
|
|
}
|
|
|
|
.message-form {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
padding: 1rem 0;
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
.message-form-wrapper {
|
|
background: var(--surface);
|
|
backdrop-filter: blur(10px);
|
|
-webkit-backdrop-filter: blur(10px);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 12px;
|
|
padding: 0.5rem 1rem;
|
|
flex-grow: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
#message-input {
|
|
background: transparent;
|
|
border: none;
|
|
outline: none;
|
|
color: var(--text-primary);
|
|
flex-grow: 1;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
#message-input::placeholder {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
button.send-btn {
|
|
background-color: var(--primary);
|
|
color: var(--background);
|
|
border: none;
|
|
border-radius: 8px;
|
|
padding: 0.5rem 1rem;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
button.send-btn:hover {
|
|
background-color: #7dd3fc; /* Lighter sky blue */
|
|
}
|
|
|
|
footer.main-footer {
|
|
text-align: center;
|
|
padding: 1rem;
|
|
color: var(--text-secondary);
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; transform: translateY(10px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
/* Scrollbar styles */
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
::-webkit-scrollbar-thumb {
|
|
background: #2d3748;
|
|
border-radius: 4px;
|
|
}
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: #4a5568;
|
|
}
|
|
</style>
|