First GSM SPY addition

This commit is contained in:
Marc
2026-02-06 07:15:33 -06:00
parent 16f730db76
commit 04d9d2fd56
12 changed files with 4472 additions and 130 deletions

View File

@@ -0,0 +1,622 @@
/* GSM SPY Dashboard Styles */
:root {
--font-mono: 'IBM Plex Mono', 'JetBrains Mono', 'Courier New', monospace;
--bg-dark: #0b1118;
--bg-panel: #101823;
--bg-panel-hover: #1a2331;
--border-color: #263246;
--accent-green: #38c180;
--accent-cyan: #4aa3ff;
--accent-red: #e25d5d;
--accent-yellow: #ffa500;
--text-primary: #e8e8e8;
--text-secondary: #888;
--text-dim: #555;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 0;
font-family: var(--font-mono);
background: var(--bg-dark);
color: var(--text-primary);
overflow: hidden;
font-size: 12px;
}
/* Radar background and scanline */
.radar-bg {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
background-size: 50px 50px;
pointer-events: none;
z-index: 0;
}
.scanline {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 2px;
background: var(--accent-cyan);
opacity: 0.3;
animation: scan 3s linear infinite;
pointer-events: none;
z-index: 1;
}
@keyframes scan {
from { transform: translateY(0); }
to { transform: translateY(100vh); }
}
/* Header */
.header {
position: fixed;
top: 0;
left: 0;
right: 0;
height: 60px;
background: var(--bg-panel);
border-bottom: 1px solid var(--border-color);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 20px;
z-index: 100;
}
.logo {
font-size: 24px;
font-weight: 700;
color: var(--accent-cyan);
letter-spacing: 2px;
}
.status-bar {
display: flex;
gap: 15px;
align-items: center;
}
.status-indicator {
display: flex;
align-items: center;
gap: 8px;
font-size: 11px;
}
.status-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--text-dim);
}
.status-dot.active {
background: var(--accent-green);
animation: pulse-dot 2s ease-in-out infinite;
}
.status-dot.error {
background: var(--accent-red);
}
@keyframes pulse-dot {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
/* Stats strip */
.stats-strip {
position: fixed;
top: 60px;
left: 0;
right: 0;
height: 50px;
background: var(--bg-panel);
border-bottom: 1px solid var(--border-color);
display: flex;
gap: 20px;
padding: 0 20px;
align-items: center;
z-index: 99;
}
.strip-stat {
display: flex;
flex-direction: column;
align-items: center;
}
.strip-value {
font-size: 20px;
font-weight: 700;
color: var(--accent-green);
line-height: 1.2;
}
.strip-label {
font-size: 9px;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Dashboard layout */
.dashboard {
position: fixed;
top: 110px;
bottom: 80px;
left: 0;
right: 0;
display: grid;
grid-template-columns: 280px 1fr 300px;
gap: 10px;
padding: 10px;
}
/* Sidebar panels */
.left-sidebar, .right-sidebar {
display: flex;
flex-direction: column;
gap: 10px;
overflow-y: auto;
}
.panel {
background: var(--bg-panel);
border: 1px solid var(--border-color);
border-radius: 4px;
overflow: hidden;
display: flex;
flex-direction: column;
}
.panel-header {
padding: 10px 12px;
font-size: 11px;
font-weight: 700;
border-bottom: 1px solid var(--border-color);
color: var(--accent-cyan);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.panel-content {
padding: 12px;
}
/* Signal source panel */
.signal-source select,
.region-selector select {
width: 100%;
background: var(--bg-dark);
color: var(--text-primary);
border: 1px solid var(--border-color);
border-radius: 3px;
padding: 8px;
font-family: var(--font-mono);
font-size: 11px;
}
.region-selector {
margin-top: 10px;
}
.region-selector label {
display: block;
margin-bottom: 5px;
font-size: 10px;
color: var(--text-secondary);
}
.band-info {
margin-top: 8px;
padding: 8px;
background: var(--bg-dark);
border-radius: 3px;
font-size: 10px;
color: var(--text-secondary);
}
/* Selected tower info */
.selected-info {
padding: 12px;
font-size: 11px;
}
.selected-info.empty {
color: var(--text-dim);
text-align: center;
padding: 20px;
}
.selected-info > div {
margin-bottom: 8px;
}
.selected-info strong {
color: var(--accent-cyan);
}
/* Tower and device lists */
.tower-list, .device-list, .alert-list {
max-height: 300px;
overflow-y: auto;
}
.tower-item, .device-item, .alert-item {
padding: 10px 12px;
border-bottom: 1px solid var(--border-color);
cursor: pointer;
transition: background 0.2s;
font-size: 11px;
}
.tower-item:hover, .device-item:hover {
background: var(--bg-panel-hover);
}
.tower-item:last-child, .device-item:last-child, .alert-item:last-child {
border-bottom: none;
}
.tower-item.rogue {
border-left: 3px solid var(--accent-red);
}
.tower-item-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 5px;
}
.tower-cid {
font-weight: 700;
color: var(--accent-cyan);
}
.tower-signal {
font-size: 10px;
color: var(--text-secondary);
}
.tower-operator {
font-size: 10px;
color: var(--text-dim);
}
.device-item-id {
font-weight: 700;
color: var(--accent-green);
margin-bottom: 5px;
}
.device-ta {
font-size: 10px;
color: var(--text-secondary);
}
.alert-item {
background: rgba(226, 93, 93, 0.1);
border-left: 3px solid var(--accent-red);
cursor: default;
}
.alert-item strong {
color: var(--accent-red);
}
.alert-item small {
display: block;
margin-top: 5px;
color: var(--text-dim);
font-size: 9px;
}
/* Map container */
.map-container {
position: relative;
border: 1px solid var(--border-color);
border-radius: 4px;
overflow: hidden;
}
#gsmMap {
width: 100%;
height: 100%;
background: var(--bg-dark);
}
/* Map markers */
.tower-marker {
width: 20px;
height: 20px;
border-radius: 50%;
background: var(--accent-green);
border: 2px solid white;
box-shadow: 0 0 8px rgba(56, 195, 128, 0.6);
}
.tower-marker.rogue {
background: var(--accent-red);
box-shadow: 0 0 8px rgba(226, 93, 93, 0.8);
animation: blink 1s infinite;
}
@keyframes blink {
0%, 50% { opacity: 1; }
51%, 100% { opacity: 0.3; }
}
.device-blip {
animation: pulse-blip 5s ease-out forwards;
}
@keyframes pulse-blip {
0% {
opacity: 1;
transform: scale(1);
}
100% {
opacity: 0;
transform: scale(3);
}
}
/* Controls bar */
.controls-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 80px;
background: var(--bg-panel);
border-top: 1px solid var(--border-color);
display: flex;
gap: 20px;
padding: 15px 20px;
align-items: center;
z-index: 99;
}
.control-group {
display: flex;
flex-direction: column;
gap: 5px;
}
.control-group-label {
font-size: 9px;
color: var(--text-secondary);
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.control-group-items {
display: flex;
gap: 10px;
align-items: center;
}
/* Input fields */
input[type="text"], input[type="number"], select {
background: var(--bg-dark);
color: var(--text-primary);
border: 1px solid var(--border-color);
border-radius: 3px;
padding: 8px 10px;
font-family: var(--font-mono);
font-size: 11px;
min-width: 120px;
}
input[type="text"]:focus, input[type="number"]:focus, select:focus {
outline: none;
border-color: var(--accent-cyan);
}
/* Buttons */
button {
background: var(--accent-cyan);
color: white;
border: none;
padding: 8px 16px;
border-radius: 4px;
cursor: pointer;
font-family: var(--font-mono);
font-size: 12px;
font-weight: 600;
transition: all 0.2s;
text-transform: uppercase;
letter-spacing: 0.5px;
}
button:hover {
opacity: 0.8;
transform: translateY(-1px);
}
button:active {
transform: translateY(0);
}
button.active {
background: var(--accent-red);
animation: pulse-btn 2s ease-in-out infinite;
}
@keyframes pulse-btn {
0%, 100% { box-shadow: 0 0 0 0 rgba(226, 93, 93, 0.7); }
50% { box-shadow: 0 0 0 10px rgba(226, 93, 93, 0); }
}
button:disabled {
background: var(--text-dim);
cursor: not-allowed;
opacity: 0.5;
}
/* GPS indicator */
.gps-indicator {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 6px 12px;
background: var(--bg-dark);
border: 1px solid var(--border-color);
border-radius: 3px;
font-size: 10px;
color: var(--text-secondary);
}
.gps-indicator::before {
content: '';
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--text-dim);
}
.gps-indicator.active::before {
background: var(--accent-green);
animation: pulse-dot 2s ease-in-out infinite;
}
/* Scrollbar styling */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--text-dim);
}
/* Empty state */
.empty-state {
padding: 30px 20px;
text-align: center;
color: var(--text-dim);
font-size: 11px;
}
/* Responsive adjustments */
@media (max-width: 1400px) {
.dashboard {
grid-template-columns: 250px 1fr 280px;
}
}
@media (max-width: 1024px) {
.dashboard {
grid-template-columns: 1fr;
grid-template-rows: auto 1fr auto;
}
.left-sidebar, .right-sidebar {
flex-direction: row;
overflow-x: auto;
overflow-y: visible;
}
.panel {
min-width: 250px;
}
}
/* Utility classes */
.text-success { color: var(--accent-green); }
.text-danger { color: var(--accent-red); }
.text-warning { color: var(--accent-yellow); }
.text-info { color: var(--accent-cyan); }
.text-muted { color: var(--text-secondary); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
/* Advanced Analysis Results Panel */
.analysis-results {
border-top: 1px solid var(--border-color);
padding: 12px;
max-height: 300px;
overflow-y: auto;
}
.analysis-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
font-size: 11px;
font-weight: 700;
color: var(--accent-cyan);
text-transform: uppercase;
}
.analysis-content {
font-size: 10px;
line-height: 1.6;
}
.analysis-stat {
display: flex;
justify-content: space-between;
padding: 6px 0;
border-bottom: 1px solid rgba(255,255,255,0.05);
}
.analysis-stat:last-child {
border-bottom: none;
}
.analysis-stat-label {
color: var(--text-secondary);
}
.analysis-stat-value {
color: var(--accent-green);
font-weight: 600;
}
.analysis-device-item {
padding: 8px;
margin: 6px 0;
background: var(--bg-dark);
border-radius: 3px;
border-left: 3px solid var(--accent-cyan);
}
.analysis-warning {
color: var(--accent-yellow);
font-size: 10px;
padding: 8px;
background: rgba(255, 165, 0, 0.1);
border-radius: 3px;
margin-top: 8px;
}