temp / style.css
jawakja's picture
Update style.css
aca088e verified
:root {
--primary-color: #1a237e;
--primary-light: #534bae;
--primary-dark: #000051;
--secondary-color: #2962ff;
--accent-color: #00b0ff;
--background-color: #f5f5f5;
--chat-bg: #ffffff;
--text-color: #263238;
--text-light: #ffffff;
--message-user-bg: #2962ff;
--message-bot-bg: #f5f5f5;
--error-color: #ff1744;
--success-color: #00c853;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body {
background-color: var(--background-color);
color: var(--text-color);
}
.container {
display: flex;
height: 100vh;
position: relative;
}
/* Sidebar Styles */
.sidebar {
width: 340px;
background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
color: var(--text-light);
padding: 24px;
display: flex;
flex-direction: column;
box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
height: 100vh;
position: fixed;
left: 0;
top: 0;
}
.sidebar-header {
text-align: center;
margin-bottom: 30px;
padding-bottom: 20px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.logo {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
margin-bottom: 8px;
}
.logo i {
font-size: 28px;
color: var(--accent-color);
}
.subtitle {
font-size: 14px;
opacity: 0.8;
}
.upload-section {
flex-grow: 1;
display: flex;
flex-direction: column;
gap: 24px;
}
.upload-section h3 {
display: flex;
align-items: center;
gap: 10px;
font-size: 18px;
margin-bottom: 15px;
}
.upload-box {
border: 2px dashed rgba(255, 255, 255, 0.3);
padding: 30px;
text-align: center;
border-radius: 12px;
cursor: pointer;
transition: all 0.3s ease;
background: rgba(255, 255, 255, 0.05);
}
.upload-box:hover {
border-color: var(--accent-color);
background: rgba(255, 255, 255, 0.1);
}
.upload-icon {
position: relative;
display: inline-block;
margin-bottom: 15px;
}
.upload-icon i {
font-size: 48px;
color: var(--accent-color);
z-index: 2;
position: relative;
}
.upload-pulse {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 70px;
height: 70px;
background: rgba(0, 176, 255, 0.2);
border-radius: 50%;
animation: pulse 2s infinite;
}
@keyframes pulse {
0% {
transform: translate(-50%, -50%) scale(0.8);
opacity: 0.5;
}
70% {
transform: translate(-50%, -50%) scale(1.1);
opacity: 0.2;
}
100% {
transform: translate(-50%, -50%) scale(0.8);
opacity: 0.5;
}
}
.upload-text {
font-size: 16px;
margin-bottom: 8px;
}
.upload-divider {
font-size: 14px;
opacity: 0.7;
margin: 10px 0;
}
.upload-btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 10px 20px;
background-color: var(--accent-color);
border-radius: 25px;
cursor: pointer;
transition: all 0.3s ease;
font-weight: 500;
}
.upload-btn:hover {
background-color: var(--secondary-color);
transform: translateY(-2px);
}
.file-list-container {
max-height: 200px;
overflow-y: auto;
background: rgba(255, 255, 255, 0.05);
border-radius: 8px;
padding: 10px;
}
.uploaded-files ul {
list-style: none;
}
.uploaded-files li {
display: flex;
align-items: center;
gap: 10px;
padding: 10px;
background: rgba(255, 255, 255, 0.1);
margin-bottom: 8px;
border-radius: 8px;
transition: all 0.3s ease;
}
.uploaded-files li:hover {
background: rgba(255, 255, 255, 0.15);
}
.uploaded-files li i.fa-times {
margin-left: auto;
cursor: pointer;
opacity: 0.7;
transition: all 0.3s ease;
}
.uploaded-files li i.fa-times:hover {
opacity: 1;
color: var(--error-color);
}
.sidebar-footer {
margin-top: 30px;
text-align: center;
padding-top: 20px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.tech-stack {
display: flex;
justify-content: center;
gap: 15px;
margin-top: 10px;
}
.tech-stack i {
font-size: 20px;
opacity: 0.7;
transition: all 0.3s ease;
}
.tech-stack i:hover {
opacity: 1;
color: var(--accent-color);
}
/* Main Content Styles */
.main-content {
margin-left: 340px;
width: calc(100% - 340px);
height: 100vh;
background-color: var(--chat-bg);
position: relative;
}
.chat-header {
padding: 20px 30px;
background: white;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.header-content {
text-align: center;
}
.header-content h1 {
color: var(--primary-color);
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
margin-bottom: 5px;
}
.header-content p {
color: var(--text-color);
opacity: 0.7;
}
.chat-container {
flex-grow: 1;
padding: 30px;
overflow-y: auto;
background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
}
.welcome-message {
text-align: center;
margin: 20px auto;
max-width: 900px;
padding: 40px;
background: white;
border-radius: 20px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.welcome-header {
margin-bottom: 30px;
}
.welcome-header h1 {
font-size: 36px;
font-weight: 700;
color: var(--primary-color);
margin-bottom: 10px;
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.welcome-header p {
font-size: 18px;
color: var(--text-color);
opacity: 0.8;
}
.welcome-icon {
font-size: 48px;
color: var(--accent-color);
margin: 30px 0;
}
.feature-list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 25px;
margin-top: 30px;
}
.feature {
background: linear-gradient(135deg, #f8f9fa, #ffffff);
padding: 25px;
border-radius: 15px;
transition: all 0.3s ease;
border: 1px solid rgba(0, 0, 0, 0.05);
}
.feature:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
border-color: var(--accent-color);
}
.feature i {
font-size: 28px;
color: var(--secondary-color);
margin-bottom: 15px;
}
.feature span {
display: block;
font-size: 18px;
font-weight: 600;
color: var(--primary-color);
margin-bottom: 10px;
}
.feature p {
font-size: 14px;
color: var(--text-color);
opacity: 0.7;
line-height: 1.4;
}
.chat-messages {
display: flex;
flex-grow: 1;
overflow-y: auto;
flex-direction: column;
gap: 20px;
}
.message {
max-width: 70%;
padding: 15px 20px;
border-radius: 15px;
position: relative;
animation: messageAppear 0.3s ease;
}
/* Message Animation */
@keyframes messageAppear {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* User and Bot Messages */
.message.user {
background-color: var(--message-user-bg);
color: white;
align-self: flex-end;
border-bottom-right-radius: 10px;
border-top-left-radius: 10px;
padding: 10px 15px;
max-width: 75%;
word-wrap: break-word;
white-space: pre-wrap; /* Ensures messages break into the next line */
animation: messageAppear 0.3s ease-out;
}
.message.bot {
background-color: var(--message-bot-bg);
color: var(--text-color);
align-self: flex-start;
border-bottom-left-radius: 10px;
border-top-right-radius: 10px;
padding: 10px 15px;
max-width: 75%;
word-wrap: break-word;
white-space: pre-wrap; /* Ensures messages break into the next line */
animation: messageAppear 0.3s ease-out;
}
/* Chat Input Container - Full Width */
.chat-input-container {
position: fixed;
bottom: 0; /* Extends fully to the left */
width: 80%; /* Full width till end of the page */
background: #fff;
padding: 12px 15px;
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
display: flex;
align-items: center;
justify-content: center;
}
/* Input Box - Full Width */
.input-wrapper {
display: flex;
align-items: center;
width: 100%;
max-width: 1200px;
border: 1px solid #ccc;
border-radius: 25px;
background: var(--background-color);
padding: 5px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
/* Input Field - Full Width, Text Align Left */
#userInput {
flex-grow: 1;
padding: 12px 15px;
border: none;
background: transparent;
outline: none;
font-size: 16px;
text-align: left;
resize: none; /* Prevents manual resizing by user */
overflow-y: auto; /* Enables vertical scrolling */
min-height: 20px; /* Minimum height */
max-height: 150px; /* Limits expansion */
line-height: 1.5; /* Better readability */
}
/* Send Button - Aligned to the Right */
#sendButton {
background: #007bff;
color: white;
border: none;
padding: 12px 15px;
cursor: pointer;
border-radius: 50%;
transition: 0.3s ease-in-out;
display: flex;
align-items: center;
justify-content: center;
}
#sendButton:hover {
background-color: var(--primary-light);
transform: scale(1.1);
}
/* Loading Animation */
.loading {
display: flex;
gap: 8px;
padding: 15px 20px;
background: var(--message-bot-bg);
border-radius: 15px;
align-self: flex-start;
}
.loading span {
width: 10px;
height: 10px;
background-color: var(--secondary-color);
border-radius: 50%;
animation: bounce 0.5s alternate infinite;
}
.loading span:nth-child(2) { animation-delay: 0.16s; }
.loading span:nth-child(3) { animation-delay: 0.32s; }
@keyframes bounce {
from { transform: translateY(0); }
to { transform: translateY(-10px); }
}
/* Scrollbar Styling */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.05);
border-radius: 4px;
}
::-webkit-scrollbar-thumb {
background: rgba(0, 0, 0, 0.2);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: rgba(0, 0, 0, 0.3);
}
/* Main Header Styles */
.main-header {
position: fixed;
top: 0;
left: 0;
right: 0;
height: 80px;
background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
color: var(--text-light);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 40px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
z-index: 1000;
}
.header-left, .header-right {
flex: 1;
}
.header-left .logo {
display: flex;
align-items: center;
gap: 10px;
}
.header-left .logo i {
font-size: 24px;
color: var(--accent-color);
}
.header-left .logo span {
font-size: 20px;
font-weight: 600;
}
.header-center {
text-align: center;
}
.header-center h1 {
font-size: 32px;
font-weight: 600;
margin-bottom: 6px;
background: linear-gradient(to right, #ffffff, #e3f2fd);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.header-center p {
font-size: 16px;
opacity: 0.9;
}
.header-right {
display: flex;
justify-content: flex-end;
}
.header-actions {
display: flex;
justify-content: center;
gap: 15px;
margin-top: 15px;
}
.theme-toggle, .help-button {
background: rgba(255, 255, 255, 0.1);
border: none;
color: var(--text-light);
font-size: 18px;
cursor: pointer;
padding: 8px;
border-radius: 50%;
transition: all 0.3s ease;
width: 35px;
height: 35px;
display: flex;
align-items: center;
justify-content: center;
}
.theme-toggle:hover, .help-button:hover {
background: rgba(255, 255, 255, 0.2);
transform: translateY(-2px);
}
/* Add responsive styles */
@media (max-width: 1024px) {
.feature-list {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 768px) {
.sidebar {
width: 280px;
}
.main-content {
margin-left: 280px;
width: calc(100% - 280px);
}
.welcome-header h1 {
font-size: 28px;
}
.feature-list {
grid-template-columns: 1fr;
}
}
@media (max-width: 480px) {
.header-center h1 {
font-size: 20px;
}
}