|
|
|
|
|
body {
|
|
|
margin: 0;
|
|
|
font-family: 'Segoe UI', sans-serif;
|
|
|
background: linear-gradient(-45deg, #0f0f0f, #1a1a1a, #2c2c2c, #000000);
|
|
|
background-size: 400% 400%;
|
|
|
animation: gradientBG 18s ease infinite;
|
|
|
display: flex;
|
|
|
height: 100vh;
|
|
|
overflow: hidden;
|
|
|
color: white;
|
|
|
}
|
|
|
|
|
|
@keyframes gradientBG {
|
|
|
0% { background-position: 0% 50%; }
|
|
|
50% { background-position: 100% 50%; }
|
|
|
100% { background-position: 0% 50%; }
|
|
|
}
|
|
|
|
|
|
|
|
|
.sidebar {
|
|
|
width: 300px;
|
|
|
background: rgba(20, 20, 20, 0.8);
|
|
|
padding: 1rem;
|
|
|
overflow-y: auto;
|
|
|
border-right: 2px solid rgba(255, 255, 255, 0.1);
|
|
|
box-shadow: inset -2px 0 8px rgba(0, 0, 0, 0.3);
|
|
|
}
|
|
|
|
|
|
.sidebar h2 {
|
|
|
font-size: 1.3rem;
|
|
|
margin-bottom: 1rem;
|
|
|
color: #66ffff;
|
|
|
text-align: center;
|
|
|
}
|
|
|
|
|
|
#history-list {
|
|
|
list-style: none;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
font-size: 0.95rem;
|
|
|
}
|
|
|
|
|
|
#history-list li {
|
|
|
margin-bottom: 0.8rem;
|
|
|
background: rgba(255, 255, 255, 0.06);
|
|
|
padding: 0.5rem;
|
|
|
border-radius: 10px;
|
|
|
transition: background 0.3s;
|
|
|
}
|
|
|
|
|
|
#history-list li:hover {
|
|
|
background: rgba(255, 255, 255, 0.1);
|
|
|
}
|
|
|
|
|
|
|
|
|
.chat-container {
|
|
|
flex: 1;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
padding: 1.5rem;
|
|
|
backdrop-filter: blur(15px);
|
|
|
-webkit-backdrop-filter: blur(15px);
|
|
|
background: rgba(0, 0, 0, 0.25);
|
|
|
overflow: hidden;
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
|
|
|
.chat-container h1 {
|
|
|
text-align: center;
|
|
|
color: #ffffff;
|
|
|
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
|
|
|
margin-bottom: 1rem;
|
|
|
font-size: 2rem;
|
|
|
}
|
|
|
|
|
|
|
|
|
.chat-box {
|
|
|
flex: 1;
|
|
|
overflow-y: auto;
|
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
|
padding: 1rem;
|
|
|
background-color: rgba(255, 255, 255, 0.05);
|
|
|
border-radius: 12px;
|
|
|
box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.2);
|
|
|
scroll-behavior: smooth;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
margin-bottom: 1rem;
|
|
|
}
|
|
|
|
|
|
|
|
|
.msg {
|
|
|
margin-bottom: 1rem;
|
|
|
padding: 0.6rem 1rem;
|
|
|
border-radius: 10px;
|
|
|
max-width: 90%;
|
|
|
word-wrap: break-word;
|
|
|
background: rgba(255, 255, 255, 0.08);
|
|
|
backdrop-filter: blur(4px);
|
|
|
animation: fadeIn 0.4s ease;
|
|
|
}
|
|
|
|
|
|
.user-msg {
|
|
|
align-self: flex-end;
|
|
|
background: rgba(0, 162, 255, 0.2);
|
|
|
color: #80d8ff;
|
|
|
text-align: right;
|
|
|
}
|
|
|
|
|
|
.bot-msg {
|
|
|
align-self: flex-start;
|
|
|
background: rgba(0, 255, 170, 0.15);
|
|
|
color: #a7ffeb;
|
|
|
text-align: left;
|
|
|
}
|
|
|
|
|
|
@keyframes fadeIn {
|
|
|
from { opacity: 0; transform: translateY(10px); }
|
|
|
to { opacity: 1; transform: translateY(0); }
|
|
|
}
|
|
|
|
|
|
|
|
|
form {
|
|
|
display: flex;
|
|
|
gap: 0.5rem;
|
|
|
}
|
|
|
|
|
|
input[type="text"] {
|
|
|
flex: 1;
|
|
|
padding: 0.75rem;
|
|
|
border: 1px solid rgba(255, 255, 255, 0.15);
|
|
|
border-radius: 12px;
|
|
|
font-size: 1rem;
|
|
|
background: rgba(255, 255, 255, 0.05);
|
|
|
color: white;
|
|
|
outline: none;
|
|
|
transition: box-shadow 0.3s ease;
|
|
|
}
|
|
|
|
|
|
input[type="text"]::placeholder {
|
|
|
color: rgba(255, 255, 255, 0.5);
|
|
|
}
|
|
|
|
|
|
input[type="text"]:focus {
|
|
|
box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
|
|
|
}
|
|
|
|
|
|
button {
|
|
|
background: linear-gradient(135deg, #00c6ff, #0072ff);
|
|
|
color: white;
|
|
|
border: none;
|
|
|
padding: 0.8rem 1.4rem;
|
|
|
border-radius: 12px;
|
|
|
font-size: 1rem;
|
|
|
font-weight: bold;
|
|
|
cursor: pointer;
|
|
|
box-shadow: 0 0 15px rgba(0, 198, 255, 0.5);
|
|
|
transition: all 0.3s ease-in-out;
|
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
|
|
|
button::before {
|
|
|
content: "";
|
|
|
position: absolute;
|
|
|
top: 50%;
|
|
|
left: 50%;
|
|
|
width: 0%;
|
|
|
height: 0%;
|
|
|
background: rgba(255, 255, 255, 0.15);
|
|
|
border-radius: 50%;
|
|
|
transform: translate(-50%, -50%);
|
|
|
transition: width 0.5s ease, height 0.5s ease;
|
|
|
}
|
|
|
|
|
|
button:hover::before {
|
|
|
width: 300%;
|
|
|
height: 300%;
|
|
|
}
|
|
|
|
|
|
button:hover {
|
|
|
box-shadow: 0 0 18px rgba(0, 210, 255, 0.8), 0 0 28px rgba(58, 71, 213, 0.6);
|
|
|
transform: scale(1.05);
|
|
|
}
|
|
|
|
|
|
|
|
|
@media (max-width: 768px) {
|
|
|
body {
|
|
|
flex-direction: column;
|
|
|
}
|
|
|
|
|
|
.sidebar {
|
|
|
width: 100%;
|
|
|
border-right: none;
|
|
|
border-bottom: 2px solid rgba(255, 255, 255, 0.1);
|
|
|
max-height: 200px;
|
|
|
overflow-y: auto;
|
|
|
}
|
|
|
|
|
|
.chat-container {
|
|
|
padding: 1rem;
|
|
|
}
|
|
|
|
|
|
.chat-box {
|
|
|
height: 300px;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
#history-list li.active {
|
|
|
background-color: rgba(0, 255, 255, 0.25);
|
|
|
border: 1px solid rgba(0, 255, 255, 0.4);
|
|
|
}
|
|
|
|
|
|
|
|
|
.session-entry {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
|
}
|
|
|
|
|
|
.session-entry button.delete-btn {
|
|
|
background: transparent;
|
|
|
border: none;
|
|
|
color: #ff6666;
|
|
|
font-size: 1rem;
|
|
|
cursor: pointer;
|
|
|
margin-left: 8px;
|
|
|
transition: transform 0.2s ease;
|
|
|
}
|
|
|
|
|
|
.session-entry button.delete-btn:hover {
|
|
|
transform: scale(1.2);
|
|
|
}
|
|
|
|
|
|
|
|
|
#new-chat-btn {
|
|
|
width: 100%;
|
|
|
padding: 0.6rem;
|
|
|
background: linear-gradient(135deg, #1de9b6, #00bcd4);
|
|
|
color: #fff;
|
|
|
border: none;
|
|
|
font-weight: bold;
|
|
|
border-radius: 8px;
|
|
|
cursor: pointer;
|
|
|
margin-bottom: 1rem;
|
|
|
box-shadow: 0 0 12px rgba(0, 255, 255, 0.4);
|
|
|
transition: all 0.3s ease;
|
|
|
}
|
|
|
|
|
|
#new-chat-btn:hover {
|
|
|
transform: scale(1.03);
|
|
|
box-shadow: 0 0 16px rgba(0, 255, 255, 0.6);
|
|
|
} |