← Files TeleCallARCHIVED FILE
src/ui/styles.css
12.8 KB · Sep 30, 2026 · 23:16 UTC
:root {
--bg-dark: #090d16;
--bg-sidebar: #0f172a;
--bg-card: rgba(30, 41, 59, 0.7);
--bg-card-hover: rgba(51, 65, 85, 0.85);
--border-color: rgba(255, 255, 255, 0.1);
--border-highlight: rgba(14, 165, 233, 0.4);
--primary: #0ea5e9;
--primary-glow: rgba(14, 165, 233, 0.35);
--secondary: #8b5cf6;
--accent-cyan: #06b6d4;
--accent-emerald: #10b981;
--accent-amber: #f59e0b;
--text-main: #f8fafc;
--text-muted: #94a3b8;
--text-dim: #64748b;
--font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
--font-mono: 'JetBrains Mono', monospace;
--radius-sm: 8px;
--radius-md: 12px;
--radius-lg: 18px;
--radius-xl: 24px;
--shadow-subtle: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
--shadow-glow: 0 0 25px rgba(14, 165, 233, 0.15);
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: var(--font-sans);
background-color: var(--bg-dark);
color: var(--text-main);
min-height: 100vh;
display: flex;
flex-direction: column;
overflow-x: hidden;
}
/* Transparency Banner */
.transparency-banner {
background: linear-gradient(90deg, #1e1b4b 0%, #1e293b 50%, #0f172a 100%);
border-bottom: 1px solid rgba(139, 92, 246, 0.3);
padding: 8px 20px;
font-size: 0.82rem;
color: #cbd5e1;
z-index: 100;
}
.banner-inner {
max-width: 1400px;
margin: 0 auto;
display: flex;
align-items: center;
gap: 12px;
}
.badge-demo {
background: linear-gradient(135deg, #6366f1, #8b5cf6);
color: #ffffff;
padding: 2px 8px;
border-radius: 4px;
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.05em;
white-space: nowrap;
}
.banner-text {
line-height: 1.4;
}
/* App Layout */
.app-layout {
display: flex;
flex: 1;
height: calc(100vh - 42px);
}
/* Sidebar */
.sidebar {
width: 340px;
background-color: var(--bg-sidebar);
border-right: 1px solid var(--border-color);
display: flex;
flex-direction: column;
padding: 20px;
gap: 20px;
overflow-y: auto;
}
.brand-container {
display: flex;
align-items: center;
gap: 12px;
padding-bottom: 15px;
border-bottom: 1px solid var(--border-color);
}
.brand-logo {
width: 44px;
height: 44px;
border-radius: var(--radius-md);
object-fit: cover;
border: 1px solid var(--border-highlight);
box-shadow: 0 0 12px var(--primary-glow);
}
.brand-name {
font-size: 1.4rem;
font-weight: 800;
letter-spacing: -0.02em;
background: linear-gradient(135deg, #ffffff 40%, #38bdf8 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.brand-tagline {
font-size: 0.75rem;
color: var(--primary);
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.08em;
}
.sidebar-title {
font-size: 0.78rem;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--text-dim);
margin-bottom: 12px;
font-weight: 700;
}
.quick-scenarios {
display: flex;
flex-direction: column;
gap: 8px;
}
.scenario-btn {
background: rgba(30, 41, 59, 0.6);
border: 1px solid var(--border-color);
color: var(--text-muted);
padding: 10px 12px;
border-radius: var(--radius-sm);
font-size: 0.84rem;
text-align: left;
cursor: pointer;
transition: all 0.2s ease;
font-family: inherit;
line-height: 1.3;
}
.scenario-btn:hover {
background: rgba(14, 165, 233, 0.15);
border-color: var(--border-highlight);
color: var(--text-main);
transform: translateX(4px);
}
.stats-card {
background: rgba(15, 23, 42, 0.8);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
padding: 14px;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 8px;
text-align: center;
}
.stat-val {
display: block;
font-size: 1.1rem;
font-weight: 700;
color: var(--primary);
}
.stat-label {
font-size: 0.68rem;
color: var(--text-dim);
}
.sidebar-footer {
margin-top: auto;
display: flex;
flex-direction: column;
gap: 8px;
}
.secondary-btn, .ghost-btn {
padding: 10px;
border-radius: var(--radius-sm);
font-size: 0.84rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
font-family: inherit;
}
.secondary-btn {
background: rgba(14, 165, 233, 0.15);
border: 1px solid var(--primary);
color: #38bdf8;
}
.secondary-btn:hover {
background: var(--primary);
color: #ffffff;
}
.ghost-btn {
background: transparent;
border: 1px solid var(--border-color);
color: var(--text-dim);
}
.ghost-btn:hover {
color: var(--text-muted);
border-color: var(--text-dim);
}
/* Main Content */
.main-content {
flex: 1;
display: flex;
flex-direction: column;
background-color: var(--bg-dark);
position: relative;
}
/* Chat Header */
.chat-header {
padding: 16px 24px;
border-bottom: 1px solid var(--border-color);
display: flex;
justify-content: space-between;
align-items: center;
background: rgba(15, 23, 42, 0.5);
backdrop-filter: blur(8px);
}
.chat-header h2 {
font-size: 1.1rem;
font-weight: 700;
}
.chat-header p {
font-size: 0.8rem;
color: var(--text-dim);
}
.status-indicator {
display: flex;
align-items: center;
gap: 8px;
font-size: 0.8rem;
color: var(--accent-emerald);
}
.status-indicator .dot {
width: 8px;
height: 8px;
background-color: var(--accent-emerald);
border-radius: 50%;
box-shadow: 0 0 8px var(--accent-emerald);
}
/* Chat Container */
.chat-container {
flex: 1;
overflow-y: auto;
padding: 24px;
display: flex;
flex-direction: column;
gap: 20px;
}
.message-row {
display: flex;
gap: 14px;
max-width: 920px;
width: 100%;
margin: 0 auto;
}
.message-row.user {
flex-direction: row-reverse;
}
.avatar {
width: 36px;
height: 36px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 0.9rem;
flex-shrink: 0;
}
.message-row.assistant .avatar {
background: linear-gradient(135deg, #0ea5e9, #6366f1);
color: white;
box-shadow: 0 0 10px rgba(14, 165, 233, 0.4);
}
.message-row.user .avatar {
background: #334155;
color: #f8fafc;
}
.bubble {
background: var(--bg-card);
backdrop-filter: blur(12px);
border: 1px solid var(--border-color);
padding: 16px 20px;
border-radius: var(--radius-lg);
font-size: 0.94rem;
line-height: 1.6;
max-width: 85%;
box-shadow: var(--shadow-subtle);
}
.message-row.user .bubble {
background: #1e293b;
border-color: rgba(56, 189, 248, 0.2);
color: #f1f5f9;
border-top-right-radius: 4px;
}
.message-row.assistant .bubble {
border-top-left-radius: 4px;
}
/* Welcome Card */
.welcome-card {
display: flex;
flex-direction: column;
gap: 12px;
}
.welcome-banner {
width: 100%;
max-height: 180px;
object-fit: cover;
border-radius: var(--radius-md);
margin-bottom: 8px;
border: 1px solid var(--border-highlight);
}
.welcome-card h3 {
font-size: 1.25rem;
font-weight: 700;
color: #38bdf8;
}
.pill-group {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 6px;
}
.pill {
background: rgba(14, 165, 233, 0.1);
border: 1px solid rgba(14, 165, 233, 0.25);
color: #7dd3fc;
padding: 4px 10px;
border-radius: 20px;
font-size: 0.76rem;
font-weight: 600;
}
/* Product Cards Container */
.rec-cards-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 14px;
margin-top: 16px;
margin-bottom: 16px;
}
.product-card {
background: rgba(15, 23, 42, 0.85);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
padding: 16px;
display: flex;
flex-direction: column;
gap: 10px;
transition: all 0.2s ease;
position: relative;
overflow: hidden;
}
.product-card:hover {
border-color: var(--border-highlight);
transform: translateY(-2px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.product-card.best-price {
border-color: rgba(16, 185, 129, 0.4);
}
.card-badge {
position: absolute;
top: 10px;
right: 10px;
font-size: 0.7rem;
font-weight: 700;
padding: 2px 8px;
border-radius: 12px;
background: rgba(16, 185, 129, 0.15);
color: #34d399;
border: 1px solid rgba(16, 185, 129, 0.3);
}
.card-title {
font-size: 1rem;
font-weight: 700;
color: #f8fafc;
padding-right: 60px;
}
.card-price {
display: flex;
align-items: baseline;
gap: 4px;
margin: 4px 0;
}
.price-amount {
font-size: 1.6rem;
font-weight: 800;
color: #38bdf8;
}
.price-period {
font-size: 0.8rem;
color: var(--text-dim);
}
.card-specs {
display: flex;
flex-direction: column;
gap: 6px;
font-size: 0.82rem;
color: #cbd5e1;
background: rgba(0, 0, 0, 0.25);
padding: 10px;
border-radius: var(--radius-sm);
}
.spec-row {
display: flex;
align-items: center;
gap: 8px;
}
.card-actions {
display: flex;
gap: 8px;
margin-top: auto;
}
.card-btn {
flex: 1;
padding: 8px;
border-radius: var(--radius-sm);
font-size: 0.8rem;
font-weight: 600;
cursor: pointer;
border: none;
transition: background 0.2s;
font-family: inherit;
text-align: center;
}
.card-btn.primary {
background: var(--primary);
color: #ffffff;
}
.card-btn.primary:hover {
background: #0284c7;
}
.card-btn.outline {
background: transparent;
border: 1px solid var(--border-color);
color: var(--text-muted);
}
.card-btn.outline:hover {
border-color: var(--text-dim);
color: var(--text-main);
}
/* Tables inside chat */
.comparison-table-wrapper {
overflow-x: auto;
margin: 16px 0;
border-radius: var(--radius-sm);
border: 1px solid var(--border-color);
}
.telecall-table {
width: 100%;
border-collapse: collapse;
font-size: 0.84rem;
text-align: left;
}
.telecall-table th {
background: #0f172a;
padding: 10px 14px;
color: #94a3b8;
font-weight: 600;
border-bottom: 1px solid var(--border-color);
}
.telecall-table td {
padding: 10px 14px;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
color: #e2e8f0;
}
.telecall-table tr:hover td {
background: rgba(255, 255, 255, 0.02);
}
/* Quick Chips & Actions */
.quick-chips {
display: flex;
flex-wrap: wrap;
gap: 8px;
padding: 0 24px 10px 24px;
max-width: 920px;
margin: 0 auto;
width: 100%;
}
.chip-btn {
background: rgba(30, 41, 59, 0.8);
border: 1px solid var(--border-color);
color: #93c5fd;
padding: 6px 14px;
border-radius: 20px;
font-size: 0.8rem;
cursor: pointer;
transition: all 0.2s;
font-family: inherit;
}
.chip-btn:hover {
background: rgba(14, 165, 233, 0.2);
border-color: var(--border-highlight);
color: #ffffff;
}
/* Input Area */
.input-area {
padding: 12px 24px 20px 24px;
background: rgba(15, 23, 42, 0.7);
backdrop-filter: blur(12px);
border-top: 1px solid var(--border-color);
}
.input-form {
max-width: 920px;
margin: 0 auto;
display: flex;
gap: 10px;
}
.chat-input {
flex: 1;
background: #1e293b;
border: 1px solid var(--border-color);
padding: 14px 18px;
border-radius: var(--radius-md);
color: var(--text-main);
font-size: 0.94rem;
font-family: inherit;
outline: none;
transition: border-color 0.2s;
}
.chat-input:focus {
border-color: var(--primary);
box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}
.send-btn {
background: linear-gradient(135deg, #0ea5e9, #6366f1);
border: none;
color: white;
padding: 0 24px;
border-radius: var(--radius-md);
font-size: 0.92rem;
font-weight: 600;
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
transition: opacity 0.2s, transform 0.1s;
}
.send-btn:hover {
opacity: 0.95;
transform: translateY(-1px);
}
/* Modal */
.modal-backdrop {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.75);
backdrop-filter: blur(6px);
display: flex;
align-items: center;
justify-content: center;
z-index: 200;
padding: 20px;
}
.modal-card {
background: #0f172a;
border: 1px solid var(--border-color);
border-radius: var(--radius-lg);
max-width: 980px;
width: 100%;
max-height: 85vh;
display: flex;
flex-direction: column;
overflow: hidden;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}
.modal-header {
padding: 18px 24px;
border-bottom: 1px solid var(--border-color);
display: flex;
justify-content: space-between;
align-items: center;
}
.close-btn {
background: none;
border: none;
color: var(--text-muted);
font-size: 1.5rem;
cursor: pointer;
}
.modal-body {
padding: 20px 24px;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 16px;
}
.catalog-tabs {
display: flex;
flex-wrap: wrap;
gap: 8px;
border-bottom: 1px solid var(--border-color);
padding-bottom: 12px;
}
.tab-btn {
background: transparent;
border: 1px solid var(--border-color);
color: var(--text-muted);
padding: 6px 14px;
border-radius: var(--radius-sm);
font-size: 0.82rem;
cursor: pointer;
}
.tab-btn.active {
background: var(--primary);
border-color: var(--primary);
color: white;
}
.products-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 16px;
}
@media (max-width: 860px) {
.app-layout {
flex-direction: column;
}
.sidebar {
width: 100%;
height: auto;
max-height: 220px;
}
}
SHA-256: 12c9f949e9a7ab18bb02aac53c85b43cd33cf3545b3543b1bd862c2a19e97391