Spaces:
Running
Running
Komalpreet Kaur
style: finalize 100% full-fluid responsive layout with card width clamps, height-collapsed graph fixes, and navigation icon differentiation
32f728b unverified | /* KnowledgeGraph.css - Premium Sci-Fi 3D Semantic Mesh styling */ | |
| .graph-stage { | |
| display: flex; | |
| flex-direction: column; | |
| height: 100%; | |
| position: relative; | |
| gap: 10px; | |
| padding: 0 16px 16px 16px; | |
| overflow: hidden; | |
| } | |
| .graph-toolbar { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| gap: 12px; | |
| } | |
| .graph-title-block { | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| flex-wrap: wrap; | |
| } | |
| .graph-select { | |
| background: rgba(255, 255, 255, 0.6); | |
| backdrop-filter: blur(20px); | |
| border: 1px solid rgba(255, 255, 255, 0.8); | |
| border-radius: 100px; | |
| padding: 0 14px; | |
| height: 32px; | |
| display: flex; | |
| align-items: center; | |
| gap: 6px; | |
| font-size: 0.75rem; | |
| color: #1a1a1a; | |
| font-weight: 700; | |
| box-shadow: 0 4px 15px rgba(0,0,0,0.02); | |
| } | |
| .graph-select .material-icons { | |
| color: #06b6d4; | |
| font-size: 16px; | |
| } | |
| /* DB Status Badges */ | |
| .db-status-badge { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 8px; | |
| padding: 6px 14px; | |
| border-radius: 100px; | |
| font-size: 0.7rem; | |
| font-weight: 700; | |
| text-transform: uppercase; | |
| letter-spacing: 0.05em; | |
| border: 1px solid transparent; | |
| } | |
| .db-status-badge.warning { | |
| background: rgba(245, 158, 11, 0.08); | |
| color: #d97706; | |
| border-color: rgba(245, 158, 11, 0.2); | |
| } | |
| .db-status-badge.success { | |
| background: rgba(16, 185, 129, 0.08); | |
| color: #059669; | |
| border-color: rgba(16, 185, 129, 0.2); | |
| } | |
| .db-status-badge .dot { | |
| width: 6px; | |
| height: 6px; | |
| border-radius: 50%; | |
| background-color: currentColor; | |
| } | |
| /* Actions */ | |
| .graph-actions { | |
| display: flex; | |
| gap: 10px; | |
| } | |
| .graph-icon-button { | |
| width: 32px; | |
| height: 32px; | |
| background: rgba(255, 255, 255, 0.7); | |
| backdrop-filter: blur(20px); | |
| border: 1px solid rgba(255, 255, 255, 0.9); | |
| border-radius: 10px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| color: #555; | |
| transition: all 0.2s; | |
| box-shadow: 0 2px 8px rgba(0,0,0,0.02); | |
| cursor: pointer; | |
| } | |
| .graph-icon-button .material-icons { | |
| font-size: 16px; | |
| } | |
| .graph-icon-button:hover { | |
| transform: translateY(-1px); | |
| background: white; | |
| color: #ff6b35; | |
| box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15); | |
| } | |
| /* ── Network Container ── */ | |
| .graph-network-container { | |
| flex: 1; | |
| position: relative; | |
| border-radius: 24px; | |
| overflow: hidden; | |
| box-shadow: var(--shadow-md), inset 0 0 80px rgba(255, 255, 255, 0.3); | |
| border: 1px solid rgba(255, 255, 255, 0.8); | |
| background: rgba(255, 255, 255, 0.35); | |
| backdrop-filter: blur(25px); | |
| padding-left: 160px; /* Shifted slightly left compared to before to balance the canvas center */ | |
| box-sizing: border-box; | |
| } | |
| .brain-silhouette { | |
| position: absolute; | |
| top: 50%; | |
| left: 50%; | |
| transform: translate(-50%, -50%); | |
| width: min(85vw, 550px); | |
| height: min(85vw, 550px); | |
| pointer-events: none; | |
| z-index: 0; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| opacity: 0.85; | |
| } | |
| /* Tooltip micro-HUD */ | |
| .graph-tooltip { | |
| background: rgba(255, 255, 255, 0.96) ; | |
| border: 1px solid rgba(255, 107, 53, 0.2) ; | |
| box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) ; | |
| border-radius: 10px ; | |
| padding: 10px 14px ; | |
| color: #1e293b ; | |
| font-family: var(--font-mono), monospace ; | |
| font-size: 0.75rem ; | |
| pointer-events: none; | |
| } | |
| .graph-tooltip strong { | |
| display: block; | |
| font-size: 0.8rem; | |
| color: #ff6b35; | |
| margin-bottom: 6px; | |
| border-bottom: 1px solid rgba(0,0,0,0.06); | |
| padding-bottom: 4px; | |
| } | |
| .tooltip-sub { | |
| color: #64748b; | |
| margin-top: 2px; | |
| } | |
| /* Loading HUD overlay */ | |
| .graph-loading { | |
| position: absolute; | |
| top: 50%; | |
| left: 50%; | |
| transform: translate(-50%, -50%); | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| gap: 16px; | |
| color: #ff6b35; | |
| font-family: var(--font-mono), monospace; | |
| font-size: 0.8rem; | |
| text-transform: uppercase; | |
| letter-spacing: 0.1em; | |
| z-index: 10; | |
| pointer-events: none; | |
| background: rgba(255, 255, 255, 0.85); | |
| padding: 24px 36px; | |
| border-radius: 16px; | |
| border: 1px solid rgba(255, 107, 53, 0.2); | |
| backdrop-filter: blur(10px); | |
| } | |
| .graph-loading .material-icons { | |
| font-size: 32px; | |
| } | |
| /* Legend - Floating Absolutely in the 3D Container */ | |
| .graph-legend { | |
| position: absolute; | |
| bottom: 16px; | |
| left: calc(50% + 80px); /* Re-centered perfectly relative to the 160px shift */ | |
| transform: translateX(-50%); | |
| display: flex; | |
| gap: 20px; | |
| justify-content: center; | |
| background: rgba(255, 255, 255, 0.75); | |
| backdrop-filter: blur(25px); | |
| border: 1px solid rgba(255, 255, 255, 0.8); | |
| padding: 8px 24px; | |
| border-radius: 100px; | |
| box-shadow: 0 8px 32px rgba(0,0,0,0.03); | |
| z-index: 100; | |
| pointer-events: auto; | |
| } | |
| .legend-item { | |
| display: flex; | |
| align-items: center; | |
| gap: 6px; | |
| font-size: 0.65rem; | |
| color: #555; | |
| font-weight: 800; | |
| text-transform: uppercase; | |
| letter-spacing: 0.05em; | |
| } | |
| .legend-item::before { | |
| content: ''; | |
| width: 6px; | |
| height: 6px; | |
| border-radius: 50%; | |
| box-shadow: 0 0 8px currentColor; | |
| } | |
| .legend-item.core { color: #ff6b35; } | |
| .legend-item.core::before { background-color: #ff6b35; } | |
| .legend-item.high { color: #ff6b35; } | |
| .legend-item.high::before { background-color: #ff6b35; } | |
| .legend-item.medium { color: #ff9c7a; } | |
| .legend-item.medium::before { background-color: #ff9c7a; } | |
| .legend-item.entity { color: #a3a3a3; } | |
| .legend-item.entity::before { background-color: #a3a3a3; } | |
| /* ── Live Telemetry HUD Overlay ── */ | |
| .graph-hud-overlay { | |
| position: absolute; | |
| top: 16px; | |
| left: 16px; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 12px; | |
| z-index: 100; | |
| pointer-events: none; /* Let clicks pass through to 3D graph */ | |
| } | |
| .hud-panel { | |
| background: rgba(255, 255, 255, 0.75); | |
| backdrop-filter: blur(25px); | |
| border: 1px solid rgba(255, 255, 255, 0.8); | |
| border-radius: 16px; | |
| padding: 12px 14px; | |
| width: 190px; | |
| box-shadow: 0 8px 32px rgba(0,0,0,0.03); | |
| pointer-events: auto; /* Re-enable clicks for panel contents */ | |
| display: flex; | |
| flex-direction: column; | |
| gap: 8px; | |
| animation: fadeIn 0.4s ease-out; | |
| } | |
| .hud-header { | |
| display: flex; | |
| align-items: center; | |
| gap: 6px; | |
| font-size: 0.7rem; | |
| font-weight: 800; | |
| text-transform: uppercase; | |
| letter-spacing: 0.08em; | |
| color: #ff6b35; | |
| border-bottom: 1px solid rgba(0,0,0,0.04); | |
| padding-bottom: 6px; | |
| } | |
| .hud-header .material-icons { | |
| font-size: 14px; | |
| } | |
| .hud-row { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| font-size: 0.7rem; | |
| } | |
| .hud-label { | |
| color: #64748b; | |
| font-weight: 600; | |
| } | |
| .hud-value { | |
| color: #1e293b; | |
| font-weight: 800; | |
| font-family: var(--font-mono), monospace; | |
| } | |
| .hud-value.status-glow { | |
| color: #10b981; | |
| background: rgba(16, 185, 129, 0.1); | |
| padding: 2px 6px; | |
| border-radius: 6px; | |
| font-weight: 800; | |
| text-shadow: 0 0 8px rgba(16, 185, 129, 0.2); | |
| } | |
| .hud-entity-list { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 6px; | |
| } | |
| .hud-entity-row { | |
| display: flex; | |
| align-items: center; | |
| font-size: 0.65rem; | |
| gap: 4px; | |
| } | |
| .entity-rank { | |
| color: #94a3b8; | |
| font-weight: 700; | |
| width: 18px; | |
| } | |
| .entity-name { | |
| color: #1e293b; | |
| font-weight: 700; | |
| flex: 1; | |
| white-space: nowrap; | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| } | |
| .entity-connections { | |
| color: #ff6b35; | |
| font-weight: 800; | |
| font-family: var(--font-mono), monospace; | |
| background: rgba(255, 107, 53, 0.08); | |
| padding: 1px 4px; | |
| border-radius: 4px; | |
| } | |
| /* Pulse animation utility */ | |
| @keyframes pulse-light { | |
| 0% { opacity: 1; } | |
| 50% { opacity: 0.4; } | |
| 100% { opacity: 1; } | |
| } | |
| .pulse { | |
| animation: pulse-light 1.5s infinite ease-in-out; | |
| } | |
| /* ── Holographic Scene Tooltips (Hover Outlined Style) ── */ | |
| .graph-tooltip { | |
| background: transparent ; | |
| border: none ; | |
| box-shadow: none ; | |
| font-family: 'Inter', sans-serif ; | |
| font-weight: 800 ; | |
| text-transform: uppercase ; | |
| pointer-events: none ; | |
| text-shadow: | |
| -3px -3px 0 #fff, | |
| 3px -3px 0 #fff, | |
| -3px 3px 0 #fff, | |
| 3px 3px 0 #fff, | |
| -3px 0px 0 #fff, | |
| 3px 0px 0 #fff, | |
| 0px -3px 0 #fff, | |
| 0px 3px 0 #fff ; | |
| padding: 0 ; | |
| } | |
| .graph-tooltip strong { | |
| font-weight: 800 ; | |
| } | |
| /* ── Responsive Overrides ── */ | |
| @media (max-width: 1024px) { | |
| .graph-stage { | |
| padding: 0 0 16px 0 ; | |
| } | |
| .graph-toolbar { | |
| flex-direction: column ; | |
| align-items: flex-start ; | |
| padding: 0 16px ; | |
| } | |
| .graph-actions { | |
| width: 100% ; | |
| justify-content: flex-start ; | |
| flex-wrap: wrap ; | |
| } | |
| .graph-network-container { | |
| padding-left: 0 ; /* Remove shifted padding */ | |
| border-radius: 16px ; | |
| height: 460px ; | |
| min-height: 460px ; | |
| width: 100% ; | |
| flex: none ; | |
| } | |
| .graph-hud-overlay { | |
| position: relative ; | |
| top: auto ; | |
| left: auto ; | |
| padding: 16px ; | |
| display: grid ; | |
| grid-template-columns: 1fr 1fr ; | |
| gap: 16px ; | |
| } | |
| .hud-panel { | |
| width: 100% ; | |
| box-sizing: border-box ; | |
| } | |
| /* On very small screens stack the HUD panels */ | |
| @media (max-width: 600px) { | |
| .graph-hud-overlay { | |
| grid-template-columns: 1fr ; | |
| } | |
| } | |
| } | |