alaselababatunde's picture
Updated
8781275
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
:root {
--primary: #B81104;
/* Milano Red */
--primary-hover: #9a0e03;
--secondary: #FFFFFF;
--bg-color: #f8f9fa;
--text-main: #212529;
--text-muted: #6c757d;
--border-color: #dee2e6;
--bubble-user: #B81104;
--bubble-bot: #FFFFFF;
--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
background-color: var(--bg-color);
color: var(--text-main);
height: 100vh;
display: flex;
flex-direction: column;
}
#root {
height: 100%;
display: flex;
flex-direction: column;
}
.app-container {
max-width: 900px;
margin: 0 auto;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
background: white;
box-shadow: var(--shadow);
}
header {
padding: 1rem 2rem;
background-color: var(--secondary);
border-bottom: 2px solid var(--primary);
display: flex;
align-items: center;
justify-content: space-between;
position: sticky;
top: 0;
z-index: 10;
}
.header-logo {
height: 40px;
display: flex;
align-items: center;
gap: 12px;
}
.header-logo img {
height: 100%;
object-fit: contain;
}
.header-title {
font-weight: 700;
color: var(--primary);
font-size: 1.25rem;
}
.chat-window {
flex: 1;
overflow-y: auto;
padding: 2rem;
display: flex;
flex-direction: column;
gap: 1.5rem;
background: #fdfdfd;
}
.message {
display: flex;
flex-direction: column;
max-width: 80%;
animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.message.user {
align-self: flex-end;
}
.message.assistant {
align-self: flex-start;
}
.message-bubble {
padding: 1rem 1.25rem;
border-radius: 12px;
line-height: 1.6;
font-size: 1rem;
position: relative;
}
.user .message-bubble {
background-color: var(--bubble-user);
color: white;
border-bottom-right-radius: 2px;
}
.assistant .message-bubble {
background-color: var(--bubble-bot);
color: var(--text-main);
border: 1px solid var(--border-color);
border-bottom-left-radius: 2px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.message-sender {
font-size: 0.75rem;
font-weight: 600;
margin-bottom: 4px;
color: var(--text-muted);
}
.message-content p {
margin-bottom: 0.75rem;
}
.message-content p:last-child {
margin-bottom: 0;
}
.input-area {
padding: 1.5rem 2rem;
background: white;
border-top: 1px solid var(--border-color);
display: flex;
gap: 1rem;
}
.input-container {
flex: 1;
position: relative;
}
input {
width: 100%;
padding: 1rem 1.25rem;
border: 1px solid var(--border-color);
border-radius: 30px;
font-size: 1rem;
outline: none;
transition: border-color 0.2s, box-shadow 0.2s;
font-family: inherit;
}
input:focus {
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(184, 17, 4, 0.1);
}
button.send-btn {
background-color: var(--primary);
color: white;
border: none;
width: 50px;
height: 50px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: background-color 0.2s, transform 0.1s;
}
button.send-btn:hover {
background-color: var(--primary-hover);
}
button.send-btn:active {
transform: scale(0.95);
}
button.send-btn:disabled {
background-color: var(--border-color);
cursor: not-allowed;
}
/* Markdown styling */
.assistant .message-bubble ul,
.assistant .message-bubble ol {
margin-left: 1.5rem;
margin-bottom: 0.75rem;
}
.assistant .message-bubble li {
margin-bottom: 0.25rem;
}
code {
background: #f1f3f5;
padding: 0.2rem 0.4rem;
border-radius: 4px;
font-family: monospace;
}
pre {
background: #f1f3f5;
padding: 1rem;
border-radius: 8px;
overflow-x: auto;
margin: 1rem 0;
}