body {
margin: 0;
background-color: #1a1a1a;
color: #e5e7eb;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
overflow: hidden;
}
#graph-container {
width: 100vw;
height: 100vh;
position: relative;
}
#performance-monitor {
position: absolute;
top: 10px;
right: 10px;
background: rgba(0,0,0,0.7);
padding: 8px 12px;
border-radius: 4px;
font-size: 12px;
z-index: 1000;
}
#performance-monitor span {
margin-right: 15px;
}
#sidebar {
position: absolute;
left: 0;
top: 0;
width: 300px;
height: 100vh;
background: #2d2d2d;
padding: 20px;
box-shadow: 2px 0 10px rgba(0,0,0,0.5);
z-index: 100;
overflow-y: auto;
}
.controls-panel h3 {
margin-top: 0;
color: #e5e7eb;
border-bottom: 1px solid #444;
padding-bottom: 10px;
}
.control-group {
margin-bottom: 20px;
}
.control-group label {
display: block;
margin-bottom: 5px;
font-size: 14px;
color: #aaa;
}
input[type="range"],
input[type="text"],
select {
width: 100%;
padding: 8px;
background: #3a3a3a;
border: 1px solid #555;
color: white;
border-radius: 4px;
}
input[type="range"] {
padding: 0;
}
button {
width: 100%;
padding: 10px;
background: #3b82f6;
border: none;
color: white;
cursor: pointer;
border-radius: 4px;
font-size: 14px;
margin-top: 10px;
}
button:hover {
background: #2563eb;
}
.node {
cursor: pointer;
transition: stroke-width 0.2s;
}
.node:hover {
stroke-width: 3px !important;
}
.link {
fill: none;
}
.hidden {
display: none;
}
#details-panel {
margin-top: 20px;
padding: 15px;
background: #3a3a3a;
border-radius: 8px;
max-height: 60vh;
overflow-y: auto;
}
#details-panel h3 {
margin: 5px 0 10px 0;
color: #e5e7eb;
font-size: 16px;
word-wrap: break-word;
}
#details-panel h4 {
margin: 0 0 8px 0;
color: #9ca3af;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
#details-panel p {
margin: 8px 0;
font-size: 13px;
line-height: 1.5;
color: #d1d5db;
}
.node-header {
padding: 10px;
margin: -15px -15px 15px -15px;
border-radius: 8px 8px 0 0;
}
.node-header.pattern {
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.node-header.decision {
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}
.node-header.failure {
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}
.node-type-badge {
display: inline-block;
padding: 2px 8px;
background: rgba(255,255,255,0.2);
border-radius: 4px;
font-size: 10px;
text-transform: uppercase;
letter-spacing: 1px;
margin-bottom: 5px;
}
.node-meta {
padding-bottom: 10px;
border-bottom: 1px solid #4a4a4a;
margin-bottom: 10px;
}
.node-meta p {
margin: 4px 0;
font-size: 12px;
color: #9ca3af;
}
.node-meta code {
background: #2d2d2d;
padding: 2px 6px;
border-radius: 3px;
font-family: monospace;
font-size: 11px;
}
.node-section {
margin-bottom: 15px;
}
.node-section ul {
margin: 5px 0;
padding-left: 20px;
}
.node-section li {
margin: 4px 0;
font-size: 13px;
color: #d1d5db;
}
.code-block {
background: #1a1a1a;
padding: 10px;
border-radius: 4px;
font-family: 'Consolas', 'Monaco', monospace;
font-size: 12px;
line-height: 1.4;
overflow-x: auto;
white-space: pre-wrap;
word-wrap: break-word;
color: #a5f3fc;
}
.expand-btn {
display: inline;
width: auto;
padding: 2px 8px;
margin-left: 5px;
font-size: 11px;
background: #4a4a4a;
}
.expand-btn:hover {
background: #5a5a5a;
}
.truncated {
color: #9ca3af;
}
.empty {
color: #6b7280;
font-style: italic;
}
.loading {
text-align: center;
padding: 20px;
color: #9ca3af;
}
#connection-status {
margin-top: 20px;
padding: 8px;
text-align: center;
border-radius: 4px;
font-size: 12px;
font-weight: bold;
}
.status-connected {
background: #10b981;
color: white;
}
.status-disconnected {
background: #ef4444;
color: white;
}
#toast-container {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 2000;
}
.toast {
background: rgba(0,0,0,0.9);
color: white;
padding: 12px 20px;
margin-top: 10px;
border-radius: 4px;
box-shadow: 0 4px 6px rgba(0,0,0,0.3);
animation: slideIn 0.3s ease-out;
}
.toast-info {
border-left: 4px solid #3b82f6;
}
.toast-warning {
border-left: 4px solid #f59e0b;
}
.toast-error {
border-left: 4px solid #ef4444;
}
@keyframes slideIn {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
/* Timeline Styles */
.timeline-controls {
background: #2d2d2d;
padding: 15px;
margin-bottom: 10px;
border-radius: 4px;
}
#timeline-container {
width: 100%;
height: calc(100vh - 150px);
}
.axis path,
.axis line {
stroke: #444;
}
.axis text {
fill: #aaa;
}
/* Dashboard Styles */
h1 {
color: #e5e7eb;
padding: 20px;
margin: 0;
}
.dashboard-grid {
display: grid;
grid-template-columns: 1fr 2fr;
gap: 20px;
padding: 20px;
}
.metric-cards {
display: flex;
flex-direction: column;
gap: 15px;
}
.stat-card {
background: #2a2a2a;
padding: 20px;
border-radius: 8px;
border-left: 4px solid #3b82f6;
}
.stat-card h3 {
margin: 0 0 10px 0;
color: #aaa;
font-size: 14px;
font-weight: normal;
}
.stat-value {
font-size: 32px;
font-weight: bold;
color: #e5e7eb;
margin: 0;
}
.charts {
display: grid;
grid-template-columns: 1fr;
gap: 20px;
}
canvas {
background: #2a2a2a;
border-radius: 8px;
padding: 15px;
}
/* Gaps Styles */
.gap-item {
display: inline-block;
width: 150px;
height: 100px;
margin: 10px;
border-radius: 8px;
cursor: pointer;
padding: 15px;
text-align: center;
transition: transform 0.2s;
}
.gap-item:hover {
transform: scale(1.05);
}
.gap-info {
font-size: 12px;
color: white;
}
.severity {
font-weight: bold;
display: block;
margin-bottom: 10px;
font-size: 14px;
}
.nodes {
display: block;
font-size: 11px;
}
#gap-details {
margin-top: 20px;
padding: 20px;
background: #2a2a2a;
border-radius: 8px;
}
#heatmap-container {
padding: 20px;
}
#heatmap-container h2 {
color: #e5e7eb;
margin-top: 0;
}