alaselababatunde's picture
Updated
e8d69f7
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
:root {
--primary: #1B8DC6;
--primary-dark: #1573a0;
--secondary: #000000;
--bg-color: #f8fafc;
--text-main: #1e293b;
--text-muted: #64748b;
--glass-bg: rgba(255, 255, 255, 0.8);
--glass-border: rgba(255, 255, 255, 0.3);
--shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', sans-serif;
background-color: var(--bg-color);
color: var(--text-main);
line-height: 1.6;
}
.app-container {
display: flex;
flex-direction: column;
height: 100vh;
max-width: 1000px;
margin: 0 auto;
background: white;
box-shadow: var(--shadow);
}
.header {
display: flex;
align-items: center;
padding: 1rem 2rem;
background: var(--secondary);
color: white;
border-bottom: 2px solid var(--primary);
}
.logo {
height: 40px;
margin-right: 1rem;
}
.chat-window {
flex: 1;
overflow-y: auto;
padding: 1.5rem;
display: flex;
flex-direction: column;
gap: 1.5rem;
background: #f1f5f9;
}
.message {
max-width: 80%;
padding: 1rem 1.25rem;
border-radius: 1rem;
position: relative;
animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.message.user {
align-self: flex-end;
background: var(--primary);
color: white;
border-bottom-right-radius: 0.25rem;
}
.message.assistant {
align-self: flex-start;
background: white;
color: var(--text-main);
border-bottom-left-radius: 0.25rem;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.input-area {
padding: 1.5rem;
background: white;
border-top: 1px solid #e2e8f0;
display: flex;
gap: 1rem;
}
.input-wrapper {
flex: 1;
position: relative;
}
input {
width: 100%;
padding: 0.75rem 1rem;
border: 1.5px solid #cbd5e1;
border-radius: 0.75rem;
font-size: 1rem;
outline: none;
transition: border-color 0.2s;
}
input:focus {
border-color: var(--primary);
}
button {
background: var(--primary);
color: white;
border: none;
padding: 0.75rem 1.5rem;
border-radius: 0.75rem;
font-weight: 600;
cursor: pointer;
transition: background 0.2s;
}
button:hover {
background: var(--primary-dark);
}
button:disabled {
background: #94a3b8;
cursor: not-allowed;
}
.typing-animation {
display: flex;
gap: 4px;
}
.dot {
width: 8px;
height: 8px;
background: var(--text-muted);
border-radius: 50%;
animation: bounce 1.4s infinite ease-in-out both;
}
.dot:nth-child(1) {
animation-delay: -0.32s;
}
.dot:nth-child(2) {
animation-delay: -0.16s;
}
@keyframes bounce {
0%,
80%,
100% {
transform: scale(0);
}
40% {
transform: scale(1);
}
}
.markdown-content p {
margin-bottom: 1rem;
}
.markdown-content p:last-child {
margin-bottom: 0;
}