Prajith04's picture
Update static/styles.css
4d41769 verified
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #e3f2fd, #e1bee7);
background-size: 400% 400%;
animation: gradientBackground 15s ease infinite;
padding: 20px;
margin: 0;
}
@keyframes gradientBackground {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
.chat-container {
max-width: 700px;
margin: auto;
background: rgba(255, 255, 255, 0.85);
padding: 25px;
border-radius: 16px;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(10px);
border: 1px solid #ddd;
transition: all 0.3s ease-in-out;
}
h2 {
text-align: center;
font-size: 1.8em;
margin-bottom: 20px;
background: linear-gradient(to right, #8e24aa, #1e88e5);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.chat-box {
border: 1px solid #ccc;
border-radius: 8px;
padding: 15px;
max-height: 300px;
overflow-y: auto;
background-color: #fafafa;
margin-bottom: 15px;
}
.user, .bot {
margin: 8px 0;
padding: 10px 14px;
border-radius: 20px;
display: inline-block;
max-width: 80%;
word-wrap: break-word;
animation: fadeIn 0.4s ease-in-out;
}
.user {
background: linear-gradient(135deg, #42a5f5, #1e88e5);
color: white;
float: right;
clear: both;
}
.bot {
background: #f1f3f4;
color: #333;
float: left;
clear: both;
}
form {
display: flex;
gap: 10px;
margin-top: 10px;
}
input[type="text"] {
flex-grow: 1;
padding: 10px 14px;
border: 1px solid #ccc;
border-radius: 25px;
outline: none;
transition: border-color 0.3s;
}
input[type="text"]:focus {
border-color: #42a5f5;
}
button {
padding: 10px 20px;
background: linear-gradient(135deg, #8e24aa, #42a5f5);
border: none;
border-radius: 25px;
color: white;
cursor: pointer;
font-weight: bold;
transition: background 0.3s;
}
button:hover {
background: linear-gradient(135deg, #6a1b9a, #1976d2);
}
.entities {
margin-top: 20px;
padding: 15px;
background: #fff;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0,0,0,0.05);
border-left: 5px solid #8e24aa;
}
.entities h4 {
margin-bottom: 10px;
color: #8e24aa;
}
.entities ul {
padding-left: 20px;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(5px); }
to { opacity: 1; transform: translateY(0); }
}
.examples ul {
list-style-type: none;
padding: 0;
}
.examples li {
cursor: pointer;
padding: 5px;
background-color: #f0f0f0;
margin-bottom: 20px;
border-radius: 4px;
}
.examples li:hover {
background-color: #e0e0e0;
color:#2641ed
}