amazon_product / static /css /style.css
d-e-e-k-11's picture
Upload folder using huggingface_hub
4416e3b verified
:root {
--primary-color: #6366f1;
--primary-hover: #4f46e5;
--bg-dark: #0f172a;
--bg-card: rgba(30, 41, 59, 0.7);
--text-main: #f8fafc;
--text-muted: #94a3b8;
--glass-border: rgba(255, 255, 255, 0.1);
--accent-glow: rgba(99, 102, 241, 0.2);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Inter', sans-serif;
}
body {
background-color: var(--bg-dark);
background-image:
radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0, transparent 50%),
radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.15) 0, transparent 50%);
color: var(--text-main);
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
padding: 2rem;
}
.container {
width: 100%;
max-width: 900px;
z-index: 1;
}
header {
text-align: center;
margin-bottom: 3rem;
animation: fadeInDown 0.8s ease-out;
}
h1 {
font-size: 2.5rem;
font-weight: 800;
background: linear-gradient(to right, #818cf8, #c084fc);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
margin-bottom: 0.5rem;
}
p.subtitle {
color: var(--text-muted);
font-size: 1.1rem;
}
.chat-card {
background: var(--bg-card);
backdrop-filter: blur(12px);
border: 1px solid var(--glass-border);
border-radius: 1.5rem;
padding: 2rem;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
display: flex;
flex-direction: column;
gap: 1.5rem;
animation: fadeInUp 0.8s ease-out;
}
.chat-history {
height: 400px;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 1rem;
padding-right: 0.5rem;
}
.chat-history::-webkit-scrollbar {
width: 6px;
}
.chat-history::-webkit-scrollbar-thumb {
background: var(--glass-border);
border-radius: 10px;
}
.message {
padding: 1rem;
border-radius: 1rem;
max-width: 85%;
line-height: 1.5;
}
.user-message {
background: var(--primary-color);
align-self: flex-end;
border-bottom-right-radius: 0.2rem;
}
.bot-message {
background: rgba(51, 65, 85, 0.5);
align-self: flex-start;
border-bottom-left-radius: 0.2rem;
border: 1px solid var(--glass-border);
}
.bot-message p {
margin-bottom: 0.5rem;
}
.bot-message p:last-child {
margin-bottom: 0;
}
.bot-message ul,
.bot-message ol {
margin-left: 1.5rem;
margin-bottom: 0.5rem;
}
.bot-message li {
margin-bottom: 0.25rem;
}
.input-group {
display: flex;
gap: 0.75rem;
background: rgba(0, 0, 0, 0.2);
padding: 0.5rem;
border-radius: 1rem;
border: 1px solid var(--glass-border);
}
input {
flex: 1;
background: transparent;
border: none;
color: var(--text-main);
padding: 0.75rem 1rem;
font-size: 1rem;
outline: none;
}
button {
background: var(--primary-color);
color: white;
border: none;
padding: 0.75rem 1.5rem;
border-radius: 0.75rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
}
button:hover {
background: var(--primary-hover);
transform: translateY(-2px);
box-shadow: 0 10px 15px -3px var(--accent-glow);
}
.sources {
margin-top: 0.5rem;
font-size: 0.8rem;
color: var(--text-muted);
border-top: 1px solid var(--glass-border);
padding-top: 0.5rem;
}
.source-tag {
display: inline-block;
background: rgba(99, 102, 241, 0.15);
padding: 0.2rem 0.6rem;
border-radius: 0.4rem;
margin-right: 0.5rem;
margin-top: 0.5rem;
border: 1px solid rgba(99, 102, 241, 0.2);
color: #a5b4fc;
}
.suggestions {
margin: 0.5rem 0;
}
.suggestions p {
font-size: 0.85rem;
color: var(--text-muted);
margin-bottom: 0.75rem;
}
.suggestion-chips {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.chip {
background: rgba(255, 255, 255, 0.05);
border: 1px solid var(--glass-border);
color: var(--text-main);
padding: 0.4rem 0.8rem;
border-radius: 2rem;
font-size: 0.8rem;
cursor: pointer;
transition: all 0.2s ease;
width: auto;
}
.chip:hover {
background: rgba(99, 102, 241, 0.2);
border-color: var(--primary-color);
transform: translateY(-1px);
}
@keyframes fadeInDown {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.loading-dots:after {
content: '...';
display: inline-block;
width: 0;
animation: dots 1.5s steps(4, end) infinite;
overflow: hidden;
vertical-align: bottom;
}
@keyframes dots {
to {
width: 1.25em;
}
}