Netattack Lab initial commit

This commit is contained in:
k_lar 2026-02-12 00:50:01 +01:00
parent 0ae784f234
commit beed99171a
9 changed files with 2042 additions and 0 deletions

482
ping_of_death/static/app.js Normal file
View file

@ -0,0 +1,482 @@
// NetAttack Lab - Interactive JavaScript
class NetAttackLab {
constructor() {
this.activeAttacks = new Map();
this.sessionUpdateInterval = null;
this.init();
}
init() {
this.initTabs();
this.initEventListeners();
this.updateSystemTime();
this.startSessionMonitoring();
this.setupRangeInputs();
// Add some startup effects
setTimeout(() => {
this.addLog('recon-logs', '🔥 Vsi sistemi pripravljeni', 'success');
}, 1000);
}
// Tab Management
initTabs() {
const tabBtns = document.querySelectorAll('.tab-btn');
const tabContents = document.querySelectorAll('.tab-content');
tabBtns.forEach(btn => {
btn.addEventListener('click', () => {
const targetTab = btn.getAttribute('data-tab');
// Remove active classes
tabBtns.forEach(b => b.classList.remove('active'));
tabContents.forEach(content => content.classList.remove('active'));
// Add active classes
btn.classList.add('active');
document.getElementById(targetTab).classList.add('active');
// Special handling for monitoring tab
if (targetTab === 'monitoring') {
this.updateSessionsTable();
}
});
});
}
// Event Listeners
initEventListeners() {
// Range input updates
const durationRange = document.getElementById('duration');
const intensityRange = document.getElementById('intensity');
if (durationRange) {
durationRange.addEventListener('input', (e) => {
document.getElementById('duration-value').textContent = e.target.value + 's';
});
}
if (intensityRange) {
intensityRange.addEventListener('input', (e) => {
document.getElementById('intensity-value').textContent = e.target.value;
});
}
// Keyboard shortcuts
document.addEventListener('keydown', (e) => {
if (e.ctrlKey) {
switch(e.key) {
case '1':
e.preventDefault();
this.switchTab('reconnaissance');
break;
case '2':
e.preventDefault();
this.switchTab('attacks');
break;
case '3':
e.preventDefault();
this.switchTab('monitoring');
break;
case 'Enter':
e.preventDefault();
if (document.querySelector('.tab-content.active').id === 'attacks') {
this.startAttack();
}
break;
}
}
});
}
switchTab(tabName) {
const btn = document.querySelector(`[data-tab="${tabName}"]`);
if (btn) btn.click();
}
// Range Input Setup
setupRangeInputs() {
const duration = document.getElementById('duration');
const intensity = document.getElementById('intensity');
if (duration) {
document.getElementById('duration-value').textContent = duration.value + 's';
}
if (intensity) {
document.getElementById('intensity-value').textContent = intensity.value;
}
}
// System Time
updateSystemTime() {
const updateTime = () => {
const now = new Date();
const timeStr = now.toISOString().replace('T', ' ').split('.')[0];
const timeElement = document.getElementById('system-time');
if (timeElement) {
timeElement.textContent = timeStr;
}
};
updateTime();
setInterval(updateTime, 1000);
}
// Logging
addLog(containerId, message, type = 'info') {
const container = document.getElementById(containerId);
if (!container) return;
const logLine = document.createElement('div');
logLine.className = `log-line ${type}`;
const timestamp = new Date().toLocaleTimeString();
const icons = {
info: 'ℹ️',
success: '✅',
warning: '⚠️',
error: '❌'
};
logLine.innerHTML = `<span style="color: #666;">[${timestamp}]</span> ${icons[type]} ${message}`;
container.appendChild(logLine);
container.scrollTop = container.scrollHeight;
// Limit log entries
while (container.children.length > 100) {
container.removeChild(container.firstChild);
}
}
clearOutput(containerId) {
const container = document.getElementById(containerId);
if (container) {
container.innerHTML = '';
this.addLog(containerId.replace('-output', '-logs'), '📋 Logs cleared', 'info');
}
}
// API Calls
async makeRequest(endpoint, data) {
try {
const response = await fetch(endpoint, {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},
body: new URLSearchParams(data)
});
return await response.json();
} catch (error) {
console.error('API Error:', error);
return { error: 'Network error occurred' };
}
}
// Reconnaissance Functions
async runPing() {
const target = document.getElementById('recon-target').value;
if (!target.trim()) {
this.addLog('recon-logs', 'Please enter a target IP or hostname', 'warning');
return;
}
this.addLog('recon-logs', `🏓 Starting ping test to ${target}...`, 'info');
const result = await this.makeRequest('/api/ping', { target });
if (result.error) {
this.addLog('recon-logs', `❌ Ping failed: ${result.error}`, 'error');
} else {
this.addLog('recon-logs', `✅ Ping to ${target} completed`, 'success');
// Add output to terminal
const outputLines = result.output.split('\n');
outputLines.forEach(line => {
if (line.trim()) {
this.addLog('recon-logs', line, 'info');
}
});
}
}
async runTraceroute() {
const target = document.getElementById('recon-target').value;
if (!target.trim()) {
this.addLog('recon-logs', 'Please enter a target IP or hostname', 'warning');
return;
}
this.addLog('recon-logs', `🗺️ Starting traceroute to ${target}...`, 'info');
const result = await this.makeRequest('/api/traceroute', { target });
if (result.error) {
this.addLog('recon-logs', `❌ Traceroute failed: ${result.error}`, 'error');
} else {
this.addLog('recon-logs', `✅ Traceroute to ${target} completed`, 'success');
// Add output to terminal
const outputLines = result.output.split('\n');
outputLines.forEach(line => {
if (line.trim()) {
this.addLog('recon-logs', line, 'info');
}
});
}
}
// Attack Functions
async startAttack() {
const target = document.getElementById('attack-target').value;
const type = document.getElementById('attack-type').value;
const duration = document.getElementById('duration').value;
const intensity = document.getElementById('intensity').value;
if (!target.trim()) {
this.addLog('attack-logs', 'Please enter a target IP', 'warning');
return;
}
// Disable attack button
const attackBtn = document.getElementById('attack-btn');
const stopBtn = document.getElementById('stop-btn');
attackBtn.disabled = true;
stopBtn.disabled = false;
// Add attack start log
this.addLog('attack-logs', `🔥 Initiating ${type} attack on ${target}`, 'warning');
this.addLog('attack-logs', `⚙️ Parameters: ${duration}s duration, ${intensity} req/sec`, 'info');
const result = await this.makeRequest('/api/attack', {
target,
type,
duration,
intensity
});
if (result.error) {
this.addLog('attack-logs', `❌ Attack failed to start: ${result.error}`, 'error');
attackBtn.disabled = false;
stopBtn.disabled = true;
} else {
this.addLog('attack-logs', `✅ Attack session ${result.sessionId} started`, 'success');
this.activeAttacks.set(result.sessionId, {
target,
type,
started: Date.now()
});
// Start progress tracking
this.trackAttackProgress(result.sessionId, parseInt(duration));
}
}
trackAttackProgress(sessionId, duration) {
let elapsed = 0;
const progressInterval = setInterval(() => {
elapsed++;
const remaining = duration - elapsed;
if (remaining > 0) {
this.addLog('attack-logs', `📊 Attack progress: ${elapsed}/${duration}s (${remaining}s remaining)`, 'info');
} else {
this.addLog('attack-logs', `🏁 Attack session ${sessionId} completed`, 'success');
clearInterval(progressInterval);
// Re-enable attack button
document.getElementById('attack-btn').disabled = false;
if (this.activeAttacks.size <= 1) {
document.getElementById('stop-btn').disabled = true;
}
this.activeAttacks.delete(sessionId);
}
}, 1000);
}
async stopAllAttacks() {
this.addLog('attack-logs', '🛑 Emergency stop initiated...', 'warning');
for (const sessionId of this.activeAttacks.keys()) {
await this.makeRequest('/api/stop', { sessionId });
this.addLog('attack-logs', `🛑 Session ${sessionId} stopped`, 'info');
}
this.activeAttacks.clear();
document.getElementById('attack-btn').disabled = false;
document.getElementById('stop-btn').disabled = true;
this.addLog('attack-logs', '✅ All attacks stopped', 'success');
}
// Session Monitoring
startSessionMonitoring() {
this.sessionUpdateInterval = setInterval(() => {
this.updateSessionStats();
}, 2000);
}
async updateSessionStats() {
try {
const response = await fetch('/api/status');
const sessions = await response.json();
// Update stats
let totalSessions = sessions.length;
let activeSessions = sessions.filter(s => s.active).length;
let totalSuccess = sessions.reduce((sum, s) => sum + s.success, 0);
let totalFailed = sessions.reduce((sum, s) => sum + s.failed, 0);
let successRate = totalSuccess + totalFailed > 0 ?
Math.round((totalSuccess / (totalSuccess + totalFailed)) * 100) : 0;
document.getElementById('total-sessions').textContent = totalSessions;
document.getElementById('active-attacks').textContent = activeSessions;
document.getElementById('total-packets').textContent = totalSuccess + totalFailed;
document.getElementById('success-rate').textContent = successRate + '%';
} catch (error) {
console.error('Failed to update session stats:', error);
}
}
async updateSessionsTable() {
try {
const response = await fetch('/api/status');
const sessions = await response.json();
const tbody = document.getElementById('sessions-body');
if (sessions.length === 0) {
tbody.innerHTML = '<tr><td colspan="8" class="no-data">No active sessions</td></tr>';
return;
}
tbody.innerHTML = sessions.map(session => {
const elapsed = session.started ?
Math.floor((Date.now() - new Date(session.started).getTime()) / 1000) : 0;
return `
<tr>
<td>${session.id.substring(0, 8)}...</td>
<td>${session.target}</td>
<td>${session.type}</td>
<td><span class="status-${session.status}">${session.status}</span></td>
<td>${elapsed}s</td>
<td>${session.success}</td>
<td>${session.failed}</td>
<td>
${session.active ?
`<button class="btn btn-warning btn-sm" onclick="netLab.stopSession('${session.id}')">Stop</button>` :
'Completed'
}
</td>
</tr>
`;
}).join('');
} catch (error) {
console.error('Failed to update sessions table:', error);
}
}
async stopSession(sessionId) {
await this.makeRequest('/api/stop', { sessionId });
this.addLog('attack-logs', `🛑 Session ${sessionId} stopped manually`, 'warning');
this.updateSessionsTable();
}
}
// Global functions
function runPing() {
netLab.runPing();
}
function runTraceroute() {
netLab.runTraceroute();
}
function startAttack() {
netLab.startAttack();
}
function stopAllAttacks() {
netLab.stopAllAttacks();
}
function clearOutput(containerId) {
netLab.clearOutput(containerId);
}
// Matrix rain effect (optional easter egg)
function createMatrixRain() {
const canvas = document.createElement('canvas');
canvas.className = 'matrix-bg';
document.body.appendChild(canvas);
const ctx = canvas.getContext('2d');
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
const matrix = "ABCDEFGHIJKLMNOPQRSTUVWXYZ123456789@#$%^&*()*&^%+-/~{[|`]}";
const matrixArray = matrix.split("");
const fontSize = 10;
const columns = canvas.width / fontSize;
const drops = [];
for(let x = 0; x < columns; x++) {
drops[x] = 1;
}
function draw() {
ctx.fillStyle = 'rgba(0, 0, 0, 0.04)';
ctx.fillRect(0, 0, canvas.width, canvas.height);
ctx.fillStyle = '#00ff41';
ctx.font = fontSize + 'px monospace';
for(let i = 0; i < drops.length; i++) {
const text = matrixArray[Math.floor(Math.random() * matrixArray.length)];
ctx.fillText(text, i * fontSize, drops[i] * fontSize);
if(drops[i] * fontSize > canvas.height && Math.random() > 0.975) {
drops[i] = 0;
}
drops[i]++;
}
}
const matrixInterval = setInterval(draw, 35);
// Clean up on page unload
window.addEventListener('beforeunload', () => {
clearInterval(matrixInterval);
});
}
// Initialize the application
let netLab;
document.addEventListener('DOMContentLoaded', () => {
netLab = new NetAttackLab();
// Optional: Add matrix effect on specific key combo
let konamiCode = [];
const konamiSequence = ['ArrowUp', 'ArrowUp', 'ArrowDown', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'ArrowLeft', 'ArrowRight', 'KeyB', 'KeyA'];
document.addEventListener('keydown', (e) => {
konamiCode.push(e.code);
if (konamiCode.length > konamiSequence.length) {
konamiCode = konamiCode.slice(-konamiSequence.length);
}
if (JSON.stringify(konamiCode) === JSON.stringify(konamiSequence)) {
createMatrixRain();
netLab.addLog('attack-logs', '🐉 Matrix mode activated!', 'success');
konamiCode = [];
}
});
});

View file

@ -0,0 +1,625 @@
/* NetAttack Lab - Hacker Style CSS */
:root {
--bg-primary: #0a0a0a;
--bg-secondary: #1a1a1a;
--bg-tertiary: #2a2a2a;
--accent-green: #00ff41;
--accent-red: #ff2441;
--accent-orange: #ff8c00;
--accent-blue: #00bfff;
--text-primary: #ffffff;
--text-secondary: #b0b0b0;
--text-muted: #666666;
--border: #333333;
--shadow: rgba(0, 255, 65, 0.2);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'JetBrains Mono', 'Consolas', monospace;
background: var(--bg-primary);
color: var(--text-primary);
line-height: 1.6;
overflow-x: hidden;
}
body::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background:
radial-gradient(circle at 20% 50%, var(--accent-green)0a 0%, transparent 50%),
radial-gradient(circle at 80% 20%, var(--accent-blue)0a 0%, transparent 50%),
radial-gradient(circle at 40% 80%, var(--accent-red)0a 0%, transparent 50%);
z-index: -1;
opacity: 0.03;
}
.container {
max-width: 1400px;
margin: 0 auto;
min-height: 100vh;
background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
border-left: 1px solid var(--border);
border-right: 1px solid var(--border);
box-shadow: 0 0 50px rgba(0, 255, 65, 0.1);
}
/* Header */
.header {
background: linear-gradient(90deg, var(--bg-secondary), var(--bg-tertiary));
border-bottom: 2px solid var(--accent-green);
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
position: sticky;
top: 0;
z-index: 100;
backdrop-filter: blur(10px);
}
.logo {
display: flex;
align-items: center;
gap: 1rem;
}
.skull {
font-size: 2rem;
filter: drop-shadow(0 0 10px var(--accent-red));
animation: pulse 2s infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.7; }
}
.logo h1 {
color: var(--accent-green);
font-size: 1.8rem;
font-weight: 700;
text-shadow: 0 0 20px var(--shadow);
letter-spacing: 2px;
}
.version {
background: var(--accent-red);
color: var(--bg-primary);
padding: 0.2rem 0.5rem;
border-radius: 4px;
font-size: 0.7rem;
font-weight: bold;
}
.status-bar {
display: flex;
gap: 2rem;
align-items: center;
}
.status-item {
background: var(--bg-tertiary);
padding: 0.4rem 0.8rem;
border-radius: 4px;
border: 1px solid var(--border);
font-size: 0.8rem;
font-family: inherit;
}
.status-item.warning {
background: var(--accent-orange);
color: var(--bg-primary);
font-weight: bold;
animation: blink 1s infinite;
}
@keyframes blink {
0%, 50% { opacity: 1; }
51%, 100% { opacity: 0.7; }
}
/* Navigation */
.nav-tabs {
background: var(--bg-secondary);
display: flex;
border-bottom: 1px solid var(--border);
overflow-x: auto;
}
.tab-btn {
background: none;
border: none;
color: var(--text-secondary);
padding: 1rem 1.5rem;
cursor: pointer;
font-family: inherit;
font-size: 0.9rem;
border-bottom: 3px solid transparent;
transition: all 0.3s ease;
white-space: nowrap;
}
.tab-btn:hover {
background: var(--bg-tertiary);
color: var(--text-primary);
}
.tab-btn.active {
color: var(--accent-green);
border-bottom-color: var(--accent-green);
background: var(--bg-primary);
}
/* Main Content */
.main-content {
padding: 2rem;
}
.tab-content {
display: none;
animation: fadeIn 0.3s ease;
}
.tab-content.active {
display: block;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.panel {
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: 8px;
padding: 2rem;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.panel h2 {
color: var(--accent-green);
margin-bottom: 1.5rem;
font-size: 1.5rem;
text-shadow: 0 0 10px var(--shadow);
}
/* Warning Boxes */
.warning-box, .danger-box {
border-radius: 6px;
padding: 1rem;
margin: 1rem 0;
border-left: 4px solid;
}
.warning-box {
background: rgba(255, 140, 0, 0.1);
border-left-color: var(--accent-orange);
color: var(--accent-orange);
}
.danger-box {
background: rgba(255, 36, 65, 0.1);
border-left-color: var(--accent-red);
color: var(--text-primary);
}
.danger-box h3 {
color: var(--accent-red);
margin-bottom: 0.5rem;
}
/* Input Groups */
.input-section {
margin: 2rem 0;
}
.input-group {
margin-bottom: 1rem;
}
.input-group label {
display: block;
margin-bottom: 0.5rem;
color: var(--text-primary);
font-weight: 500;
}
.input-group input, .input-group select {
width: 100%;
padding: 0.8rem;
background: var(--bg-primary);
border: 1px solid var(--border);
border-radius: 4px;
color: var(--text-primary);
font-family: inherit;
font-size: 0.9rem;
}
.input-group input:focus, .input-group select:focus {
outline: none;
border-color: var(--accent-green);
box-shadow: 0 0 0 2px rgba(0, 255, 65, 0.2);
}
/* Config Layout */
.config-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
margin: 1rem 0;
}
/* Range Inputs */
input[type="range"] {
-webkit-appearance: none;
appearance: none;
width: 100%;
height: 6px;
border-radius: 3px;
background: var(--bg-tertiary);
outline: none;
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 20px;
height: 20px;
border-radius: 50%;
background: var(--accent-green);
cursor: pointer;
box-shadow: 0 0 10px var(--shadow);
}
input[type="range"]::-moz-range-thumb {
width: 20px;
height: 20px;
border-radius: 50%;
background: var(--accent-green);
cursor: pointer;
border: none;
box-shadow: 0 0 10px var(--shadow);
}
/* Buttons */
.button-row {
display: flex;
gap: 1rem;
margin: 2rem 0;
}
.btn {
padding: 0.8rem 1.5rem;
border: none;
border-radius: 4px;
font-family: inherit;
font-size: 0.9rem;
font-weight: 600;
cursor: pointer;
text-transform: uppercase;
letter-spacing: 1px;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.btn::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
transition: left 0.5s;
}
.btn:hover::before {
left: 100%;
}
.btn-primary {
background: var(--accent-green);
color: var(--bg-primary);
box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 4px 25px rgba(0, 255, 65, 0.5);
}
.btn-secondary {
background: var(--accent-blue);
color: var(--bg-primary);
box-shadow: 0 0 20px rgba(0, 191, 255, 0.3);
}
.btn-danger {
background: var(--accent-red);
color: var(--text-primary);
box-shadow: 0 0 20px rgba(255, 36, 65, 0.3);
}
.btn-warning {
background: var(--accent-orange);
color: var(--bg-primary);
box-shadow: 0 0 20px rgba(255, 140, 0, 0.3);
}
.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
transform: none !important;
}
/* Terminal */
.terminal {
background: var(--bg-primary);
border: 1px solid var(--border);
border-radius: 6px;
margin: 1.5rem 0;
overflow: hidden;
box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}
.terminal-header {
background: var(--bg-tertiary);
padding: 0.8rem 1rem;
border-bottom: 1px solid var(--border);
display: flex;
justify-content: space-between;
align-items: center;
color: var(--text-secondary);
font-size: 0.8rem;
}
.btn-clear {
background: var(--accent-red);
color: var(--text-primary);
border: none;
padding: 0.3rem 0.6rem;
border-radius: 3px;
font-size: 0.7rem;
cursor: pointer;
}
.terminal-body {
padding: 1rem;
max-height: 400px;
overflow-y: auto;
font-size: 0.85rem;
line-height: 1.4;
}
.terminal-body::-webkit-scrollbar {
width: 8px;
}
.terminal-body::-webkit-scrollbar-track {
background: var(--bg-primary);
}
.terminal-body::-webkit-scrollbar-thumb {
background: var(--border);
border-radius: 4px;
}
.log-line {
margin-bottom: 0.3rem;
word-wrap: break-word;
}
.log-line.warning {
color: var(--accent-orange);
}
.log-line.error {
color: var(--accent-red);
}
.log-line.success {
color: var(--accent-green);
}
.log-line.info {
color: var(--accent-blue);
}
/* Stats Grid */
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1rem;
margin: 2rem 0;
}
.stat-card {
background: var(--bg-primary);
border: 1px solid var(--border);
border-radius: 6px;
padding: 1.5rem;
text-align: center;
transition: transform 0.3s ease;
}
.stat-card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 25px rgba(0, 255, 65, 0.2);
}
.stat-value {
font-size: 2.5rem;
font-weight: 700;
color: var(--accent-green);
text-shadow: 0 0 10px var(--shadow);
}
.stat-label {
color: var(--text-secondary);
text-transform: uppercase;
font-size: 0.8rem;
margin-top: 0.5rem;
letter-spacing: 1px;
}
/* Table */
.sessions-table {
margin: 2rem 0;
}
.sessions-table h3 {
color: var(--text-primary);
margin-bottom: 1rem;
}
table {
width: 100%;
border-collapse: collapse;
background: var(--bg-primary);
border: 1px solid var(--border);
border-radius: 6px;
overflow: hidden;
}
th, td {
padding: 0.8rem;
text-align: left;
border-bottom: 1px solid var(--border);
}
th {
background: var(--bg-tertiary);
color: var(--accent-green);
font-weight: 600;
text-transform: uppercase;
font-size: 0.8rem;
letter-spacing: 1px;
}
td {
color: var(--text-secondary);
font-size: 0.85rem;
}
.no-data {
text-align: center !important;
color: var(--text-muted);
font-style: italic;
}
/* Info Sections */
.info-section {
margin: 2rem 0;
padding: 1.5rem;
background: var(--bg-primary);
border: 1px solid var(--border);
border-radius: 6px;
}
.info-section h3 {
color: var(--accent-blue);
margin-bottom: 1rem;
}
.attack-explanation h4 {
color: var(--accent-orange);
margin: 1rem 0 0.5rem 0;
}
.guidelines {
margin: 1rem 0;
}
.guideline-item {
display: flex;
align-items: center;
gap: 0.8rem;
margin: 0.8rem 0;
padding: 0.5rem;
}
.check {
color: var(--accent-green);
}
.cross {
color: var(--accent-red);
}
/* Responsive Design */
@media (max-width: 768px) {
.header {
flex-direction: column;
gap: 1rem;
padding: 1rem;
}
.status-bar {
flex-wrap: wrap;
gap: 0.5rem;
justify-content: center;
}
.main-content {
padding: 1rem;
}
.config-row {
grid-template-columns: 1fr;
gap: 1rem;
}
.button-row {
flex-direction: column;
}
.stats-grid {
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.nav-tabs {
justify-content: center;
}
}
/* Animations */
@keyframes scan {
0% { transform: translateX(-100%); }
100% { transform: translateX(100%); }
}
.scanning::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 2px;
background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
animation: scan 2s infinite;
}
/* Matrix Effect */
.matrix-bg {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: -1;
opacity: 0.05;
}