This commit is contained in:
Raven Scott
2025-12-17 20:05:50 -05:00
commit 742e27d3f7
276 changed files with 89838 additions and 0 deletions
@@ -0,0 +1,996 @@
:root {
/* Modern Color Palette */
--primary: #6366f1;
--primary-dark: #4f46e5;
--primary-light: #818cf8;
--secondary: #8b5cf6;
--accent: #ec4899;
--success: #10b981;
--error: #ef4444;
--warning: #f59e0b;
/* Background Colors - Darker for glass effect */
--bg-primary: #0a0e1a;
--bg-secondary: #0f1419;
--bg-tertiary: #1a1f2e;
--bg-glass: rgba(255, 255, 255, 0.03);
--bg-glass-hover: rgba(255, 255, 255, 0.06);
--bg-glass-strong: rgba(255, 255, 255, 0.08);
/* Text Colors */
--text-primary: #f1f5f9;
--text-secondary: #cbd5e1;
--text-tertiary: #94a3b8;
--text-muted: #64748b;
/* Borders & Shadows - Enhanced for glass */
--border-color: rgba(255, 255, 255, 0.08);
--border-color-strong: rgba(255, 255, 255, 0.15);
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.5);
--shadow-glow: 0 0 30px rgba(99, 102, 241, 0.4);
/* Spacing */
--spacing-xs: 0.25rem;
--spacing-sm: 0.5rem;
--spacing-md: 1rem;
--spacing-lg: 1.5rem;
--spacing-xl: 2rem;
--spacing-2xl: 3rem;
/* Border Radius */
--radius-sm: 0.375rem;
--radius-md: 0.5rem;
--radius-lg: 0.75rem;
--radius-xl: 1rem;
--radius-2xl: 1.5rem;
--radius-full: 9999px;
/* Transitions */
--transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
--transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
--transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
height: 100%;
overflow: hidden;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, 'Helvetica Neue', Arial, sans-serif;
background: linear-gradient(135deg, #0a0e1a 0%, #0f1419 50%, #1a1f2e 100%);
background-attachment: fixed;
height: 100vh;
height: 100dvh;
color: var(--text-primary);
line-height: 1.6;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
overflow: hidden;
margin: 0;
padding: 0;
position: fixed;
width: 100vw;
}
/* Container */
.container {
display: flex;
flex-direction: column;
height: 100vh;
height: 100dvh;
max-width: 100%;
margin: 0;
padding: 0;
overflow: hidden;
}
/* Header */
.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: calc(var(--spacing-lg) - 20px) var(--spacing-xl);
flex-shrink: 0;
position: sticky;
top: 0;
z-index: 100;
background: rgba(10, 14, 26, 0.7);
backdrop-filter: blur(30px) saturate(200%);
-webkit-backdrop-filter: blur(30px) saturate(200%);
border-bottom: 1px solid var(--border-color);
box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.05);
position: relative;
overflow: hidden;
}
.header::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 30%;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
pointer-events: none;
z-index: 0;
}
.header > * {
position: relative;
z-index: 1;
}
.header-content {
display: flex;
flex-direction: column;
align-items: flex-start;
}
.header h1 {
font-size: 1.8rem;
font-weight: 700;
background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 0.25rem;
}
.subtitle {
color: var(--text-secondary);
font-size: 0.9rem;
margin-bottom: 0;
}
.header-status {
display: flex;
align-items: center;
gap: var(--spacing-lg);
}
.status {
display: flex;
align-items: center;
gap: var(--spacing-md);
font-size: 0.875rem;
color: var(--text-secondary);
}
.status-indicator {
width: 10px;
height: 10px;
border-radius: var(--radius-full);
background: var(--success);
box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
position: relative;
flex-shrink: 0;
}
.status-indicator::before {
content: '';
position: absolute;
inset: 0;
border-radius: var(--radius-full);
background: var(--success);
animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.status-indicator.disconnected {
background: var(--error);
animation: none;
}
.status-indicator.disconnected::before {
background: var(--error);
animation: none;
}
@keyframes pulse-ring {
0% {
box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
}
50% {
box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
}
}
@keyframes pulse-dot {
0%, 100% {
opacity: 1;
transform: scale(1);
}
50% {
opacity: 0.8;
transform: scale(0.95);
}
}
/* Main Content Layout */
.main-content {
flex: 1;
display: flex;
min-height: 0;
overflow: hidden;
}
/* Sidebar */
.sidebar {
width: 16rem;
flex-shrink: 0;
background: var(--bg-glass);
backdrop-filter: blur(30px) saturate(200%);
-webkit-backdrop-filter: blur(30px) saturate(200%);
border-right: 1px solid var(--border-color);
display: flex;
flex-direction: column;
overflow: hidden;
box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.03);
position: relative;
}
.sidebar::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 20%;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
pointer-events: none;
z-index: 0;
}
.sidebar > * {
position: relative;
z-index: 1;
}
.sidebar-section {
padding: var(--spacing-md);
border-bottom: 1px solid var(--border-color);
flex-shrink: 0;
}
.sidebar-section:last-child {
border-bottom: none;
border-top: 1px solid var(--border-color);
margin-top: auto;
}
.sidebar-section h2 {
font-size: 0.875rem;
font-weight: 600;
color: var(--text-secondary);
margin-bottom: var(--spacing-sm);
}
/* View Tabs */
.view-tab {
display: block;
width: 100%;
text-align: left;
padding: var(--spacing-sm) var(--spacing-md);
font-size: 0.875rem;
border-radius: var(--radius-sm);
transition: all var(--transition-base);
background: var(--bg-glass);
backdrop-filter: blur(25px) saturate(200%);
-webkit-backdrop-filter: blur(25px) saturate(200%);
color: var(--text-secondary);
border: 1px solid var(--border-color);
text-decoration: none;
margin-bottom: var(--spacing-xs);
cursor: pointer;
box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.view-tab:hover {
background: var(--bg-glass-hover);
border-color: var(--border-color-strong);
color: var(--text-primary);
box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.05);
transform: translateX(4px);
}
.view-tab.active {
background: rgba(99, 102, 241, 0.3);
backdrop-filter: blur(25px) saturate(200%);
-webkit-backdrop-filter: blur(25px) saturate(200%);
border-color: rgba(99, 102, 241, 0.5);
color: var(--text-primary);
box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.view-tab.active:hover {
background: rgba(99, 102, 241, 0.5);
border-color: rgba(99, 102, 241, 0.7);
}
/* Controls */
.control-group {
margin-bottom: var(--spacing-md);
}
.control-group:last-child {
margin-bottom: 0;
}
.control-label {
display: block;
font-size: 0.75rem;
color: var(--text-tertiary);
margin-bottom: var(--spacing-xs);
font-weight: 500;
}
.control-input,
.control-select {
width: 100%;
background: rgba(15, 20, 30, 0.6);
backdrop-filter: blur(25px) saturate(200%);
-webkit-backdrop-filter: blur(25px) saturate(200%);
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
padding: var(--spacing-sm) var(--spacing-md);
color: var(--text-primary);
font-size: 0.875rem;
transition: all var(--transition-base);
font-family: inherit;
box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.control-input:focus,
.control-select:focus {
outline: none;
border-color: var(--primary);
background: rgba(15, 20, 30, 0.8);
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2), var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.control-input::placeholder {
color: var(--text-tertiary);
}
.control-checkbox-group {
display: flex;
flex-direction: column;
gap: var(--spacing-sm);
}
.control-checkbox {
display: flex;
align-items: center;
gap: var(--spacing-sm);
font-size: 0.875rem;
color: var(--text-secondary);
cursor: pointer;
}
.control-checkbox input[type="checkbox"] {
width: 1rem;
height: 1rem;
accent-color: var(--primary);
cursor: pointer;
}
.control-checkbox input[type="checkbox"]:checked {
accent-color: var(--primary);
}
/* Stats */
.stats-list {
display: flex;
flex-direction: column;
gap: var(--spacing-xs);
}
.stat-item {
display: flex;
justify-content: space-between;
font-size: 0.75rem;
}
.stat-label {
color: var(--text-tertiary);
}
.stat-value {
color: var(--text-primary);
font-weight: 600;
}
/* View Content */
.view-content {
display: none !important;
visibility: hidden;
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
overflow: hidden;
z-index: 1;
}
.view-content.active {
display: flex !important;
visibility: visible;
flex-direction: column;
z-index: 2;
}
/* Main Visualization Area */
.main-viz-area {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
min-height: 0;
position: relative;
}
/* SVG */
svg {
display: block;
width: 100%;
height: 100%;
min-height: 0;
}
/* Vis-network Graph Containers */
#graphContainer,
#domainMapContainer {
position: relative;
width: 100%;
height: 100%;
min-height: 0;
background: var(--bg-primary);
border-radius: var(--radius-lg);
overflow: hidden;
}
/* Vis-network styling overrides */
.vis-network {
background: var(--bg-primary);
color: var(--text-primary);
}
.vis-network canvas {
outline: none;
}
/* Vis-network tooltip styling */
.vis-tooltip {
background: var(--bg-glass) !important;
backdrop-filter: blur(30px) saturate(200%);
-webkit-backdrop-filter: blur(30px) saturate(200%);
border: 1px solid var(--border-color) !important;
border-radius: var(--radius-md) !important;
color: var(--text-primary) !important;
padding: var(--spacing-sm) var(--spacing-md) !important;
font-size: 0.875rem !important;
box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}
/* Vis-network node selection */
.vis-network .vis-selected {
box-shadow: 0 0 10px var(--primary) !important;
}
/* Vis-network navigation controls */
.vis-network .vis-navigation {
background: var(--bg-glass) !important;
backdrop-filter: blur(30px) saturate(200%);
-webkit-backdrop-filter: blur(30px) saturate(200%);
border: 1px solid var(--border-color) !important;
border-radius: var(--radius-md) !important;
box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}
.vis-network .vis-navigation .vis-button {
background: rgba(15, 20, 30, 0.6) !important;
backdrop-filter: blur(25px) saturate(200%);
-webkit-backdrop-filter: blur(25px) saturate(200%);
color: var(--text-primary) !important;
border: 1px solid var(--border-color) !important;
box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}
.vis-network .vis-navigation .vis-button:hover {
background: var(--bg-glass-hover) !important;
border-color: var(--border-color-strong) !important;
box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
/* System Overview */
.system-overview-content {
height: 100%;
width: 100%;
overflow-y: auto;
overflow-x: hidden;
padding: var(--spacing-lg);
box-sizing: border-box;
}
.metrics-container {
display: flex;
flex-direction: column;
gap: var(--spacing-md);
margin-bottom: var(--spacing-md);
}
.metrics-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: var(--spacing-md);
}
.metrics-grid-centered {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: var(--spacing-md);
max-width: calc(66.666% + var(--spacing-md));
margin: 0 auto;
}
.metric-card {
background: var(--bg-glass);
backdrop-filter: blur(20px) saturate(180%);
-webkit-backdrop-filter: blur(20px) saturate(180%);
border: 1px solid var(--border-color);
border-radius: var(--radius-lg);
padding: var(--spacing-md);
box-shadow: var(--shadow-lg);
transition: all var(--transition-base);
min-height: 120px;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.metric-card:hover {
background: var(--bg-glass-hover);
transform: translateY(-2px);
box-shadow: var(--shadow-xl);
}
.metric-card h3 {
font-size: 0.875rem;
color: var(--text-secondary);
margin-bottom: var(--spacing-xs);
font-weight: 500;
line-height: 1.2;
white-space: nowrap;
}
.metric-card .metric-value {
font-size: 1.5rem;
font-weight: 700;
color: var(--text-primary);
line-height: 1.4;
word-break: break-word;
overflow-wrap: break-word;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.metric-card .metric-value.primary {
color: var(--primary-light);
}
.metric-card .metric-value.success {
color: var(--success);
}
.metric-card .metric-value.secondary {
color: var(--secondary);
}
.metric-card .metric-value.warning {
color: var(--warning);
}
.charts-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: var(--spacing-md);
}
.chart-card {
background: var(--bg-glass);
backdrop-filter: blur(20px) saturate(180%);
-webkit-backdrop-filter: blur(20px) saturate(180%);
border: 1px solid var(--border-color);
border-radius: var(--radius-lg);
padding: var(--spacing-md);
box-shadow: var(--shadow-lg);
}
.chart-card h3 {
font-size: 0.875rem;
font-weight: 600;
color: var(--text-secondary);
margin-bottom: var(--spacing-md);
}
.chart-container {
height: 300px;
position: relative;
}
canvas {
height: 100%;
width: 100%;
background: transparent;
}
/* Chart.js canvas containers - keep fixed height for charts */
.chart-container canvas {
height: 300px;
max-height: 300px;
}
/* Peer Details View */
.peer-details-content {
height: 100%;
width: 100%;
overflow-y: auto;
overflow-x: hidden;
padding: var(--spacing-lg);
box-sizing: border-box;
}
.peer-list {
display: flex;
flex-direction: column;
gap: var(--spacing-sm);
}
.peer-item {
background: var(--bg-glass);
backdrop-filter: blur(20px) saturate(180%);
-webkit-backdrop-filter: blur(20px) saturate(180%);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
padding: var(--spacing-md);
cursor: pointer;
transition: all var(--transition-base);
color: var(--text-primary);
}
.peer-item:hover {
background: var(--bg-glass-hover);
transform: translateX(4px);
box-shadow: var(--shadow-md);
border-color: var(--primary);
}
.peer-item.connected {
border-color: var(--success);
}
.peer-item.disconnected {
border-color: var(--text-muted);
opacity: 0.6;
}
/* Peer Details Panel */
#peerDetailsPanel {
position: absolute;
right: 0;
top: 0;
bottom: 0;
width: 24rem;
background: var(--bg-glass);
backdrop-filter: blur(20px) saturate(180%);
-webkit-backdrop-filter: blur(20px) saturate(180%);
border-left: 1px solid var(--border-color);
box-shadow: var(--shadow-xl);
overflow-y: auto;
overflow-x: hidden;
z-index: 50;
display: none;
}
#peerDetailsPanel:not(.hidden) {
display: block;
}
#peerDetailsPanel.hidden {
display: none !important;
}
.peer-details-header {
padding: var(--spacing-md);
border-bottom: 1px solid var(--border-color);
display: flex;
align-items: center;
justify-content: space-between;
flex-shrink: 0;
}
.peer-details-header h3 {
font-size: 1.125rem;
font-weight: 600;
color: var(--text-primary);
}
.close-btn {
background: transparent;
border: none;
color: var(--text-tertiary);
font-size: 1.5rem;
cursor: pointer;
transition: all var(--transition-base);
padding: var(--spacing-xs);
line-height: 1;
}
.close-btn:hover {
color: var(--text-primary);
transform: scale(1.1);
}
#peerDetailsContent {
padding: var(--spacing-md);
color: var(--text-primary);
}
#peerDetailsContent h4 {
color: var(--text-secondary);
font-size: 0.875rem;
font-weight: 600;
margin-bottom: var(--spacing-xs);
}
#peerDetailsContent p {
color: var(--text-primary);
font-size: 0.875rem;
margin-bottom: var(--spacing-sm);
}
/* Loading States */
.loading {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
color: var(--text-tertiary);
font-size: 0.875rem;
}
.loading::after {
content: '';
width: 2rem;
height: 2rem;
border: 4px solid var(--bg-tertiary);
border-top-color: var(--primary);
border-radius: var(--radius-full);
animation: spin 1s linear infinite;
margin-left: var(--spacing-sm);
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
/* Animations */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.fade-in {
animation: fadeIn 0.3s ease-in;
}
/* Scrollbar Styling */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: var(--bg-secondary);
border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb {
background: var(--bg-tertiary);
border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
background: var(--text-tertiary);
}
/* Dynamic content styling */
.avatar-placeholder-circle {
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: var(--radius-full);
background: var(--bg-tertiary);
color: var(--text-secondary);
font-size: 0.75rem;
font-weight: 600;
cursor: pointer;
transition: all var(--transition-base);
}
.avatar-placeholder-circle:hover {
background: var(--bg-glass-hover);
transform: scale(1.05);
}
.avatar-image {
border-radius: var(--radius-full);
cursor: pointer;
transition: all var(--transition-base);
border: 2px solid var(--primary);
}
.avatar-image:hover {
box-shadow: var(--shadow-glow);
transform: scale(1.05);
}
.peer-name-display {
display: flex;
align-items: center;
gap: var(--spacing-xs);
}
.peer-name-primary {
font-weight: 500;
color: var(--text-primary);
}
.peer-name-secondary {
font-size: 0.75rem;
color: var(--text-tertiary);
font-family: 'Monaco', 'Courier New', monospace;
}
.peer-status-text {
font-size: 0.875rem;
color: var(--text-tertiary);
margin-top: var(--spacing-xs);
}
.peer-uptime-text {
font-size: 0.875rem;
color: var(--text-tertiary);
}
.details-section {
margin-bottom: var(--spacing-md);
padding-bottom: var(--spacing-md);
border-bottom: 1px solid var(--border-color);
}
.details-section:last-child {
border-bottom: none;
margin-bottom: 0;
padding-bottom: 0;
}
.details-content {
display: flex;
flex-direction: column;
gap: var(--spacing-md);
}
.details-item {
display: flex;
flex-direction: column;
gap: var(--spacing-xs);
}
.details-item h4 {
font-size: 0.875rem;
font-weight: 600;
color: var(--text-secondary);
margin-bottom: var(--spacing-xs);
}
.details-item p {
font-size: 0.875rem;
color: var(--text-primary);
font-family: 'Monaco', 'Courier New', monospace;
word-break: break-all;
}
.details-item .details-text {
font-size: 0.875rem;
color: var(--text-primary);
font-family: inherit;
}
.details-metrics {
display: flex;
flex-direction: column;
gap: var(--spacing-xs);
font-size: 0.875rem;
}
.details-metrics p {
color: var(--text-primary);
margin: 0;
}
/* Responsive */
@media (max-width: 768px) {
.main-content {
flex-direction: column;
}
.sidebar {
width: 100%;
max-height: 40vh;
border-right: none;
border-bottom: 1px solid var(--border-color);
}
.header {
padding: var(--spacing-md) var(--spacing-lg);
flex-wrap: wrap;
}
.header h1 {
font-size: 1.5rem;
}
.header-content {
flex: 1;
min-width: 0;
}
.header-status {
margin-top: var(--spacing-sm);
width: 100%;
justify-content: flex-end;
}
.metrics-grid {
grid-template-columns: 1fr;
}
.charts-grid {
grid-template-columns: 1fr;
}
#peerDetailsPanel {
width: 100%;
height: 50vh;
top: auto;
bottom: 0;
border-left: none;
border-top: 1px solid var(--border-color);
}
}
File diff suppressed because one or more lines are too long