github-actions
Initial sync to Hugging Face
6793beb
Raw History Blame Contribute Delete
21.9 kB
/* ================================================================
Customer Support Agent β€” Design System & Styles
Premium dark theme with glassmorphism and micro-animations
================================================================ */
/* ── Fonts ───────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
/* ── CSS Variables ───────────────────────────────────────────────── */
:root {
/* Background */
--bg-primary: #0a0e1a;
--bg-secondary: #111827;
--bg-card: rgba(17, 24, 39, 0.7);
--bg-card-hover: rgba(31, 41, 55, 0.8);
--bg-glass: rgba(255, 255, 255, 0.03);
--bg-input: rgba(255, 255, 255, 0.05);
/* Text */
--text-primary: #f1f5f9;
--text-secondary: #94a3b8;
--text-muted: #64748b;
--text-heading: #e2e8f0;
/* Accent / Brand */
--accent-primary: #6366f1;
--accent-primary-glow: rgba(99, 102, 241, 0.3);
--accent-hover: #818cf8;
--accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
/* Status Colors */
--color-success: #10b981;
--color-success-bg: rgba(16, 185, 129, 0.12);
--color-warning: #f59e0b;
--color-warning-bg: rgba(245, 158, 11, 0.12);
--color-danger: #ef4444;
--color-danger-bg: rgba(239, 68, 68, 0.12);
--color-info: #3b82f6;
--color-info-bg: rgba(59, 130, 246, 0.12);
/* Category Colors */
--cat-billing: #f59e0b;
--cat-technical: #3b82f6;
--cat-account: #8b5cf6;
--cat-general: #6b7280;
/* Borders */
--border-subtle: rgba(255, 255, 255, 0.06);
--border-input: rgba(255, 255, 255, 0.1);
--border-focus: rgba(99, 102, 241, 0.5);
/* Misc */
--radius-sm: 8px;
--radius-md: 12px;
--radius-lg: 16px;
--radius-xl: 20px;
--shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
--shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
--transition-fast: 0.15s ease;
--transition-normal: 0.25s ease;
--transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
/* ── Reset & Base ────────────────────────────────────────────────── */
*, *::before, *::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
font-size: 15px;
scroll-behavior: smooth;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
min-height: 100vh;
overflow-x: hidden;
-webkit-font-smoothing: antialiased;
}
/* Background pattern */
body::before {
content: '';
position: fixed;
inset: 0;
background:
radial-gradient(ellipse 80% 60% at 50% -20%, rgba(99, 102, 241, 0.08), transparent),
radial-gradient(ellipse 60% 40% at 80% 80%, rgba(139, 92, 246, 0.05), transparent);
pointer-events: none;
z-index: 0;
}
/* ── Layout ──────────────────────────────────────────────────────── */
.app-container {
display: flex;
min-height: 100vh;
position: relative;
z-index: 1;
}
/* ── Sidebar ─────────────────────────────────────────────────────── */
.sidebar {
width: 260px;
background: var(--bg-secondary);
border-right: 1px solid var(--border-subtle);
display: flex;
flex-direction: column;
position: fixed;
top: 0;
left: 0;
bottom: 0;
z-index: 100;
}
.sidebar-header {
padding: 24px 20px;
border-bottom: 1px solid var(--border-subtle);
}
.sidebar-logo {
display: flex;
align-items: center;
gap: 12px;
}
.logo-icon {
width: 36px;
height: 36px;
background: var(--accent-gradient);
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
box-shadow: var(--shadow-glow);
}
.logo-text {
font-size: 1rem;
font-weight: 700;
color: var(--text-heading);
line-height: 1.2;
}
.logo-text span {
font-size: 0.7rem;
font-weight: 400;
color: var(--text-muted);
display: block;
margin-top: 2px;
}
.sidebar-nav {
padding: 16px 12px;
flex: 1;
}
.nav-item {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 16px;
border-radius: var(--radius-sm);
color: var(--text-secondary);
cursor: pointer;
transition: all var(--transition-fast);
font-size: 0.9rem;
font-weight: 500;
margin-bottom: 4px;
border: 1px solid transparent;
}
.nav-item:hover {
background: var(--bg-glass);
color: var(--text-primary);
}
.nav-item.active {
background: rgba(99, 102, 241, 0.1);
color: var(--accent-hover);
border-color: rgba(99, 102, 241, 0.2);
}
.nav-item .nav-icon {
font-size: 1.1rem;
width: 24px;
text-align: center;
}
.nav-badge {
margin-left: auto;
background: var(--accent-primary);
color: white;
font-size: 0.7rem;
font-weight: 600;
padding: 2px 8px;
border-radius: 99px;
min-width: 22px;
text-align: center;
}
.sidebar-footer {
padding: 16px 20px;
border-top: 1px solid var(--border-subtle);
}
.sidebar-status {
display: flex;
align-items: center;
gap: 8px;
font-size: 0.78rem;
color: var(--text-muted);
}
.status-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--color-success);
animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
0%, 100% { opacity: 1; }
50% { opacity: 0.4; }
}
/* ── Main Content ────────────────────────────────────────────────── */
.main-content {
flex: 1;
margin-left: 260px;
padding: 32px 40px;
min-height: 100vh;
}
.page-header {
margin-bottom: 32px;
}
.page-title {
font-size: 1.6rem;
font-weight: 700;
color: var(--text-heading);
margin-bottom: 6px;
}
.page-subtitle {
font-size: 0.88rem;
color: var(--text-muted);
}
/* ── View toggling ───────────────────────────────────────────────── */
.view {
display: none;
animation: fadeSlideIn 0.35s ease forwards;
}
.view.active {
display: block;
}
@keyframes fadeSlideIn {
from { opacity: 0; transform: translateY(12px); }
to { opacity: 1; transform: translateY(0); }
}
/* ── Cards ───────────────────────────────────────────────────────── */
.card {
background: var(--bg-card);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-lg);
backdrop-filter: blur(12px);
box-shadow: var(--shadow-card);
}
.card-header {
padding: 20px 24px;
border-bottom: 1px solid var(--border-subtle);
display: flex;
align-items: center;
justify-content: space-between;
}
.card-title {
font-size: 1rem;
font-weight: 600;
color: var(--text-heading);
}
.card-body {
padding: 24px;
}
/* ── Compose Form ────────────────────────────────────────────────── */
.compose-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
}
.form-group {
margin-bottom: 0;
}
.form-group.full-width {
grid-column: 1 / -1;
}
.form-label {
display: block;
font-size: 0.8rem;
font-weight: 600;
color: var(--text-secondary);
margin-bottom: 8px;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.form-input,
.form-textarea {
width: 100%;
padding: 12px 16px;
background: var(--bg-input);
border: 1px solid var(--border-input);
border-radius: var(--radius-sm);
color: var(--text-primary);
font-family: inherit;
font-size: 0.9rem;
transition: all var(--transition-fast);
outline: none;
}
.form-input:focus,
.form-textarea:focus {
border-color: var(--border-focus);
box-shadow: 0 0 0 3px var(--accent-primary-glow);
background: rgba(255, 255, 255, 0.07);
}
.form-input::placeholder,
.form-textarea::placeholder {
color: var(--text-muted);
}
.form-textarea {
resize: vertical;
min-height: 160px;
line-height: 1.6;
}
.form-actions {
display: flex;
align-items: center;
gap: 16px;
padding-top: 8px;
}
/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 11px 24px;
border: none;
border-radius: var(--radius-sm);
font-family: inherit;
font-size: 0.88rem;
font-weight: 600;
cursor: pointer;
transition: all var(--transition-normal);
outline: none;
}
.btn:focus-visible {
outline: 2px solid var(--accent-primary);
outline-offset: 2px;
box-shadow: 0 0 0 4px var(--accent-primary-glow);
}
.btn-primary {
background: var(--accent-gradient);
color: white;
box-shadow: 0 2px 12px var(--accent-primary-glow);
}
.btn-primary:hover:not(:disabled) {
transform: translateY(-1px);
box-shadow: 0 4px 20px var(--accent-primary-glow);
}
.btn-primary:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.btn-secondary {
background: var(--bg-glass);
color: var(--text-secondary);
border: 1px solid var(--border-input);
}
.btn-secondary:hover {
background: rgba(255, 255, 255, 0.08);
color: var(--text-primary);
}
.btn-sm {
padding: 7px 14px;
font-size: 0.8rem;
}
.btn-success {
background: var(--color-success);
color: white;
}
.btn-danger {
background: transparent;
color: var(--color-danger);
border: 1px solid rgba(239, 68, 68, 0.3);
}
/* ── Loading Spinner ─────────────────────────────────────────────── */
.spinner {
display: inline-block;
width: 18px;
height: 18px;
border: 2px solid rgba(255, 255, 255, 0.2);
border-top-color: white;
border-radius: 50%;
animation: spin 0.6s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* ── Pipeline Result ─────────────────────────────────────────────── */
.result-panel {
margin-top: 24px;
animation: fadeSlideIn 0.4s ease;
}
.pipeline-steps {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 12px;
margin-bottom: 24px;
}
.step-card {
background: var(--bg-glass);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
padding: 16px;
transition: all var(--transition-fast);
}
.step-label {
font-size: 0.72rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--text-muted);
margin-bottom: 8px;
}
.step-value {
font-size: 0.95rem;
font-weight: 600;
color: var(--text-heading);
}
.step-value.category {
display: inline-flex;
align-items: center;
gap: 6px;
}
.category-dot {
width: 8px;
height: 8px;
border-radius: 50%;
}
.draft-section {
background: var(--bg-glass);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
padding: 20px 24px;
}
.draft-section h4 {
font-size: 0.8rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--text-muted);
margin-bottom: 12px;
}
.draft-text {
font-size: 0.88rem;
line-height: 1.7;
color: var(--text-secondary);
white-space: pre-wrap;
}
/* ── Inbox ───────────────────────────────────────────────────────── */
.inbox-toolbar {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 20px;
}
.search-box {
position: relative;
width: 320px;
}
.search-box input {
width: 100%;
padding: 10px 16px 10px 40px;
background: var(--bg-input);
border: 1px solid var(--border-input);
border-radius: var(--radius-sm);
color: var(--text-primary);
font-family: inherit;
font-size: 0.85rem;
outline: none;
transition: all var(--transition-fast);
}
.search-box input:focus {
border-color: var(--border-focus);
box-shadow: 0 0 0 3px var(--accent-primary-glow);
}
.search-box .search-icon {
position: absolute;
left: 14px;
top: 50%;
transform: translateY(-50%);
color: var(--text-muted);
font-size: 0.9rem;
}
.inbox-stats {
display: flex;
gap: 24px;
}
.stat-item {
display: flex;
align-items: center;
gap: 6px;
font-size: 0.82rem;
color: var(--text-muted);
}
.stat-number {
font-weight: 700;
color: var(--text-heading);
}
/* ── Email List ──────────────────────────────────────────────────── */
.email-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.email-item {
background: var(--bg-card);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
padding: 18px 24px;
cursor: pointer;
transition: all var(--transition-normal);
display: grid;
grid-template-columns: 1fr auto;
align-items: center;
gap: 16px;
}
.email-item:hover {
background: var(--bg-card-hover);
border-color: rgba(99, 102, 241, 0.15);
transform: translateY(-1px);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.email-main {
overflow: hidden;
}
.email-sender {
font-size: 0.88rem;
font-weight: 600;
color: var(--text-heading);
margin-bottom: 4px;
}
.email-subject {
font-size: 0.82rem;
color: var(--text-secondary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-bottom: 6px;
}
.email-meta {
display: flex;
align-items: center;
gap: 12px;
}
.email-time {
font-size: 0.75rem;
color: var(--text-muted);
}
.email-actions {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 8px;
}
/* ── Badges ──────────────────────────────────────────────────────── */
.badge {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 4px 10px;
border-radius: 99px;
font-size: 0.72rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.04em;
}
.badge-billing { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.badge-technical { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.badge-account { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.badge-general { background: rgba(107, 114, 128, 0.12); color: #9ca3af; }
.badge-unknown { background: rgba(107, 114, 128, 0.12); color: #6b7280; }
.badge-sent { background: var(--color-success-bg); color: var(--color-success); }
.badge-approved { background: var(--color-info-bg); color: var(--color-info); }
.badge-pending_review { background: var(--color-warning-bg); color: var(--color-warning); }
.badge-follow_up_scheduled { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.badge-processing { background: rgba(107, 114, 128, 0.12); color: #9ca3af; }
.badge-rejected { background: var(--color-danger-bg); color: var(--color-danger); }
/* ── Detail Modal / Overlay ──────────────────────────────────────── */
.detail-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(4px);
z-index: 500;
display: none;
align-items: flex-start;
justify-content: center;
padding: 40px;
overflow-y: auto;
}
.detail-overlay.active {
display: flex;
animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.detail-panel {
background: var(--bg-secondary);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-xl);
width: 100%;
max-width: 780px;
box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
animation: slideUp 0.3s ease;
}
@keyframes slideUp {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.detail-header {
padding: 24px 28px;
border-bottom: 1px solid var(--border-subtle);
display: flex;
align-items: center;
justify-content: space-between;
}
.detail-header h3 {
font-size: 1.1rem;
font-weight: 600;
color: var(--text-heading);
}
.detail-close {
background: none;
border: none;
color: var(--text-muted);
font-size: 1.4rem;
cursor: pointer;
padding: 4px 8px;
border-radius: 6px;
transition: all var(--transition-fast);
}
.detail-close:hover {
background: rgba(255, 255, 255, 0.08);
color: var(--text-primary);
}
.detail-close:focus-visible {
outline: 2px solid var(--accent-primary);
outline-offset: 2px;
box-shadow: 0 0 0 4px var(--accent-primary-glow);
}
.detail-body {
padding: 28px;
}
.detail-section {
margin-bottom: 24px;
}
.detail-section:last-child {
margin-bottom: 0;
}
.detail-section-title {
font-size: 0.76rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--text-muted);
margin-bottom: 12px;
display: flex;
align-items: center;
gap: 8px;
}
.detail-field {
display: grid;
grid-template-columns: 120px 1fr;
gap: 8px;
padding: 8px 0;
border-bottom: 1px solid var(--border-subtle);
font-size: 0.85rem;
}
.detail-field:last-child {
border-bottom: none;
}
.detail-field-label {
color: var(--text-muted);
font-weight: 500;
}
.detail-field-value {
color: var(--text-primary);
}
.detail-content-block {
background: var(--bg-glass);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-sm);
padding: 16px 20px;
font-size: 0.85rem;
line-height: 1.7;
color: var(--text-secondary);
white-space: pre-wrap;
max-height: 300px;
overflow-y: auto;
}
/* ── Context Chips ───────────────────────────────────────────────── */
.context-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.context-chunk {
background: var(--bg-glass);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-sm);
padding: 12px 16px;
font-size: 0.82rem;
line-height: 1.6;
color: var(--text-secondary);
max-height: 120px;
overflow-y: auto;
}
/* ── Review Actions ──────────────────────────────────────────────── */
.review-actions {
display: flex;
gap: 12px;
margin-top: 16px;
}
/* ── Empty State ─────────────────────────────────────────────────── */
.empty-state {
text-align: center;
padding: 60px 20px;
color: var(--text-muted);
}
.empty-state .empty-icon {
font-size: 3rem;
margin-bottom: 16px;
opacity: 0.4;
}
.empty-state h3 {
font-size: 1.1rem;
font-weight: 600;
color: var(--text-secondary);
margin-bottom: 8px;
}
.empty-state p {
font-size: 0.85rem;
}
/* ── Toast ───────────────────────────────────────────────────────── */
.toast-container {
position: fixed;
bottom: 24px;
right: 24px;
z-index: 1000;
display: flex;
flex-direction: column;
gap: 8px;
}
.toast {
background: var(--bg-secondary);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-sm);
padding: 14px 20px;
font-size: 0.85rem;
color: var(--text-primary);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
animation: toastIn 0.3s ease;
display: flex;
align-items: center;
gap: 10px;
min-width: 280px;
}
.toast.success { border-left: 3px solid var(--color-success); }
.toast.error { border-left: 3px solid var(--color-danger); }
.toast.info { border-left: 3px solid var(--color-info); }
@keyframes toastIn {
from { opacity: 0; transform: translateX(20px); }
to { opacity: 1; transform: translateX(0); }
}
/* ── Scrollbar ───────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }
/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
.sidebar { width: 72px; }
.sidebar-header { padding: 16px 12px; }
.logo-text, .nav-item span, .nav-badge, .sidebar-footer { display: none; }
.nav-item { justify-content: center; padding: 12px; }
.main-content { margin-left: 72px; padding: 24px; }
.compose-grid { grid-template-columns: 1fr; }
.pipeline-steps { grid-template-columns: 1fr 1fr; }
}
/* ── Confidence bar ──────────────────────────────────────────────── */
.confidence-bar {
width: 100%;
height: 6px;
background: rgba(255, 255, 255, 0.06);
border-radius: 3px;
overflow: hidden;
margin-top: 6px;
}
.confidence-fill {
height: 100%;
border-radius: 3px;
transition: width 0.6s ease;
}