The user wants a real-time legal hold enforcement system with a cyberpunk/hard sci-fi FUI design. The requirements:
- Freezes data flows
- Captures audits
- Integrates with litigation workflows
- FUI design with complex grid, hairlines, neon glow, dark mode, monospace fonts
- Data decoding effect, holographic 3D UI, micro-interactions, HUD layout
- Tech stack: Tailwind CSS, Canvas API, Three.js/WebGL, Glitch shaders
I need to design a single HTML page that demonstrates this system. The system should have:
- Real-time data flow visualization (canvas or three.js showing streams of data)
- Legal hold controls to freeze data
- Audit log capturing
- Litigation workflow integration (case management)
Let's structure it:
- Header with system status, time, user info
- Main area split: left panel for controls and case list, center for data flow visualization, right panel for audit logs and metrics.
- Use a cyberpunk aesthetic: dark background (#050505), neon cyan/magenta/amber colors, thin lines, corner brackets.
- Implement interactive elements: buttons with glitch effects, hover states, scrolling text.
- Use Canvas for data flow: streams of particles/lines representing data packets moving; when hold is enabled, they freeze or turn red.
- Three.js could be used for a 3D wireframe globe or data structure, but maybe keep it simpler with canvas for performance.
- Add decoding effect for text: random characters before settling.
- HUD layout: elements anchored to screen edges.
Plan:
- HTML structure with Tailwind classes for layout.
- Overlay div for grid lines, corner decorations.
- Canvas element for data flow (full screen behind everything, with dark overlay).
- Panels with glassmorphism (semi-transparent, border glow).
- JavaScript to animate data flow, handle interactions, update logs.
- Use monospace font (JetBrains Mono or similar).
- Colors: cyan (#00f3ff), magenta (#ff00ff), amber (#ffaa00), background #050505.
Implementation steps:
- Set up HTML skeleton with Tailwind via CDN.
- Add Google Fonts: JetBrains Mono.
- Create background canvas for data particles.
- Build UI panels with Tailwind: left (case list and hold controls), center (maybe empty to show data flow), right (audit log, stats).
- Style with custom CSS for neon glow, hairline borders, corner brackets using pseudo-elements.
- JavaScript:
- Particle system for data flow: particles moving randomly; on "freeze", they stop and change color.
- Decoding text function for headings.
- Simulated real-time log entries.
- Case selection and hold activation.
- HUD metrics with random updates.
- Add glitch effect on button hover/click using CSS animations or JS.
- Ensure responsive? Probably fixed for desktop but can be fluid.
Let's write code.
First, the HTML/CSS:
- Use Tailwind grid/flex.
- Define custom colors in style tag.
- Grid overlay: a div with absolute positioning, pointer-events none, with repeating linear-gradient lines.
- Corner brackets: four divs with absolute corners.
Data flow visualization: I'll create a canvas that covers the entire screen (z-index 0). The UI panels will be on top (z-index 10).
UI panels: semi-transparent black with border-cyan and box-shadow glow.
Case list: list of cases with toggle for hold. Left panel width ~1/4. Right panel width ~1/4. Center area is empty showing data flow.
Alternatively, we can have a 3D visualization in center using Three.js. Let's decide: for this demo, canvas particles will be fine. But to meet requirement of three.js maybe add a small rotating wireframe cube in a corner or as part of the central visualization? The prompt says "Three.js / WebGL: Render wireframe mode (Wireframe) ...". So we should use Three.js for something. Perhaps the data flow could be a 3D network of points using Three.js with lines connecting. That would be cooler. But implementing a full 3D particle system in Three.js within a single file might be heavy. However we can do a simple Three.js scene: a rotating icosahedron wireframe with points moving along edges. But it's okay. We'll do a 3D computational grid: a rotating cube grid with points representing nodes. And the data flow could be lines between nodes.
Alternatively, use Three.js for a central "data core" sphere with moving particles. That would be elaborate but doable.
Given time, maybe use Canvas for the main flow and Three.js for a small holographic element (like a rotating case ID cube). But the prompt expects Three.js for wireframe mode. So incorporate Three.js scene as the central visualization. Yes, center of the screen: a Three.js canvas showing a rotating wireframe globe or grid with data packets moving along lines. That's more impressive.
So we'll have:
- Background: dark grid pattern.
- Center: Three.js canvas.
- Left and right panels.
But the Three.js canvas should be full-screen? Usually UI overlays on top. Could have Three.js as background (z-index 0), and UI panels on top with transparent backgrounds to show the 3D scene. That would be very immersive. But panels need to be readable, so they should have dark semi-transparent backgrounds. Good.
So:
- Three.js canvas (z-index 0) covering full window.
- Overlay grid lines (z-index 1) with pointer-events none.
- UI panels (z-index 10) with backdrop blur.
Let's structure:
UI panels using flex: left panel (w-1/4), center (maybe empty), right (w-1/4). But we need to visualize data flow? That's in 3D scene. So center area could be free, but we could also put some HUD elements like a case details panel in center bottom.
Better: HUD elements scattered: top bar, bottom bar, left list, right logs. Center is open for 3D visualization.
Thus:
- Top bar: system title, clock, user.
- Bottom bar: status line.
- Left panel: case list (scrollable) and "ENFORCE HOLD" button.
- Right panel: audit log (streaming text) and metrics.
- Center: the Three.js scene.
Cover all requirements: freezing data flows (in 3D scene we can represent data as moving particles; when hold is active, they stop or turn red). Captures audits (right panel shows log entries). Integration with litigation workflows (case list, hold activation).
Now, let's design specifics.
Colors:
- primary neon: cyan (#00f3ff)
- secondary: magenta (#ff00ff)
- accent: amber (#ffaa00)
- background: #050505
- panel bg: rgba(5, 5, 5, 0.85) with 1px border cyan/opacity 0.5
Fonts: 'JetBrains Mono', monospace.
Tailwind CDN: use 3.4.1.
Three.js CDN: from unpkg or cdnjs.
Icons: maybe use SVG for some UI elements (like power button). Or use text tags.
Implement:
- HTML structure.
- Custom CSS for grid, corners, glow, animations.
- JavaScript:
-
Initialize Three.js scene with camera, renderer, objects.
-
Create a wireframe network (e.g., IcosahedronGeometry with many points).
-
Add moving data particles along edges or random movement on surface.
-
Implement freeze: when hold active, particles stop; maybe turn amber.
-
Update camera movement based on mouse? For interactivity.
-
Handle window resize.
-
Left panel: list of cases (dummy data). Click to select; button to toggle hold.
-
Right panel: Audit log: array of strings, append new ones periodically. Auto-scroll.
-
Top bar: clock updating.
-
Decoding effect for titles: use JS to cycle random chars.
-
Interaction: clicking case updates details, changes 3D scene color? Not necessary.
Let's draft code.
First, the CSS styles:
- Add keyframes for glitch effect: clip-path changes, transform translate.
- Breathing glow animation for borders.
We'll define:
.neon-text { color: cyan; text-shadow: 0 0 5px cyan; }
.neon-border { border: 1px solid cyan; box-shadow: 0 0 5px cyan inset; }
.panel { background: rgba(5,5,5,0.85); backdrop-filter: blur(4px); }
Grid overlay: using repeating-linear-gradient to create grid lines.
Corner brackets: four divs with borders on two sides, positioned top-left, top-right, bottom-left, bottom-right. Use absolute within viewport.
HUD corners: we can reuse for panels too.
Make it very detailed.
Now JavaScript structure:
-
DOM ready.
-
Setup Three.js:
- scene, camera, renderer (alpha:true)
- Add a group of nodes: points (BufferGeometry) with positions.
- Lines: Wireframe of a sphere (Icosahedron).
- Data particles: small spheres moving along edges.
- Animate loop: rotate object, move particles along edges. If holdActive, pause particle movement and change color.
-
Data flow simulation: also have background particles floating? The wireframe itself is the network.
-
Keep a variable holdActive, global.
-
Case list rendering: array of cases {id, name, status}. On click, set selectedCase.
-
Hold button: toggles holdActive, updates UI and 3D scene.
-
Audit log: function addLog(message). Use timestamps. Simulate log entries every few seconds, and when hold toggled add entry.
-
Clock: update every second.
-
Decoding title: function decodeText(element, finalText). We can apply to main title.
We also need to implement "freezes data flows" - so when hold is active, the 3D particles stop moving, maybe turn amber. Also the "freeze" could be represented by a red ring or something.
Now, start coding.
Will use ES6 modules? Not necessary; just plain script.
Include Three.js from CDN: https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js.
Tailwind via CDN.
Fonts: Google Fonts.
Also include a glitch shader? Might be heavy. Use CSS glitch.
Implement the UI panels:
But we need top and bottom bars.
Top: fixed top-0 left-0 right-0 h-12 border-b border-cyan-500/30 flex items-center justify-between px-4 bg-black/80.
Bottom: fixed bottom-0 left-0 right-0 h-8 border-t border-cyan-500/30 flex items-center px-4 text-xs font-mono text-cyan-600/80.
Add corner brackets to all panels? Could add a div with absolute corners.
Let's create a class .panel that includes relative border and corner decorations.
But we can simplify: use pseudo-elements for corners.
For each panel: position relative; before and after for corners? Actually we need four corners. Could use four child divs with absolute positions.
Define in CSS:
.panel-corner {
position: absolute;
width: 8px;
height: 8px;
border: 1px solid #00f3ff;
}
.top-left { top: 0; left: 0; border-right: none; border-bottom: none; }
.top-right { top: 0; right: 0; border-left: none; border-bottom: none; }
.bottom-left { bottom: 0; left: 0; border-right: none; border-top: none; }
.bottom-right { bottom: 0; right: 0; border-left: none; border-top: none; }
And add these corners to each panel via HTML. Or use JS to generate.
Given many panels, manual adding might be messy. We'll do it manually for key panels: left, right, top bar, bottom bar? Actually top and bottom bars already have full width; they may not need corners? Usually FUI corners are on the frame edges. We'll add corners to the main UI container? The entire UI is a HUD frame. That might be better: a full-screen overlay with corner brackets at the corners, and maybe a crosshair at center. Then panels are inside without their own corners. Let's do:
- A div #hud-frame fixed inset-0 pointer-events-none with corners and border edges? Actually edges: maybe thin border lines at top, left, right, bottom? But our panels have borders already. Could have overall border.
To keep it simple: Each panel has its own corners. That's more work but doable.
We'll add corner elements manually in HTML for left and right panels. For top bar, maybe add corners at ends? Not needed.
Let's design the left panel:
Define .corner in CSS as above.
Now, the button: with glitch effect. We can use CSS:
@keyframes glitch {
0% { transform: translate(0); }
20% { transform: translate(-2px, 2px); }
40% { transform: translate(-2px, -2px); }
60% { transform: translate(2px, 2px); }
80% { transform: translate(2px, -2px); }
100% { transform: translate(0); }
}
.glitch-hover:hover {
animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
color: #ff00ff;
border-color: #ff00ff;
box-shadow: 0 0 10px #ff00ff inset;
}
That will give glitch on hover.
Now, decoding text effect: function decodeText(element, finalText). We'll create a title like "LITIGATION HOLD ENFORCEMENT" and decode it on load.
Implementation: every tick, each character either stays random or becomes final based on probability.
We'll use setInterval.
Now, audit log: function addLog(msg) that prepends or appends to a container with small font, and scrolls to bottom.
Metrics: show things like "Data Throughput: 4.2 TB/s", "Hold Status: ACTIVE", etc. Update randomly.
Now, Three.js scene:
-
Create scene, camera (PerspectiveCamera).
-
Renderer: set size to window.innerWidth, innerHeight, antialias: true.
-
Append to body with style position: fixed; top:0; left:0; z-index:0.
-
Object: Let's create a large wireframe sphere (IcosahedronGeometry with detail 2 or 4). Use MeshBasicMaterial with wireframe: true, color cyan.
-
Add a point cloud: BufferGeometry with random points on sphere surface? Could use particles as data packets. We'll create separate objects for moving particles.
Simplify: We'll have a group: the wireframe sphere and a set of small spheres (sprites or points) that move along the edges. We need edges to define paths. For Icosahedron, we can get edges from geometry's index? That's complex. Alternative: we create a set of points on the surface that move randomly (like a swarm). That's easier.
Better: Use a torus knot? Or just a rotating cube with points moving on its faces? Hmm.
Since we need to represent data flows, we could have lines connecting the sphere to origin? Or We could have a particle system moving in a vortex. Simpler: create a series of points that move in a flow, like a stream of dots moving along a path. But that might be less "network".
We can create a set of particles that move randomly within a sphere, and draw lines between them if close? That's expensive.
Given the time, I'll create a wireframe globe (Earth-like) with points representing cities, and arcs showing data flows between them. That's classic. But implementing arcs is a bit more work: we need to compute great circle arcs and animate dots along them.
Simplify: We'll create a 3D network of nodes and edges. Nodes are spheres, edges are cylinders? Too heavy for many.
Alternate approach: Use a "circuit board" look: a grid of lines in perspective. Maybe a 2D grid that rotates? That's easier with CSS 3D transforms? Not in Three.js.
I'll go with a wireframe sphere rotating, and have many small particles (points) moving on the surface in random directions. They will be the "data packets". When hold is active, all particles stop and change color. That is simple: we have an array of particle objects with position as Vector3 and direction as Vector3 (on tangent?). We can move them along the sphere surface by normalizing position and adding a small random perpendicular step? That would drift them. But they might detach. Better: use spherical coordinates: theta, phi, and increment those, then convert to Cartesian. Or we can simply have particles moving in straight lines and when they go outside sphere, wrap around to other side. That is easier: particles move freely in 3D space inside a bounding sphere. When they hit the sphere boundary, they reflect? Or we can just have a limit and reset. Data packets can be small spheres moving along straight lines; they represent data in transit. The sphere wireframe is the network boundary.
So: create a sphere (wireframe) as boundary. Create particles (THREE.Sprite or Mesh) that move randomly within the sphere. When hold active, freeze them.
Add some glow effects using sprites with a texture? Could use a simple small sphere with emissive material.
We'll generate ~200 particles. For each, random position inside sphere radius R. Random velocity vector. In animation loop, if not holdActive, update positions by adding velocity. If distance from center > R, reverse velocity (or reposition to opposite side? Simpler: bounce). Also rotate them with the sphere? If we rotate the sphere container, particles should be independent? Maybe they are inside, so we can keep particles world static while sphere rotates. That's fine.
Now, to connect to freeze: we set a flag holdActive = false. In loop, if holdActive, don't update positions; set particle color to amber; else set to cyan.
Also, we could have an effect when hold toggles: a shockwave ring expanding.
We'll do that.
Now, UI integration: hold button toggles holdActive and updates button text, also adds audit log entry.
Also, we can have a count of "frozen packets" percentage.
Now, implement.
Let's code step by step.
First, meta and head:
That should cover requirements. It has:
- Real-time legal hold enforcement: toggles hold, freezes data (particles stop moving, change color), captures audits (log entries), integrates with litigation workflows (case list).
- Neon glow, hairlines, grid overlay, monospace font.
- Decoding text on title.
- Three.js wireframe sphere with particles.
- Micro-interactions: hover glitch, case selection highlight.
- HUD layout with corners, status bars.
- Dynamic metrics.
We might need to ensure the particles freeze completely when hold is active. In code, we skip position updates when holdActive. Also we change color to amber. That's good.
We could also add a shockwave effect on hold toggle, but not necessary.
Let's verify the design: The panels have corners, borders, backdrop blur. The three.js scene is full screen behind. The grid overlay is subtle.
Check for any missing dependencies: Tailwind via CDN, Three.js via CDN, Google Fonts. Should work.
Potential issues: "glitch-hover" on button uses animation that might be too much? It's fine.
Case list click updates selection and logs.
The decoding function cycles random characters indefinitely until matches; should be okay.
We might want to add a "SCANLINE" effect? Could add a CSS repeating linear gradient with low opacity to give CRT scanlines. That would be extra. The prompt says Scanlines optional but we can add. Let's add a fixed overlay with pointer-events none:
#scanlines {
position: fixed;
top:0; left:0; right:0; bottom:0;
background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0,0,0,0.25) 50%), linear-gradient(90deg, rgba(255,0,0,0.06), rgba(0,255,0,0.02), rgba(0,0,255,0.06));
background-size: 100% 2px, 3px 100%;
pointer-events: none;
z-index: 999;
}
But careful to not conflict with other UI z-indexes. We can set high z-index but pointer-events none. That's fine.
Add to HTML.
Also, we can add a subtle vignette.
But we already have grid overlay. Might be enough.
One more: The corners we placed at 10px offset from edges? In CSS for overall corners we used style with 10px. That's fine.
Let's also add breathing animation to some elements, e.g., the panel borders could pulse? We could add a subtle pulse to the .neon-text or button border. Not essential.
Now, test mentally: When page loads, title decodes. Three.js scene runs. Case list renders. Audit log gets simulated entries. Clock ticks. Buttons work. Dragging rotates sphere.
Everything seems functional.
Potential improvements: The hold button should also update the frozen packets percentage to 100% immediately; it does.
We might also show hold status in the bottom status line. We didn't, but it's okay.
We have a "status-line" in footer; we could update it with hold status. Could add a custom code.
But it's fine.
Now, ensure we didn't use any ES6 features that might break in old browsers? Probably okay.
Now, final answer: Provide the complete HTML code.
We'll also include comments in the code explaining parts for clarity.
Let's produce final output.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>LEGAL HOLD ENFORCEMENT SYSTEM // v2.0.77</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;700&display=swap" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<style>
:root {
--neon-cyan: #00f3ff;
--neon-magenta: #ff00ff;
--neon-amber: #ffaa00;
--bg-dark: #050505;
--panel-bg: rgba(5,5,5,0.85);
}
body {
margin: 0;
overflow: hidden;
background-color: var(--bg-dark);
color: var(--neon-cyan);
font-family: 'JetBrains Mono', monospace;
}
#bg3d {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: 0;
}
#grid-overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-image:
linear-gradient(rgba(0,243,255,0.03) 1px, transparent 1px),
linear-gradient(90deg, rgba(0,243,255,0.03) 1px, transparent 1px);
background-size: 40px 40px;
pointer-events: none;
z-index: 1;
}
/* Optional scanlines for retro CRT feel */
#scanlines {
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0,0,0,0.15) 50%), linear-gradient(90deg, rgba(255,0,0,0.03), rgba(0,255,0,0.01), rgba(0,0,255,0.03));
background-size: 100% 2px, 3px 100%;
pointer-events: none;
z-index: 100;
}
.panel {
background: var(--panel-bg);
border: 1px solid rgba(0,243,255,0.3);
backdrop-filter: blur(4px);
position: relative;
overflow: hidden;
}
.corner {
position: absolute;
width: 10px;
height: 10px;
border: 1px solid var(--neon-cyan);
opacity: 0.7;
}
.corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.corner.br { bottom: 0; right: 0; border-left: none; border-top: none; }
.neon-text {
color: var(--neon-cyan);
text-shadow: 0 0 5px var(--neon-cyan), 0 0 10px var(--neon-cyan);
}
.neon-border-glow {
box-shadow: 0 0 10px rgba(0,243,255,0.3), inset 0 0 10px rgba(0,243,255,0.2);
}
.glitch-hover:hover {
color: var(--neon-magenta);
border-color: var(--neon-magenta);
box-shadow: 0 0 15px rgba(255,0,255,0.4) inset;
animation: glitch 0.3s linear infinite;
}
@keyframes glitch {
0% { transform: translate(0); }
20% { transform: translate(-2px, 2px); }
40% { transform: translate(-2px, -2px); }
60% { transform: translate(2px, 2px); }
80% { transform: translate(2px, -2px); }
100% { transform: translate(0); }
}
/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(0,243,255,0.05); }
::-webkit-scrollbar-thumb { background: rgba(0,243,255,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,243,255,0.5); }
/* Decoding text style */
.decoding {
font-variant-numeric: tabular-nums;
}
</style>
</head>
<body>
<!-- Three.js background -->
<canvas id="bg3d"></canvas>
<!-- Grid overlay -->
<div id="grid-overlay"></div>
<!-- Scanlines overlay (optional) -->
<div id="scanlines"></div>
<!-- HUD Frame corners (overall) -->
<div id="hud-corners" class="fixed inset-0 pointer-events-none z-50">
<div class="corner" style="top: 10px; left: 10px; border-width: 2px; box-shadow: 0 0 5px var(--neon-cyan);"></div>
<div class="corner" style="top: 10px; right: 10px; border-width: 2px; box-shadow: 0 0 5px var(--neon-cyan);"></div>
<div class="corner" style="bottom: 10px; left: 10px; border-width: 2px; box-shadow: 0 0 5px var(--neon-cyan);"></div>
<div class="corner" style="bottom: 10px; right: 10px; border-width: 2px; box-shadow: 0 0 5px var(--neon-cyan);"></div>
</div>
<!-- Top Bar -->
<header class="fixed top-0 left-0 right-0 h-12 border-b border-cyan-500/30 bg-black/80 flex items-center justify-between px-6 z-40">
<div class="flex items-center space-x-3">
<div class="w-2 h-8 bg-cyan-500 animate-pulse"></div>
<h1 id="main-title" class="text-lg tracking-widest uppercase neon-text decoding"></h1>
</div>
<div class="text-xs text-cyan-600/80 font-mono flex items-center space-x-6">
<span id="clock">00:00:00</span>
<span>SYS.VER: 2.0.77</span>
<span class="text-amber-500/80">[LEGAL HOLD MODULE]</span>
</div>
</header>
<!-- Bottom Bar -->
<footer class="fixed bottom-0 left-0 right-0 h-8 border-t border-cyan-500/30 bg-black/80 flex items-center justify-between px-6 z-40 text-xs font-mono text-cyan-600/60">
<div id="status-line" class="flex space-x-4">
<span>NET: SECURE</span>
<span>UPLINK: STABLE</span>
</div>
<div>
<span>ENCRYPTION: AES-256</span>
</div>
</footer>
<!-- Main UI Container -->
<div class="relative z-10 flex h-screen pt-12 pb-8 pl-2 pr-2">
<!-- Left Panel: Case Directory -->
<div class="w-1/4 panel flex flex-col p-4 mr-2">
<div class="corner tl"></div><div class="corner tr"></div><div class="corner bl"></div><div class="corner br"></div>
<h2 class="neon-text text-sm mb-3 uppercase tracking-wider border-b border-cyan-500/30 pb-2">Case Directory</h2>
<div id="case-list" class="flex-1 overflow-y-auto space-y-1 font-mono text-sm">
<!-- Cases rendered here -->
</div>
<div class="mt-4 flex space-x-2">
<button id="hold-btn" class="flex-1 border border-cyan-500 text-cyan-500 hover:bg-cyan-500/10 active:scale-95 transition-all py-2 px-2 text-xs uppercase tracking-widest glitch-hover">
Enforce Hold
</button>
<button class="border border-cyan-500/50 text-cyan-500/50 hover:border-cyan-400 hover:text-cyan-400 px-3 text-sm">i</button>
</div>
<div id="hold-status" class="mt-2 text-xs text-center h-6 leading-6 font-mono">
<span class="text-cyan-500/60">HOLD: INACTIVE</span>
</div>
</div>
<!-- Center: Visualization area - overlay for mouse interaction -->
<div class="flex-1 relative flex items-center justify-center">
<!-- Crosshair center -->
<div class="absolute w-16 h-16 border border-cyan-500/20 rounded-full flex items-center justify-center">
<div class="w-1 h-1 bg-cyan-500/60"></div>
</div>
<!-- Data readout overlay -->
<div class="absolute bottom-12 left-12 font-mono text-xs space-y-1">
<div>FROZEN PACKETS: <span id="frozen-pct" class="text-amber-500">0.00%</span></div>
<div>THROUGHPUT: <span id="throughput" class="text-cyan-500">4.2 TB/s</span></div>
</div>
</div>
<!-- Right Panel: Audit Log -->
<div class="w-1/4 panel flex flex-col p-4 ml-2">
<div class="corner tl"></div><div class="corner tr"></div><div class="corner bl"></div><div class="corner br"></div>
<h2 class="neon-text text-sm mb-3 uppercase tracking-wider border-b border-cyan-500/30 pb-2">Audit Trail</h2>
<div id="audit-log" class="flex-1 overflow-y-auto font-mono text-xs space-y-1 text-cyan-200/80">
<!-- Log entries -->
</div>
</div>
</div>
<script>
// --- Globals ---
let holdActive = false;
let selectedCaseId = 1;
const caseData = [
{ id: 1, name: 'PROJECT_APEX', status: 'active', custodian: 'J.T. Ford', flags: 3 },
{ id: 2, name: 'MERGER_X92', status: 'preserved', custodian: 'S. Lee', flags: 1 },
{ id: 3, name: 'PATENT_DISPUTE', status: 'active', custodian: 'A. Chen', flags: 5 },
{ id: 4, name: 'COMPLIANCE_22', status: 'archived', custodian: 'M. Rossi', flags: 0 },
{ id: 5, name: 'LEAK_INVEST', status: 'active', custodian: 'R. Kim', flags: 8 },
{ id: 6, name: 'FRAUD_CASE', status: 'preserved', custodian: 'D. Brown', flags: 2 },
];
// --- Decoding Text Effect ---
function decodeText(element, text, interval = 50) {
const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+-=[]{}|;:,.<>?';
let iterations = 0;
const final = text.split('');
let display = final.map(() => chars[Math.floor(Math.random() * chars.length)]);
element.textContent = display.join('');
const iter