/* ================================================ ScamShield AI - Dashboard Styles ================================================ */ :root { /* Colors - Cyberpunk/Security Theme */ --bg-primary: #0a0e17; --bg-secondary: #111827; --bg-tertiary: #1a2234; --bg-card: #1e293b; --accent-primary: #00d4ff; --accent-secondary: #7c3aed; --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%); --success: #10b981; --warning: #f59e0b; --danger: #ef4444; --info: #3b82f6; --text-primary: #f1f5f9; --text-secondary: #94a3b8; --text-muted: #64748b; --border-color: #334155; --border-glow: rgba(0, 212, 255, 0.3); /* Typography */ --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; --font-mono: 'JetBrains Mono', 'Fira Code', monospace; /* Spacing */ --spacing-xs: 4px; --spacing-sm: 8px; --spacing-md: 16px; --spacing-lg: 24px; --spacing-xl: 32px; /* Border Radius */ --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-full: 9999px; /* Shadows */ --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3); --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4); --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5); --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.2); } /* Reset & Base */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html, body { height: 100%; font-family: var(--font-sans); font-size: 14px; background: var(--bg-primary); color: var(--text-primary); line-height: 1.5; } /* App Container */ .app-container { display: flex; flex-direction: column; height: 100vh; overflow: hidden; } /* Header */ .header { display: flex; justify-content: space-between; align-items: center; padding: var(--spacing-md) var(--spacing-xl); background: var(--bg-secondary); border-bottom: 1px solid var(--border-color); box-shadow: var(--shadow-md); } .logo { display: flex; align-items: center; gap: var(--spacing-md); } .logo-icon { font-size: 28px; } .logo h1 { font-size: 1.5rem; font-weight: 700; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .tagline { font-size: 0.8rem; color: var(--text-secondary); font-weight: 500; letter-spacing: 0.02em; } .badge { padding: 4px 12px; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: var(--radius-full); font-size: 0.75rem; color: var(--text-secondary); } .header-right { display: flex; align-items: center; gap: var(--spacing-md); } .api-status { display: flex; align-items: center; gap: var(--spacing-sm); padding: 8px 16px; background: var(--bg-tertiary); border-radius: var(--radius-full); } .status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-muted); animation: pulse 2s infinite; } .status-dot.online { background: var(--success); } .status-dot.degraded { background: var(--warning); } .status-dot.offline { background: var(--danger); } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } /* Buttons */ .btn { display: inline-flex; align-items: center; gap: var(--spacing-sm); padding: 10px 20px; font-family: var(--font-sans); font-size: 0.875rem; font-weight: 500; border: none; border-radius: var(--radius-md); cursor: pointer; transition: all 0.2s ease; } .btn-primary { background: var(--accent-gradient); color: white; } .btn-primary:hover { box-shadow: var(--shadow-glow); transform: translateY(-1px); } .btn-secondary { background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border-color); } .btn-secondary:hover { background: var(--bg-card); border-color: var(--accent-primary); } .btn-small { padding: 6px 12px; font-size: 0.75rem; } .btn-full { width: 100%; justify-content: center; } /* Main Content */ .main-content { display: grid; grid-template-columns: 1fr 380px; gap: var(--spacing-lg); padding: var(--spacing-lg); flex: 1; overflow: hidden; } /* Panels */ .panel { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; } .panel-header { display: flex; justify-content: space-between; align-items: center; padding: var(--spacing-md) var(--spacing-lg); background: var(--bg-tertiary); border-bottom: 1px solid var(--border-color); } .panel-header h2 { font-size: 1rem; font-weight: 600; } .session-info { display: flex; align-items: center; gap: var(--spacing-md); font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); } /* Chat Panel */ .chat-panel { display: flex; flex-direction: column; } .chat-container { flex: 1; overflow-y: auto; padding: var(--spacing-lg); display: flex; flex-direction: column; gap: var(--spacing-md); } .chat-welcome { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--spacing-xl); color: var(--text-secondary); } .welcome-icon { font-size: 64px; margin-bottom: var(--spacing-md); } .chat-welcome h3 { font-size: 1.25rem; color: var(--text-primary); margin-bottom: var(--spacing-sm); } .example-messages { margin-top: var(--spacing-lg); display: flex; flex-direction: column; gap: var(--spacing-sm); } .example-btn { padding: 10px 20px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); color: var(--text-primary); cursor: pointer; transition: all 0.2s ease; } .example-btn:hover { border-color: var(--accent-primary); background: var(--bg-tertiary); } /* Chat Messages */ .chat-message { display: flex; gap: var(--spacing-md); animation: messageIn 0.3s ease; } @keyframes messageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .chat-message.scammer { flex-direction: row; } .chat-message.agent { flex-direction: row-reverse; } .message-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; } .chat-message.scammer .message-avatar { background: linear-gradient(135deg, #ef4444, #dc2626); } .chat-message.agent .message-avatar { background: linear-gradient(135deg, #10b981, #059669); } .message-content { max-width: 70%; padding: var(--spacing-md); border-radius: var(--radius-lg); } .chat-message.scammer .message-content { background: var(--bg-card); border-bottom-left-radius: 4px; } .chat-message.agent .message-content { background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(124, 58, 237, 0.15)); border: 1px solid rgba(0, 212, 255, 0.3); border-bottom-right-radius: 4px; } .message-sender { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; } .message-text { line-height: 1.6; } .message-meta { display: flex; gap: var(--spacing-md); margin-top: var(--spacing-sm); font-size: 0.7rem; color: var(--text-muted); } /* Chat Input */ .chat-input-container { padding: var(--spacing-md) var(--spacing-lg); background: var(--bg-tertiary); border-top: 1px solid var(--border-color); } .input-wrapper { display: flex; gap: var(--spacing-md); background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: var(--spacing-sm); transition: border-color 0.2s ease; } .input-wrapper:focus-within { border-color: var(--accent-primary); box-shadow: var(--shadow-glow); } .input-wrapper textarea { flex: 1; background: transparent; border: none; color: var(--text-primary); font-family: var(--font-sans); font-size: 0.9rem; resize: none; padding: var(--spacing-sm); } .input-wrapper textarea::placeholder { color: var(--text-muted); } .input-wrapper textarea:focus { outline: none; } .send-btn { display: flex; align-items: center; gap: var(--spacing-sm); padding: 12px 24px; background: var(--accent-gradient); border: none; border-radius: var(--radius-md); color: white; font-weight: 600; cursor: pointer; transition: all 0.2s ease; } .send-btn:hover { box-shadow: var(--shadow-glow); } .send-btn:disabled { opacity: 0.5; cursor: not-allowed; } .input-hint { text-align: right; padding-top: var(--spacing-sm); font-size: 0.75rem; color: var(--text-muted); } .input-hint kbd { padding: 2px 6px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 4px; font-family: var(--font-mono); font-size: 0.7rem; } /* Intel Panel */ .intel-panel { overflow-y: auto; } .intel-section { padding: var(--spacing-md); border-bottom: 1px solid var(--border-color); } .intel-section h3 { font-size: 0.85rem; font-weight: 600; margin-bottom: var(--spacing-md); color: var(--text-secondary); } /* Detection Result */ .detection-result { padding: var(--spacing-md); background: var(--bg-card); border-radius: var(--radius-md); } .detection-result.scam { border-left: 4px solid var(--danger); background: rgba(239, 68, 68, 0.1); } .detection-result.safe { border-left: 4px solid var(--success); background: rgba(16, 185, 129, 0.1); } .detection-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; } .detection-value { font-size: 1.5rem; font-weight: 700; } .detection-result.scam .detection-value { color: var(--danger); } .detection-result.safe .detection-value { color: var(--success); } .confidence-bar { height: 6px; background: var(--bg-tertiary); border-radius: var(--radius-full); margin-top: var(--spacing-sm); overflow: hidden; } .confidence-fill { height: 100%; background: var(--accent-gradient); border-radius: var(--radius-full); transition: width 0.5s ease; } .no-data { text-align: center; color: var(--text-muted); font-style: italic; } /* Intel Grid */ .intel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--spacing-sm); } .intel-card { padding: var(--spacing-md); background: var(--bg-card); border-radius: var(--radius-md); text-align: center; } .intel-icon { font-size: 24px; margin-bottom: 4px; } .intel-label { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 4px; } .intel-value { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent-primary); word-break: break-all; } .intel-value.has-data { color: var(--success); } /* Agent Info */ .agent-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--spacing-sm); } .agent-stat { padding: var(--spacing-sm); background: var(--bg-card); border-radius: var(--radius-sm); } .stat-label { display: block; font-size: 0.7rem; color: var(--text-muted); } .stat-value { font-weight: 600; color: var(--text-primary); text-transform: capitalize; } /* Health Grid */ .health-grid { display: grid; gap: var(--spacing-sm); } .health-item { display: flex; justify-content: space-between; padding: var(--spacing-sm); background: var(--bg-card); border-radius: var(--radius-sm); } .health-label { font-size: 0.8rem; } .health-status { font-size: 0.75rem; font-weight: 600; padding: 2px 8px; border-radius: var(--radius-full); } .health-status.online { background: rgba(16, 185, 129, 0.2); color: var(--success); } .health-status.offline { background: rgba(239, 68, 68, 0.2); color: var(--danger); } .health-status.degraded { background: rgba(245, 158, 11, 0.2); color: var(--warning); } /* Footer */ .footer { display: flex; justify-content: space-between; padding: var(--spacing-md) var(--spacing-xl); background: var(--bg-secondary); border-top: 1px solid var(--border-color); font-size: 0.8rem; color: var(--text-muted); } .footer a { color: var(--accent-primary); text-decoration: none; } .footer a:hover { text-decoration: underline; } .separator { margin: 0 var(--spacing-sm); } /* Modal */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); justify-content: center; align-items: center; z-index: 1000; } .modal.active { display: flex; } .modal-content { width: 90%; max-width: 800px; max-height: 80vh; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; } .modal-header { display: flex; justify-content: space-between; align-items: center; padding: var(--spacing-lg); background: var(--bg-tertiary); border-bottom: 1px solid var(--border-color); } .modal-close { width: 32px; height: 32px; background: transparent; border: none; color: var(--text-secondary); font-size: 24px; cursor: pointer; border-radius: 50%; transition: background 0.2s ease; } .modal-close:hover { background: var(--bg-card); } .modal-body { flex: 1; padding: var(--spacing-lg); overflow-y: auto; } .modal-footer { display: flex; justify-content: flex-end; gap: var(--spacing-md); padding: var(--spacing-lg); background: var(--bg-tertiary); border-top: 1px solid var(--border-color); } /* Report Styles */ .report-section { margin-bottom: var(--spacing-lg); } .report-section h4 { font-size: 0.9rem; color: var(--accent-primary); margin-bottom: var(--spacing-sm); padding-bottom: var(--spacing-sm); border-bottom: 1px solid var(--border-color); } .report-item { display: flex; gap: var(--spacing-md); padding: var(--spacing-sm) 0; } .report-item-label { min-width: 120px; color: var(--text-muted); } .report-item-value { font-family: var(--font-mono); color: var(--text-primary); } .report-list { list-style: none; } .report-list li { padding: 4px 0; font-family: var(--font-mono); color: var(--success); } /* Scrollbar */ ::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-track { background: var(--bg-tertiary); } ::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: var(--text-muted); } /* Loading State */ .loading { position: relative; pointer-events: none; } .loading::after { content: ''; position: absolute; top: 50%; left: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border: 3px solid var(--border-color); border-top-color: var(--accent-primary); border-radius: 50%; animation: spin 0.8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* GUVI Callback Section */ .callback-status { background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%); border: 1px solid var(--success); border-radius: var(--radius-md); padding: var(--spacing-md); } .callback-triggered { display: flex; align-items: center; gap: var(--spacing-sm); margin-bottom: var(--spacing-md); padding-bottom: var(--spacing-sm); border-bottom: 1px solid rgba(16, 185, 129, 0.3); } .callback-icon { font-size: 1.5rem; animation: pulse 2s ease-in-out infinite; } @keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } } .callback-text { font-weight: 600; color: var(--success); font-size: 1rem; } .callback-details { display: flex; flex-direction: column; gap: var(--spacing-sm); } .callback-item { display: flex; justify-content: space-between; align-items: center; gap: var(--spacing-sm); } .callback-label { color: var(--text-secondary); font-size: 0.85rem; } .callback-value { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-primary); } .callback-url { font-size: 0.75rem; word-break: break-all; text-align: right; max-width: 180px; color: var(--accent-primary); } /* System Messages */ .system-message { text-align: center; padding: 10px; color: var(--success); background: rgba(16, 185, 129, 0.1); border-radius: var(--radius-sm); margin: var(--spacing-sm) 0; font-size: 0.9rem; } /* Responsive */ @media (max-width: 1024px) { .main-content { grid-template-columns: 1fr; } .intel-panel { max-height: 400px; } }