Spaces:
Paused
Paused
Download src/style.css from jashp2323/call-voice-agent: direct link, hf CLI and curl.
- Browser
- Download file 24.1 kB
-
https://huggingface.co/spaces/jashp2323/call-voice-agent/resolve/main/src/style.css
- Command line
-
hf download hf://spaces/jashp2323/call-voice-agent/src/style.css
-
curl -L -o style.css https://huggingface.co/spaces/jashp2323/call-voice-agent/resolve/main/src/style.css
24.1 kB
| :root { | |
| --bg-deep: #060a13; | |
| --bg-primary: #0a0e1a; | |
| --bg-card: rgba(14, 20, 38, 0.85); | |
| --bg-card-hover: rgba(20, 28, 50, 0.92); | |
| --bg-input: rgba(10, 16, 30, 0.9); | |
| --bg-glass: rgba(16, 24, 48, 0.6); | |
| --border-subtle: rgba(56, 78, 136, 0.25); | |
| --border-medium: rgba(70, 96, 160, 0.35); | |
| --border-strong: rgba(90, 120, 200, 0.45); | |
| --text-primary: #e8ecf4; | |
| --text-secondary: #98a4c0; | |
| --text-muted: #5e6d8e; | |
| --accent-blue: #3b82f6; | |
| --accent-blue-soft: rgba(59, 130, 246, 0.12); | |
| --accent-green: #10b981; | |
| --accent-green-soft: rgba(16, 185, 129, 0.12); | |
| --accent-orange: #f59e0b; | |
| --accent-orange-soft: rgba(245, 158, 11, 0.12); | |
| --accent-red: #ef4444; | |
| --accent-red-soft: rgba(239, 68, 68, 0.12); | |
| --accent-purple: #8b5cf6; | |
| --radius-sm: 8px; | |
| --radius-md: 12px; | |
| --radius-lg: 16px; | |
| --radius-xl: 20px; | |
| --shadow-sm: 0 2px 8px rgba(0,0,0,0.2); | |
| --shadow-md: 0 4px 20px rgba(0,0,0,0.3); | |
| --shadow-glow-blue: 0 0 20px rgba(59,130,246,0.15); | |
| --shadow-glow-green: 0 0 20px rgba(16,185,129,0.15); | |
| --transition-fast: 0.12s ease; | |
| --transition-normal: 0.2s ease; | |
| --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
| } | |
| *, *::before, *::after { | |
| box-sizing: border-box; | |
| margin: 0; | |
| padding: 0; | |
| } | |
| body { | |
| font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; | |
| background: var(--bg-deep); | |
| color: var(--text-primary); | |
| line-height: 1.5; | |
| min-height: 100vh; | |
| overflow-x: hidden; | |
| background-image: | |
| radial-gradient(ellipse 100% 70% at 20% -10%, rgba(59,130,246,0.06) 0%, transparent 60%), | |
| radial-gradient(ellipse 80% 60% at 80% 110%, rgba(139,92,246,0.05) 0%, transparent 50%); | |
| } | |
| #app { | |
| display: flex; | |
| flex-direction: column; | |
| height: 100vh; | |
| } | |
| .topbar { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| padding: 12px 24px; | |
| background: rgba(10, 14, 26, 0.95); | |
| border-bottom: 1px solid var(--border-subtle); | |
| backdrop-filter: blur(16px); | |
| -webkit-backdrop-filter: blur(16px); | |
| z-index: 100; | |
| flex-shrink: 0; | |
| } | |
| .topbar-brand { | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| } | |
| .brand-icon { | |
| width: 40px; | |
| height: 40px; | |
| border-radius: var(--radius-md); | |
| background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple)); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| font-size: 18px; | |
| color: #fff; | |
| box-shadow: var(--shadow-glow-blue); | |
| } | |
| .brand-name { | |
| font-size: 1.15rem; | |
| font-weight: 700; | |
| letter-spacing: -0.02em; | |
| background: linear-gradient(135deg, #e8ecf4, #98a4c0); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| background-clip: text; | |
| } | |
| .brand-sub { | |
| font-size: 0.7rem; | |
| color: var(--text-muted); | |
| font-weight: 500; | |
| letter-spacing: 0.04em; | |
| text-transform: uppercase; | |
| } | |
| .topbar-status { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| padding: 6px 14px; | |
| background: var(--bg-glass); | |
| border: 1px solid var(--border-subtle); | |
| border-radius: 999px; | |
| } | |
| .status-dot { | |
| width: 8px; | |
| height: 8px; | |
| border-radius: 50%; | |
| flex-shrink: 0; | |
| } | |
| .status-dot.online { | |
| background: var(--accent-green); | |
| box-shadow: 0 0 8px var(--accent-green); | |
| animation: pulse-dot 2s ease-in-out infinite; | |
| } | |
| .status-dot.offline { | |
| background: var(--accent-red); | |
| box-shadow: 0 0 8px var(--accent-red); | |
| } | |
| .status-text { | |
| font-size: 0.72rem; | |
| font-weight: 500; | |
| color: var(--text-secondary); | |
| } | |
| @keyframes pulse-dot { | |
| 0%, 100% { opacity: 1; } | |
| 50% { opacity: 0.5; } | |
| } | |
| .dashboard { | |
| display: grid; | |
| grid-template-columns: 280px 1fr 300px; | |
| gap: 0; | |
| flex: 1; | |
| overflow: hidden; | |
| } | |
| .panel { | |
| display: flex; | |
| flex-direction: column; | |
| overflow: hidden; | |
| } | |
| .panel-orders, | |
| .panel-feedback { | |
| background: rgba(10, 14, 26, 0.7); | |
| border-right: 1px solid var(--border-subtle); | |
| } | |
| .panel-feedback { | |
| border-right: none; | |
| border-left: 1px solid var(--border-subtle); | |
| } | |
| .panel-header { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| padding: 16px 18px; | |
| border-bottom: 1px solid var(--border-subtle); | |
| flex-shrink: 0; | |
| } | |
| .panel-title { | |
| font-size: 0.8rem; | |
| font-weight: 600; | |
| text-transform: uppercase; | |
| letter-spacing: 0.08em; | |
| color: var(--text-secondary); | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| } | |
| .panel-title i { | |
| color: var(--accent-blue); | |
| font-size: 0.85rem; | |
| } | |
| .badge { | |
| font-size: 0.68rem; | |
| font-weight: 600; | |
| padding: 2px 8px; | |
| border-radius: 999px; | |
| background: var(--accent-blue-soft); | |
| color: var(--accent-blue); | |
| border: 1px solid rgba(59, 130, 246, 0.2); | |
| } | |
| .orders-list { | |
| flex: 1; | |
| overflow-y: auto; | |
| padding: 8px; | |
| } | |
| .order-card { | |
| padding: 14px; | |
| border-radius: var(--radius-md); | |
| border: 1px solid transparent; | |
| cursor: pointer; | |
| transition: all var(--transition-normal); | |
| margin-bottom: 4px; | |
| } | |
| .order-card:hover { | |
| background: var(--bg-card-hover); | |
| border-color: var(--border-medium); | |
| } | |
| .order-card.selected { | |
| background: var(--accent-blue-soft); | |
| border-color: rgba(59, 130, 246, 0.35); | |
| box-shadow: var(--shadow-glow-blue); | |
| } | |
| .order-card-header { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| margin-bottom: 6px; | |
| } | |
| .order-id { | |
| font-size: 0.78rem; | |
| font-weight: 600; | |
| color: var(--accent-blue); | |
| letter-spacing: 0.02em; | |
| } | |
| .order-status-badge { | |
| font-size: 0.62rem; | |
| font-weight: 600; | |
| padding: 2px 8px; | |
| border-radius: 999px; | |
| text-transform: uppercase; | |
| letter-spacing: 0.05em; | |
| } | |
| .status-placed { background: var(--accent-blue-soft); color: var(--accent-blue); } | |
| .status-shipped { background: var(--accent-orange-soft); color: var(--accent-orange); } | |
| .status-out_for_delivery { background: rgba(139, 92, 246, 0.12); color: var(--accent-purple); } | |
| .status-delivered { background: var(--accent-green-soft); color: var(--accent-green); } | |
| .order-customer { | |
| font-size: 0.82rem; | |
| font-weight: 500; | |
| color: var(--text-primary); | |
| margin-bottom: 2px; | |
| } | |
| .order-product { | |
| font-size: 0.72rem; | |
| color: var(--text-secondary); | |
| line-height: 1.4; | |
| display: -webkit-box; | |
| -webkit-line-clamp: 2; | |
| -webkit-box-orient: vertical; | |
| overflow: hidden; | |
| } | |
| .order-delivery-date { | |
| font-size: 0.68rem; | |
| color: var(--text-muted); | |
| margin-top: 6px; | |
| display: flex; | |
| align-items: center; | |
| gap: 4px; | |
| } | |
| .order-delivery-date i { font-size: 0.62rem; } | |
| .agent-tabs { | |
| display: flex; | |
| gap: 4px; | |
| padding: 12px 16px; | |
| border-bottom: 1px solid var(--border-subtle); | |
| background: rgba(10, 14, 26, 0.4); | |
| flex-shrink: 0; | |
| } | |
| .agent-tab { | |
| flex: 1; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| gap: 4px; | |
| padding: 10px 8px; | |
| border: 1px solid transparent; | |
| border-radius: var(--radius-md); | |
| background: transparent; | |
| color: var(--text-muted); | |
| font-family: inherit; | |
| font-size: 0.68rem; | |
| font-weight: 500; | |
| cursor: pointer; | |
| transition: all var(--transition-normal); | |
| } | |
| .agent-tab i { font-size: 1rem; } | |
| .agent-tab:hover { | |
| color: var(--text-secondary); | |
| background: var(--bg-glass); | |
| } | |
| .agent-tab.active { | |
| border-color: var(--border-medium); | |
| background: var(--bg-card); | |
| } | |
| .agent-tab.active[data-agent="order_confirmation"] { | |
| color: var(--accent-green); | |
| border-color: rgba(16, 185, 129, 0.3); | |
| background: var(--accent-green-soft); | |
| } | |
| .agent-tab.active[data-agent="delivery_verification"] { | |
| color: var(--accent-blue); | |
| border-color: rgba(59, 130, 246, 0.3); | |
| background: var(--accent-blue-soft); | |
| } | |
| .agent-tab.active[data-agent="feedback_followup"] { | |
| color: var(--accent-orange); | |
| border-color: rgba(245, 158, 11, 0.3); | |
| background: var(--accent-orange-soft); | |
| } | |
| .selected-order-info { | |
| display: grid; | |
| grid-template-columns: repeat(4, 1fr); | |
| gap: 12px; | |
| padding: 12px 16px; | |
| background: var(--bg-glass); | |
| border-bottom: 1px solid var(--border-subtle); | |
| flex-shrink: 0; | |
| animation: fadeSlideDown 0.3s ease; | |
| } | |
| .selected-order-info.hidden { display: none; } | |
| .order-info-row { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 2px; | |
| } | |
| .info-label { | |
| font-size: 0.62rem; | |
| font-weight: 600; | |
| text-transform: uppercase; | |
| letter-spacing: 0.08em; | |
| color: var(--text-muted); | |
| } | |
| .info-value { | |
| font-size: 0.78rem; | |
| font-weight: 500; | |
| color: var(--text-primary); | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| white-space: nowrap; | |
| } | |
| .call-controls { | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| padding: 14px 16px; | |
| border-bottom: 1px solid var(--border-subtle); | |
| flex-shrink: 0; | |
| } | |
| .btn { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 8px; | |
| padding: 10px 20px; | |
| border: 1px solid var(--border-medium); | |
| border-radius: var(--radius-md); | |
| background: var(--bg-card); | |
| color: var(--text-primary); | |
| font-family: inherit; | |
| font-size: 0.82rem; | |
| font-weight: 600; | |
| cursor: pointer; | |
| transition: all var(--transition-normal); | |
| white-space: nowrap; | |
| } | |
| .btn:disabled { opacity: 0.4; cursor: not-allowed; } | |
| .btn:not(:disabled):hover { | |
| border-color: var(--border-strong); | |
| background: var(--bg-card-hover); | |
| transform: translateY(-1px); | |
| box-shadow: var(--shadow-sm); | |
| } | |
| .btn-call { | |
| background: linear-gradient(135deg, #059669, #047857); | |
| border-color: rgba(16, 185, 129, 0.4); | |
| color: #fff; | |
| } | |
| .btn-call:not(:disabled):hover { | |
| background: linear-gradient(135deg, #10b981, #059669); | |
| box-shadow: var(--shadow-glow-green); | |
| } | |
| .btn-end { | |
| background: linear-gradient(135deg, #dc2626, #b91c1c); | |
| border-color: rgba(239, 68, 68, 0.4); | |
| color: #fff; | |
| } | |
| .btn-end:not(:disabled):hover { | |
| background: linear-gradient(135deg, #ef4444, #dc2626); | |
| } | |
| .btn-whatsapp { | |
| background: linear-gradient(135deg, #25d366, #128c7e); | |
| border-color: rgba(37, 211, 102, 0.4); | |
| color: #fff; | |
| } | |
| .btn-whatsapp:not(:disabled):hover { | |
| background: linear-gradient(135deg, #128c7e, #075e54); | |
| } | |
| .btn-send { | |
| width: 42px; | |
| height: 42px; | |
| padding: 0; | |
| justify-content: center; | |
| background: linear-gradient(135deg, var(--accent-blue), #2563eb); | |
| border-color: rgba(59, 130, 246, 0.4); | |
| color: #fff; | |
| flex-shrink: 0; | |
| } | |
| .btn-icon-small { | |
| width: 30px; | |
| height: 30px; | |
| border: 1px solid var(--border-subtle); | |
| border-radius: var(--radius-sm); | |
| background: transparent; | |
| color: var(--text-muted); | |
| cursor: pointer; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| font-size: 0.72rem; | |
| transition: all var(--transition-fast); | |
| } | |
| .btn-icon-small:hover { | |
| color: var(--text-primary); | |
| border-color: var(--border-medium); | |
| background: var(--bg-glass); | |
| } | |
| .call-badge { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| margin-left: auto; | |
| padding: 6px 14px; | |
| border-radius: 999px; | |
| font-size: 0.72rem; | |
| font-weight: 500; | |
| border: 1px solid var(--border-subtle); | |
| } | |
| .call-badge.idle { color: var(--text-muted); background: transparent; } | |
| .call-badge.live { | |
| color: var(--accent-green); | |
| background: var(--accent-green-soft); | |
| border-color: rgba(16, 185, 129, 0.3); | |
| } | |
| .call-badge.ended { color: var(--text-secondary); background: var(--bg-glass); } | |
| .call-badge.ringing { | |
| color: #ff9800; | |
| background: rgba(255, 152, 0, 0.15); | |
| border-color: rgba(255, 152, 0, 0.3); | |
| } | |
| .pulse-dot-ringing { | |
| width: 8px; | |
| height: 8px; | |
| border-radius: 50%; | |
| background: #ff9800; | |
| animation: pulse-dot-ringing-kf 1.2s ease-in-out infinite; | |
| } | |
| @keyframes pulse-dot-ringing-kf { | |
| 0%, 100% { transform: scale(1); opacity: 0.6; } | |
| 50% { transform: scale(1.3); opacity: 1; } | |
| } | |
| .btn-green-pulse { | |
| background: linear-gradient(135deg, #10b981, #059669) ; | |
| border-color: rgba(16, 185, 129, 0.4) ; | |
| color: #fff ; | |
| animation: btn-pulse-kf 1.2s infinite; | |
| } | |
| @keyframes btn-pulse-kf { | |
| 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); } | |
| 70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); } | |
| 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } | |
| } | |
| .pulse-dot { | |
| width: 8px; | |
| height: 8px; | |
| border-radius: 50%; | |
| background: currentColor; | |
| opacity: 0.6; | |
| } | |
| .call-badge.live .pulse-dot { | |
| animation: pulse-dot 1.5s ease-in-out infinite; | |
| opacity: 1; | |
| } | |
| .mic-indicator { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 10px; | |
| padding: 10px; | |
| flex-shrink: 0; | |
| animation: fadeIn 0.3s ease; | |
| } | |
| .mic-indicator.hidden { display: none; } | |
| .mic-ring { | |
| width: 36px; | |
| height: 36px; | |
| border-radius: 50%; | |
| background: var(--accent-red-soft); | |
| border: 2px solid var(--accent-red); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| color: var(--accent-red); | |
| font-size: 0.85rem; | |
| animation: mic-pulse 1.5s ease-in-out infinite; | |
| } | |
| .mic-label { | |
| font-size: 0.75rem; | |
| font-weight: 500; | |
| color: var(--accent-red); | |
| letter-spacing: 0.02em; | |
| } | |
| @keyframes mic-pulse { | |
| 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3); } | |
| 50% { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); } | |
| } | |
| .transcript-area { | |
| flex: 1; | |
| display: flex; | |
| flex-direction: column; | |
| overflow: hidden; | |
| padding: 0 16px; | |
| } | |
| .transcript-title { | |
| font-size: 0.72rem; | |
| font-weight: 600; | |
| text-transform: uppercase; | |
| letter-spacing: 0.08em; | |
| color: var(--text-muted); | |
| padding: 12px 0 8px; | |
| display: flex; | |
| align-items: center; | |
| gap: 6px; | |
| flex-shrink: 0; | |
| } | |
| .transcript-title i { font-size: 0.7rem; color: var(--accent-blue); } | |
| .transcript { | |
| flex: 1; | |
| overflow-y: auto; | |
| padding-right: 4px; | |
| padding-bottom: 8px; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 8px; | |
| } | |
| .transcript-empty { | |
| flex: 1; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 12px; | |
| color: var(--text-muted); | |
| } | |
| .transcript-empty i { font-size: 2.5rem; opacity: 0.3; } | |
| .transcript-empty p { | |
| font-size: 0.82rem; | |
| text-align: center; | |
| max-width: 300px; | |
| line-height: 1.5; | |
| } | |
| .msg-bubble { | |
| max-width: 85%; | |
| padding: 10px 14px; | |
| border-radius: var(--radius-lg); | |
| animation: bubbleIn 0.25s ease; | |
| position: relative; | |
| } | |
| .msg-bubble.agent { | |
| align-self: flex-start; | |
| background: var(--bg-card); | |
| border: 1px solid var(--border-medium); | |
| border-bottom-left-radius: 4px; | |
| } | |
| .msg-bubble.user { | |
| align-self: flex-end; | |
| background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(139,92,246,0.1)); | |
| border: 1px solid rgba(59, 130, 246, 0.25); | |
| border-bottom-right-radius: 4px; | |
| } | |
| .msg-bubble.system { | |
| align-self: center; | |
| background: var(--accent-orange-soft); | |
| border: 1px solid rgba(245, 158, 11, 0.2); | |
| font-size: 0.75rem; | |
| color: var(--accent-orange); | |
| max-width: 90%; | |
| text-align: center; | |
| } | |
| .msg-role { | |
| font-size: 0.6rem; | |
| font-weight: 700; | |
| text-transform: uppercase; | |
| letter-spacing: 0.1em; | |
| margin-bottom: 3px; | |
| } | |
| .msg-bubble.agent .msg-role { color: var(--accent-blue); } | |
| .msg-bubble.user .msg-role { color: var(--accent-green); } | |
| .msg-text { | |
| font-size: 0.82rem; | |
| line-height: 1.5; | |
| color: var(--text-primary); | |
| } | |
| @keyframes bubbleIn { | |
| from { opacity: 0; transform: translateY(8px); } | |
| to { opacity: 1; transform: translateY(0); } | |
| } | |
| .text-input-bar { | |
| display: flex; | |
| gap: 8px; | |
| padding: 12px 16px; | |
| border-top: 1px solid var(--border-subtle); | |
| flex-shrink: 0; | |
| } | |
| .text-input-bar input { | |
| flex: 1; | |
| padding: 10px 16px; | |
| border: 1px solid var(--border-medium); | |
| border-radius: var(--radius-md); | |
| background: var(--bg-input); | |
| color: var(--text-primary); | |
| font-family: inherit; | |
| font-size: 0.82rem; | |
| outline: none; | |
| transition: border-color var(--transition-fast); | |
| } | |
| .text-input-bar input:focus { | |
| border-color: var(--accent-blue); | |
| box-shadow: 0 0 0 3px var(--accent-blue-soft); | |
| } | |
| .text-input-bar input:disabled { opacity: 0.4; } | |
| .text-input-bar input::placeholder { color: var(--text-muted); } | |
| .stats-grid { | |
| display: grid; | |
| grid-template-columns: 1fr 1fr; | |
| gap: 8px; | |
| padding: 12px 14px; | |
| border-bottom: 1px solid var(--border-subtle); | |
| flex-shrink: 0; | |
| } | |
| .stat-card { | |
| padding: 12px; | |
| border-radius: var(--radius-md); | |
| background: var(--bg-glass); | |
| border: 1px solid var(--border-subtle); | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| gap: 2px; | |
| } | |
| .stat-value { | |
| font-size: 1.3rem; | |
| font-weight: 700; | |
| background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple)); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| background-clip: text; | |
| } | |
| .stat-label { | |
| font-size: 0.62rem; | |
| font-weight: 500; | |
| color: var(--text-muted); | |
| text-transform: uppercase; | |
| letter-spacing: 0.06em; | |
| } | |
| .feedback-list { | |
| flex: 1; | |
| overflow-y: auto; | |
| padding: 8px 10px; | |
| } | |
| .feedback-empty { | |
| font-size: 0.78rem; | |
| color: var(--text-muted); | |
| text-align: center; | |
| padding: 24px 12px; | |
| line-height: 1.5; | |
| } | |
| .feedback-card { | |
| padding: 12px; | |
| border-radius: var(--radius-md); | |
| border: 1px solid var(--border-subtle); | |
| background: var(--bg-card); | |
| margin-bottom: 6px; | |
| transition: border-color var(--transition-fast); | |
| animation: fadeIn 0.3s ease; | |
| } | |
| .feedback-card:hover { border-color: var(--border-medium); } | |
| .feedback-header { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| margin-bottom: 6px; | |
| } | |
| .feedback-agent-type { | |
| font-size: 0.62rem; | |
| font-weight: 600; | |
| text-transform: uppercase; | |
| letter-spacing: 0.05em; | |
| padding: 2px 8px; | |
| border-radius: 999px; | |
| } | |
| .feedback-agent-type.order_confirmation, | |
| .feedback-agent-type.order { background: var(--accent-green-soft); color: var(--accent-green); } | |
| .feedback-agent-type.delivery_verification, | |
| .feedback-agent-type.delivery { background: var(--accent-blue-soft); color: var(--accent-blue); } | |
| .feedback-agent-type.feedback_followup, | |
| .feedback-agent-type.followup { background: var(--accent-orange-soft); color: var(--accent-orange); } | |
| .feedback-stars { display: flex; gap: 2px; } | |
| .feedback-stars i { font-size: 0.72rem; color: var(--text-muted); } | |
| .feedback-stars i.filled { color: var(--accent-orange); } | |
| .feedback-product { | |
| font-size: 0.75rem; | |
| font-weight: 500; | |
| color: var(--text-primary); | |
| margin-bottom: 2px; | |
| } | |
| .feedback-customer { font-size: 0.68rem; color: var(--text-secondary); } | |
| .feedback-text { | |
| font-size: 0.72rem; | |
| color: var(--text-secondary); | |
| margin-top: 6px; | |
| padding-top: 6px; | |
| border-top: 1px solid var(--border-subtle); | |
| line-height: 1.4; | |
| font-style: italic; | |
| } | |
| .loading-shimmer { | |
| text-align: center; | |
| padding: 32px 16px; | |
| color: var(--text-muted); | |
| font-size: 0.82rem; | |
| animation: shimmer 1.5s ease-in-out infinite; | |
| } | |
| @keyframes shimmer { | |
| 0%, 100% { opacity: 1; } | |
| 50% { opacity: 0.4; } | |
| } | |
| ::-webkit-scrollbar { width: 5px; } | |
| ::-webkit-scrollbar-track { background: transparent; } | |
| ::-webkit-scrollbar-thumb { background: rgba(98, 114, 164, 0.3); border-radius: 999px; } | |
| ::-webkit-scrollbar-thumb:hover { background: rgba(98, 114, 164, 0.5); } | |
| .hidden { display: none ; } | |
| @keyframes fadeIn { | |
| from { opacity: 0; } | |
| to { opacity: 1; } | |
| } | |
| @keyframes fadeSlideDown { | |
| from { opacity: 0; transform: translateY(-8px); } | |
| to { opacity: 1; transform: translateY(0); } | |
| } | |
| @media (max-width: 1100px) { | |
| .dashboard { grid-template-columns: 240px 1fr 260px; } | |
| } | |
| @media (max-width: 900px) { | |
| .dashboard { | |
| grid-template-columns: 1fr; | |
| grid-template-rows: auto 1fr auto; | |
| } | |
| .panel-orders { | |
| border-right: none; | |
| border-bottom: 1px solid var(--border-subtle); | |
| max-height: 200px; | |
| } | |
| .orders-list { | |
| display: flex; | |
| flex-wrap: nowrap; | |
| overflow-x: auto; | |
| gap: 8px; | |
| padding: 8px; | |
| } | |
| .order-card { | |
| min-width: 200px; | |
| flex-shrink: 0; | |
| margin-bottom: 0; | |
| } | |
| .panel-feedback { | |
| border-left: none; | |
| border-top: 1px solid var(--border-subtle); | |
| max-height: 250px; | |
| } | |
| .agent-tab span { display: none; } | |
| .agent-tab i { font-size: 1.2rem; } | |
| .selected-order-info { grid-template-columns: repeat(2, 1fr); } | |
| } | |
| @media (max-width: 500px) { | |
| .topbar { padding: 10px 14px; } | |
| .brand-name { font-size: 1rem; } | |
| .call-controls { flex-wrap: wrap; } | |
| .call-badge { margin-left: 0; width: 100%; justify-content: center; } | |
| } | |
| /* Simulated Checkout styling */ | |
| .panel-checkout { | |
| border-top: 1px solid var(--border-subtle); | |
| padding: 16px 18px; | |
| flex-shrink: 0; | |
| background: rgba(10, 14, 26, 0.4); | |
| } | |
| .checkout-title { | |
| font-size: 0.8rem; | |
| font-weight: 600; | |
| text-transform: uppercase; | |
| letter-spacing: 0.08em; | |
| color: var(--text-secondary); | |
| margin-bottom: 12px; | |
| display: flex; | |
| align-items: center; | |
| gap: 6px; | |
| } | |
| .checkout-form { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 8px; | |
| } | |
| .checkout-form .form-group { | |
| width: 100%; | |
| } | |
| .checkout-form input { | |
| width: 100%; | |
| padding: 8px 12px; | |
| border-radius: 6px; | |
| background: rgba(0, 0, 0, 0.2); | |
| border: 1px solid var(--border-subtle); | |
| color: var(--text-primary); | |
| font-size: 0.85rem; | |
| outline: none; | |
| transition: all 0.2s ease; | |
| } | |
| .checkout-form input:focus { | |
| border-color: var(--accent-blue); | |
| background: rgba(0, 0, 0, 0.4); | |
| } | |
| .btn-checkout { | |
| background: linear-gradient(135deg, var(--accent-blue), #2563eb); | |
| border: 1px solid rgba(59, 130, 246, 0.4); | |
| color: #fff; | |
| font-weight: 500; | |
| justify-content: center; | |
| padding: 8px 12px; | |
| font-size: 0.85rem; | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| } | |
| .btn-checkout:hover { | |
| background: linear-gradient(135deg, #2563eb, #1d4ed8); | |
| } | |
| /* Navigation tabs in topbar */ | |
| .topbar-navigation { | |
| display: flex; | |
| gap: 8px; | |
| margin-left: 2rem; | |
| } | |
| .nav-tab { | |
| background: transparent; | |
| border: 1px solid transparent; | |
| color: var(--text-secondary); | |
| padding: 6px 16px; | |
| border-radius: 6px; | |
| font-size: 0.85rem; | |
| font-weight: 500; | |
| cursor: pointer; | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| transition: all 0.2s ease; | |
| } | |
| .nav-tab:hover { | |
| background: rgba(255, 255, 255, 0.05); | |
| color: var(--text-primary); | |
| } | |
| .nav-tab.active { | |
| background: rgba(59, 130, 246, 0.15); | |
| border-color: rgba(59, 130, 246, 0.3); | |
| color: var(--accent-blue); | |
| } | |
| /* Analytics panel styling */ | |
| .panel-analytics { | |
| flex: 1; | |
| display: flex; | |
| flex-direction: column; | |
| padding: 24px; | |
| gap: 24px; | |
| overflow-y: auto; | |
| } | |
| .analytics-header { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| border-bottom: 1px solid var(--border-subtle); | |
| padding-bottom: 16px; | |
| flex-shrink: 0; | |
| } | |
| .analytics-title { | |
| font-size: 1.25rem; | |
| font-weight: 700; | |
| color: var(--text-primary); | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| } | |
| /* Stats grid */ | |
| .analytics-stats-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); | |
| gap: 16px; | |
| } | |
| .analytics-stat-card { | |
| background: rgba(15, 23, 42, 0.4); | |
| border: 1px solid var(--border-subtle); | |
| border-radius: 12px; | |
| padding: 18px; | |
| display: flex; | |
| align-items: center; | |
| gap: 16px; | |
| box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); | |
| transition: transform 0.2s ease; | |
| } | |
| .analytics-stat-card:hover { | |
| transform: translateY(-2px); | |
| } | |
| .stat-icon { | |
| width: 48px; | |
| height: 48px; | |
| border-radius: 10px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| font-size: 1.25rem; | |
| } | |
| .stat-icon.blue { background: rgba(59, 130, 246, 0.15); color: #3b82f6; } | |
| .stat-icon.green { background: rgba(16, 185, 129, 0.15); color: #10b981; } | |
| .stat-icon.orange { background: rgba(249, 115, 22, 0.15); color: #f97316; } | |
| .stat-icon.purple { background: rgba(168, 85, 247, 0.15); color: #a855f7; } | |
| .stat-content { | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .stat-num { | |
| font-size: 1.5rem; | |
| font-weight: 700; | |
| color: var(--text-primary); | |
| line-height: 1; | |
| } | |
| .stat-label { | |
| font-size: 0.75rem; | |
| font-weight: 500; | |
| color: var(--text-muted); | |
| margin-top: 4px; | |
| } | |
| /* Charts Grid */ | |
| .analytics-charts-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); | |
| gap: 20px; | |
| } | |
| .chart-card { | |
| background: rgba(15, 23, 42, 0.4); | |
| border: 1px solid var(--border-subtle); | |
| border-radius: 12px; | |
| padding: 20px; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 16px; | |
| box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); | |
| min-height: 320px; | |
| } | |
| .chart-card h3 { | |
| font-size: 0.9rem; | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| text-transform: uppercase; | |
| letter-spacing: 0.05em; | |
| border-left: 3px solid var(--accent-blue); | |
| padding-left: 8px; | |
| } | |
| .chart-container { | |
| flex: 1; | |
| position: relative; | |
| width: 100%; | |
| height: 100%; | |
| } | |