Chaitanya895's picture
Upload 15 files
9ce76ea verified
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html, body {
height: 100%;
background: linear-gradient(135deg, #23272f 0%, #343541 100%);
color: #fff;
font-family: 'Inter', 'Poppins', sans-serif;
overflow-x: hidden;
overflow-y: auto;
}
body {
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* Branding row at the top, scrolls with page, NO navbar effect */
.branding-row {
display: flex;
align-items: center;
gap: 1rem;
padding: 1.6rem 0 0.6rem 1.6rem;
width: auto;
background: transparent;
box-shadow: none;
border-bottom: none;
}
.logo {
width: 72px;
height: 72px;
border-radius: 16px;
object-fit: cover;
box-shadow: 0 4px 24px rgba(76, 110, 245, 0.12);
}
.brand-name {
font-family: 'Poppins', sans-serif;
font-weight: 700;
font-size: 2.7rem;
background: linear-gradient(135deg, #4f9fff, #9c7aff);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
letter-spacing: 1.5px;
user-select: none;
line-height: 1;
}
/* Chat container and rest of your styles remain unchanged */
.chat-outer {
display: flex;
flex-direction: column;
justify-content: flex-end;
align-items: center;
height: 100vh;
width: 100vw;
padding-top: 0;
padding-bottom: 0;
position: relative;
}
/* Ensure chat-container fills available space above input */
.chat-container {
width: 100%;
max-width: 720px;
flex: 1 1 auto;
background: rgba(44, 46, 56, 0.75);
border-radius: 1.5rem;
margin: 0 auto;
padding: 2rem 1.2rem 1rem 1.2rem;
box-shadow: 0 8px 32px rgba(20, 20, 40, 0.14);
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 1.2rem;
scroll-behavior: smooth;
min-height: 60vh;
max-height: none;
backdrop-filter: blur(8px);
}
/* Spacer to ensure input bar never overlaps chat on any device */
.input-area-spacer {
height: 100px;
flex-shrink: 0;
}
@media (max-width: 600px) {
.branding-row {
gap: 0.7rem;
padding: 1.2rem 0 0.5rem 1.1rem;
}
.logo {
width: 56px;
height: 56px;
border-radius: 12px;
}
.brand-name {
font-size: 2.1rem;
letter-spacing: 1px;
}
.chat-container, .input-area {
max-width: 100vw;
border-radius: 0.5rem;
padding-left: 0.3rem;
padding-right: 0.3rem;
}
.input-area-spacer {
height: 120px;
}
}
/* Input bar at the bottom, always above chat */
.input-area {
width: 100%;
max-width: 720px;
background: none;
position: fixed;
left: 50%;
bottom: 0;
transform: translateX(-50%);
z-index: 20;
padding: 0 1rem 1.2rem 1rem;
}
.input-container {
display: flex;
align-items: center;
background: rgba(44, 46, 56, 0.90);
border-radius: 1.2rem;
box-shadow: 0 2px 12px rgba(0,0,0,0.12);
padding: 0.25rem 0.5rem;
}
input[type="text"] {
flex: 1;
padding: 1rem 1.2rem;
font-size: 1.1rem;
background: transparent;
border: none;
color: #fff;
outline: none;
border-radius: 1.2rem;
}
input[type="text"]:focus {
background: rgba(44, 46, 56, 0.98);
}
button {
background: linear-gradient(135deg, #4f9fff 60%, #9c7aff 100%);
color: white;
border: none;
padding: 0.7rem 0.9rem;
border-radius: 0.9rem;
cursor: pointer;
margin-left: 0.5rem;
transition: background 0.2s, transform 0.2s;
display: flex;
align-items: center;
justify-content: center;
}
button:hover {
background: linear-gradient(135deg, #2563eb 70%, #7a5cff 100%);
transform: scale(1.07);
}
.welcome-message {
text-align: center;
margin-bottom: 1.5rem;
opacity: 0.92;
transition: opacity 0.3s, max-height 0.3s;
}
.welcome-message[style*="display: none"] {
opacity: 0;
max-height: 0;
margin: 0;
padding: 0;
}
.welcome-message h2 {
font-size: 1.6rem;
font-weight: 700;
margin-bottom: 0.4rem;
background: linear-gradient(135deg, #4f9fff, #9c7aff);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.welcome-message p {
font-size: 1.05rem;
opacity: 0.8;
}
.disclaimer {
font-size: 0.9rem;
opacity: 0.65;
margin-top: 0.3rem;
line-height: 1.4;
}
.message-row {
display: flex;
width: 100%;
}
.message-row.user {
justify-content: flex-end;
}
.message-row.bot {
justify-content: flex-start;
}
.message {
max-width: 85%;
padding: 1rem 1.3rem;
border-radius: 1.2rem;
font-size: 1.05rem;
line-height: 1.6;
animation: fadeIn 0.3s ease-in;
white-space: pre-wrap;
word-wrap: break-word;
background: rgba(60, 64, 90, 0.85);
box-shadow: 0 2px 12px rgba(0,0,0,0.08);
transition: background 0.2s;
}
.message.user {
background: linear-gradient(135deg, #4f9fff 60%, #9c7aff 100%);
color: #fff;
border-bottom-right-radius: 0.3rem;
}
.message.bot {
background: rgba(44, 46, 56, 0.94);
color: #fff;
border-bottom-left-radius: 0.3rem;
}
.time-display {
font-style: italic;
color: #a0aec0;
font-size: 0.8rem;
margin-top: 0.3rem;
margin-left: 0.7rem;
}
.typing-indicator {
display: flex;
align-items: center;
background: rgba(44, 46, 56, 0.94);
padding: 1rem 1.3rem;
border-radius: 1.2rem;
width: fit-content;
gap: 3px;
}
.typing-indicator span {
height: 8px;
width: 8px;
margin: 0 2px;
background-color: #b5b7c2;
border-radius: 50%;
display: inline-block;
animation: bounce 1.5s infinite ease-in-out;
}
.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
0%, 80%, 100% { transform: translateY(0); }
40% { transform: translateY(-8px); }
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px);}
to { opacity: 1; transform: translateY(0);}
}
/* Scrollbar Styling */
.chat-container::-webkit-scrollbar {
width: 7px;
}
.chat-container::-webkit-scrollbar-thumb {
background: #555a6a;
border-radius: 4px;
}