okbasto2
feat: output raw QR text payload directly in logs and Web UI with copy button
f27ede2
Raw History Blame Contribute Delete
22.8 kB
:root { --bg-primary: #0b0f19; --bg-secondary: #121826; --bg-card: rgba(18, 24, 38, 0.88); --border-color: rgba(255, 255, 255, 0.09); --border-glow: rgba(0, 242, 254, 0.3); --text-primary: #f3f4f6; --text-secondary: #9ca3af; --text-muted: #6b7280; --accent-cyan: #00f2fe; --accent-blue: #4facfe; --accent-green: #10b981; --accent-red: #ef4444; --accent-amber: #f59e0b; --accent-purple: #8b5cf6; --font-main: 'Outfit', sans-serif; --font-mono: 'JetBrains Mono', monospace; } * { margin: 0; padding: 0; box-sizing: border-box; } body { background-color: var(--bg-primary); color: var(--text-primary); font-family: var(--font-main); min-height: 100vh; background-image: radial-gradient(at 100% 0%, rgba(79, 172, 254, 0.07) 0px, transparent 50%), radial-gradient(at 0% 100%, rgba(0, 242, 254, 0.05) 0px, transparent 50%); background-attachment: fixed; } .view-hidden { display: none !important; } .view-active { display: block; animation: fadeIn 0.25s ease forwards; } @keyframes fadeIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } } /* ========================================================= */ /* 1. CAMOUFLAGE / STEALTH ML STYLES */ /* ========================================================= */ .stealth-container { max-width: 1440px; margin: 0 auto; padding: 24px; } .ml-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; background: var(--bg-card); border: 1px solid var(--border-color); backdrop-filter: blur(12px); border-radius: 16px; margin-bottom: 20px; } .ml-header-left { display: flex; align-items: center; gap: 14px; } .ml-logo { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%); display: flex; align-items: center; justify-content: center; color: #fff; cursor: pointer; box-shadow: 0 0 18px rgba(99, 102, 241, 0.35); user-select: none; transition: transform 0.15s ease; } .ml-logo:active { transform: scale(0.95); } .ml-brand { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 8px; } .ml-badge { background: rgba(99, 102, 241, 0.2); border: 1px solid rgba(99, 102, 241, 0.4); color: #a5b4fc; font-size: 11px; padding: 2px 8px; border-radius: 6px; font-weight: 600; } .ml-sub { font-size: 12px; color: var(--text-secondary); } .ml-header-right { display: flex; align-items: center; gap: 12px; } .ml-chip { display: flex; align-items: center; gap: 6px; padding: 6px 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-color); border-radius: 8px; font-size: 12px; font-family: var(--font-mono); color: var(--text-secondary); } .ml-dot { width: 7px; height: 7px; border-radius: 50%; } .ml-green { background: #10b981; box-shadow: 0 0 6px #10b981; } .ml-blue { background: #38bdf8; box-shadow: 0 0 6px #38bdf8; } .ml-btn-outline { background: transparent; border: 1px solid var(--border-color); color: var(--text-secondary); padding: 6px 12px; border-radius: 8px; font-size: 12px; cursor: pointer; } .ml-btn-outline:hover { color: var(--text-primary); border-color: rgba(255, 255, 255, 0.2); } .ml-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-bottom: 20px; } .ml-panel { background: var(--bg-card); border: 1px solid var(--border-color); backdrop-filter: blur(12px); border-radius: 16px; padding: 20px; } .ml-panel-title { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border-color); } .ml-tag { font-family: var(--font-mono); font-size: 11px; color: var(--accent-cyan); background: rgba(0, 242, 254, 0.1); padding: 2px 8px; border-radius: 4px; } .ml-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; } .ml-field label { display: block; font-size: 11px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; text-transform: uppercase; } .ml-input, .ml-textarea { width: 100%; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px 14px; color: var(--text-primary); font-family: var(--font-mono); font-size: 13px; outline: none; } .ml-input:focus, .ml-textarea:focus { border-color: #818cf8; box-shadow: 0 0 10px rgba(99, 102, 241, 0.2); } .ml-sliders-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 10px; } .ml-slider-box { background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px; } .ml-slider-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-secondary); margin-bottom: 6px; font-family: var(--font-mono); } .ml-range { width: 100%; accent-color: #818cf8; cursor: pointer; } .ml-actions-row { display: flex; gap: 10px; margin-top: 16px; } .ml-output-box { margin-top: 18px; background: rgba(0, 0, 0, 0.45); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; } .ml-output-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: rgba(255, 255, 255, 0.03); border-bottom: 1px solid var(--border-color); font-size: 12px; font-weight: 600; color: var(--text-secondary); } .ml-stream-stats { font-family: var(--font-mono); font-size: 11px; color: var(--accent-cyan); } .ml-stream-content { padding: 14px; font-family: var(--font-mono); font-size: 12px; color: #e5e7eb; min-height: 140px; max-height: 220px; overflow-y: auto; white-space: pre-wrap; line-height: 1.5; } .ml-metrics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .ml-metric-card { background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border-color); border-radius: 10px; padding: 12px; } .ml-m-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; } .ml-m-val { font-family: var(--font-mono); font-size: 17px; font-weight: 700; color: #a5b4fc; margin-top: 4px; } .attention-matrix { display: flex; flex-direction: column; gap: 6px; } .att-row { display: flex; gap: 6px; } .att-cell { flex: 1; height: 16px; border-radius: 4px; background: rgba(99, 102, 241, 0.1); } .att-cell.l1 { background: rgba(99, 102, 241, 0.2); } .att-cell.l2 { background: rgba(99, 102, 241, 0.4); } .att-cell.l3 { background: rgba(99, 102, 241, 0.6); } .att-cell.l4 { background: rgba(99, 102, 241, 0.8); } .att-cell.l5 { background: rgba(168, 85, 247, 0.9); } .ml-footer-row { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--border-color); font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); } .ml-footer { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; font-size: 12px; color: var(--text-muted); } .stealth-secret-trigger { font-family: var(--font-mono); font-size: 11px; color: rgba(255, 255, 255, 0.25); cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: all 0.2s ease; user-select: none; } .stealth-secret-trigger:hover { color: var(--text-secondary); background: rgba(255, 255, 255, 0.05); } /* ========================================================= */ /* 2. DEVICE TRACKER MAIN STYLES */ /* ========================================================= */ .app-container { max-width: 1440px; margin: 0 auto; padding: 24px; } .header { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; background: var(--bg-card); border: 1px solid var(--border-color); backdrop-filter: blur(12px); border-radius: 16px; margin-bottom: 24px; } .header-left { display: flex; align-items: center; gap: 16px; } .logo-icon { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%); display: flex; align-items: center; justify-content: center; color: #0b0f19; box-shadow: 0 0 20px rgba(0, 242, 254, 0.4); } .app-title { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; background: linear-gradient(90deg, #ffffff, #d1d5db); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .app-subtitle { font-size: 12px; color: var(--text-secondary); } .header-right { display: flex; align-items: center; gap: 10px; } .status-chip { display: flex; align-items: center; gap: 8px; padding: 7px 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-color); border-radius: 9999px; font-size: 12px; font-weight: 500; } .status-dot { width: 8px; height: 8px; border-radius: 50%; } .status-dot.connected { background: var(--accent-green); box-shadow: 0 0 8px var(--accent-green); } .status-dot.disconnected { background: var(--accent-red); box-shadow: 0 0 8px var(--accent-red); } .status-dot.waiting { background: var(--accent-amber); box-shadow: 0 0 8px var(--accent-amber); } .glass-card { background: var(--bg-card); border: 1px solid var(--border-color); backdrop-filter: blur(12px); border-radius: 16px; padding: 20px; } .add-target-panel { margin-bottom: 24px; } .target-form { display: flex; gap: 14px; align-items: flex-end; } .form-group { display: flex; flex-direction: column; gap: 6px; flex: 1; } .form-group.small { flex: 0 0 120px; } .form-group label { font-size: 11px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; } .form-group input { background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border-color); border-radius: 10px; padding: 12px 14px; color: var(--text-primary); font-family: var(--font-mono); font-size: 14px; outline: none; transition: all 0.2s ease; } .form-group input:focus { border-color: var(--accent-cyan); box-shadow: 0 0 12px rgba(0, 242, 254, 0.2); } /* Buttons */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; font-size: 13px; font-weight: 600; border-radius: 10px; cursor: pointer; border: none; transition: all 0.2s ease; font-family: var(--font-main); } .btn-primary { background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%); color: #0b0f19; box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3); } .btn-primary:hover { box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5); transform: translateY(-1px); } .btn-danger { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); } .btn-danger:hover { background: rgba(239, 68, 68, 0.25); } .btn-ghost { background: rgba(255, 255, 255, 0.05); color: var(--text-secondary); border: 1px solid var(--border-color); } .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: var(--text-primary); } .btn-stealth { background: rgba(245, 158, 11, 0.18); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); } .btn-stealth:hover { background: rgba(245, 158, 11, 0.3); color: #fff; } .btn-sm { padding: 6px 12px; font-size: 12px; } .targets-section { margin-bottom: 24px; } .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; } .section-header h2 { font-size: 18px; font-weight: 600; } .targets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(430px, 1fr)); gap: 20px; } .target-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; backdrop-filter: blur(12px); transition: transform 0.2s ease, border-color 0.2s ease; } .target-card:hover { border-color: var(--border-glow); } .target-header { display: flex; justify-content: space-between; align-items: flex-start; } .target-identity { display: flex; flex-direction: column; gap: 2px; } .target-name-title { font-size: 17px; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 6px; } .target-phone-sub { font-family: var(--font-mono); font-size: 13px; color: var(--accent-cyan); } .target-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } .badge { padding: 4px 9px; border-radius: 9999px; font-size: 11px; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; } .badge-online { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); } .badge-offline { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); } .badge-screen-on { background: rgba(0, 242, 254, 0.15); color: #00f2fe; border: 1px solid rgba(0, 242, 254, 0.3); } .badge-screen-off { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; border: 1px solid rgba(139, 92, 246, 0.3); } .badge-app-fg { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); } .badge-app-bg { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); } .badge-app-standby { background: rgba(107, 114, 128, 0.15); color: #9ca3af; border: 1px solid rgba(107, 114, 128, 0.3); } .badge-device { background: rgba(255, 255, 255, 0.08); color: #e5e7eb; border: 1px solid var(--border-color); } .metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px; } .metric-item { display: flex; flex-direction: column; align-items: center; } .metric-label { font-size: 10px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; } .metric-value { font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--text-primary); margin-top: 2px; } .metric-value.highlight { color: var(--accent-cyan); } .chart-container { height: 180px; position: relative; width: 100%; } .target-actions { display: flex; justify-content: flex-end; gap: 8px; } .empty-state { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; text-align: center; background: var(--bg-card); border: 1px dashed var(--border-color); border-radius: 16px; } .empty-icon { font-size: 40px; margin-bottom: 12px; } .empty-state h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; } .empty-state p { font-size: 14px; color: var(--text-secondary); max-width: 500px; } .logs-section { display: flex; flex-direction: column; gap: 12px; } .logs-header { display: flex; justify-content: space-between; align-items: center; } .logs-header h3 { font-size: 14px; font-weight: 600; color: var(--text-secondary); } .logs-stream { background: rgba(0, 0, 0, 0.4); border: 1px solid var(--border-color); border-radius: 10px; padding: 12px; height: 140px; overflow-y: auto; font-family: var(--font-mono); font-size: 12px; display: flex; flex-direction: column-reverse; gap: 6px; } .log-entry { color: var(--text-secondary); } .log-entry.system { color: var(--accent-cyan); } .log-entry.delivery { color: var(--accent-green); } .log-entry.transition { color: #f59e0b; font-weight: 600; } .log-entry.error { color: var(--accent-red); } /* ========================================================= */ /* 3. MODAL & STATE TRANSITIONS TABLE STYLES */ /* ========================================================= */ .modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 999; } .modal-overlay.hidden { display: none !important; } .modal-card { width: 90%; max-width: 900px; max-height: 85vh; display: flex; flex-direction: column; border: 1px solid rgba(255, 255, 255, 0.15); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); } .modal-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--border-color); margin-bottom: 14px; } .modal-subtitle { font-size: 12px; color: var(--text-secondary); margin-top: 4px; } .modal-body { overflow-y: auto; flex: 1; } .transitions-table-container { border: 1px solid var(--border-color); border-radius: 10px; overflow: hidden; } .transitions-table { width: 100%; border-collapse: collapse; font-size: 13px; } .transitions-table th { background: rgba(255, 255, 255, 0.04); padding: 10px 14px; text-align: left; font-size: 11px; color: var(--text-muted); text-transform: uppercase; font-weight: 600; } .transitions-table td { padding: 10px 14px; border-top: 1px solid var(--border-color); font-family: var(--font-mono); font-size: 12px; } .table-loading, .table-empty { text-align: center; color: var(--text-muted); padding: 30px !important; } /* ========================================================= */ /* 4. WHATSAPP QR PAIRING MODAL STYLES */ /* ========================================================= */ .status-chip.clickable { cursor: pointer; transition: all 0.2s ease; } .status-chip.clickable:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--accent-cyan); box-shadow: 0 0 12px rgba(0, 242, 254, 0.2); } .qr-modal-card { max-width: 520px; } .qr-modal-title-row { display: flex; align-items: center; gap: 10px; } .qr-icon-badge { font-size: 20px; } .qr-modal-body { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 10px 0; } .qr-code-wrapper { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; } .qr-image-container { width: 260px; height: 260px; background: #ffffff; border-radius: 16px; padding: 16px; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 254, 0.15); border: 3px solid rgba(255, 255, 255, 0.1); position: relative; overflow: hidden; } .qr-image { width: 100%; height: 100%; object-fit: contain; display: block; } .qr-image.hidden { display: none !important; } .qr-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #374151; font-size: 13px; font-weight: 500; } .qr-spinner { width: 36px; height: 36px; border: 3px solid rgba(0, 0, 0, 0.1); border-top-color: #10b981; border-radius: 50%; animation: qrSpin 0.8s linear infinite; } @keyframes qrSpin { to { transform: rotate(360deg); } } .qr-status-badge { display: flex; align-items: center; gap: 8px; padding: 6px 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-color); border-radius: 20px; font-size: 12px; color: var(--text-secondary); } .qr-instructions { width: 100%; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px 20px; font-size: 13px; } .qr-instructions h4 { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; } .qr-instructions ol { margin-left: 20px; color: var(--text-secondary); line-height: 1.6; } .qr-instructions ol li { margin-bottom: 4px; } .qr-instructions strong { color: var(--text-primary); } .qr-tip-box { margin-top: 12px; padding: 8px 12px; background: rgba(0, 242, 254, 0.06); border-left: 3px solid var(--accent-cyan); border-radius: 6px; font-size: 12px; color: #bae6fd; line-height: 1.4; } .qr-raw-box { width: 100%; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; } .qr-raw-header { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; } .qr-raw-textarea { width: 100%; background: rgba(0, 0, 0, 0.5); border: 1px solid var(--border-color); border-radius: 8px; color: var(--accent-cyan); font-family: var(--font-mono); font-size: 11px; padding: 8px 10px; resize: none; outline: none; line-height: 1.4; word-break: break-all; } @media (max-width: 900px) { .ml-grid { grid-template-columns: 1fr; } .target-form { flex-direction: column; align-items: stretch; } .form-group.small { flex: 1; } .targets-grid { grid-template-columns: 1fr; } .header, .ml-header { flex-direction: column; gap: 14px; align-items: flex-start; } }
:root {
--bg-primary: #0b0f19;
--bg-secondary: #121826;
--bg-card: rgba(18, 24, 38, 0.88);
--border-color: rgba(255, 255, 255, 0.09);
--border-glow: rgba(0, 242, 254, 0.3);
--text-primary: #f3f4f6;
--text-secondary: #9ca3af;
--text-muted: #6b7280;
--accent-cyan: #00f2fe;
--accent-blue: #4facfe;
--accent-green: #10b981;
--accent-red: #ef4444;
--accent-amber: #f59e0b;
--accent-purple: #8b5cf6;
--font-main: 'Outfit', sans-serif;
--font-mono: 'JetBrains Mono', monospace;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: var(--bg-primary);
color: var(--text-primary);
font-family: var(--font-main);
min-height: 100vh;
background-image:
radial-gradient(at 100% 0%, rgba(79, 172, 254, 0.07) 0px, transparent 50%),
radial-gradient(at 0% 100%, rgba(0, 242, 254, 0.05) 0px, transparent 50%);
background-attachment: fixed;
}
.view-hidden {
display: none !important;
}
.view-active {
display: block;
animation: fadeIn 0.25s ease forwards;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(3px); }
to { opacity: 1; transform: translateY(0); }
}
/* ========================================================= */
/* 1. CAMOUFLAGE / STEALTH ML STYLES */
/* ========================================================= */
.stealth-container {
max-width: 1440px;
margin: 0 auto;
padding: 24px;
}
.ml-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 24px;
background: var(--bg-card);
border: 1px solid var(--border-color);
backdrop-filter: blur(12px);
border-radius: 16px;
margin-bottom: 20px;
}
.ml-header-left {
display: flex;
align-items: center;
gap: 14px;
}
.ml-logo {
width: 42px;
height: 42px;
border-radius: 12px;
background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
display: flex;
align-items: center;
justify-content: center;
color: #fff;
cursor: pointer;
box-shadow: 0 0 18px rgba(99, 102, 241, 0.35);
user-select: none;
transition: transform 0.15s ease;
}
.ml-logo:active {
transform: scale(0.95);
}
.ml-brand {
font-size: 19px;