:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-tertiary: #1a2035;
    --accent-green: #00ff41;
    --accent-cyan: #00d4ff;
    --accent-gold: #ffd700;
    --accent-orange: #ff6b35;
    --accent-red: #ff3366;
    --text-primary: #e0e6ed;
    --text-muted: #6b7894;
    --border-color: #2a3550;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a4a6a;
}

@keyframes pulse-border {
    0%, 100% { border-color: var(--accent-green); opacity: 0.5; }
    50% { border-color: var(--accent-cyan); opacity: 1; }
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 10px var(--accent-green), 0 0 20px var(--accent-green); }
    50% { text-shadow: 0 0 20px var(--accent-green), 0 0 40px var(--accent-green), 0 0 60px var(--accent-green); }
}

@keyframes binaryFall {
    0% { transform: translateY(-100%); opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.glow-text {
    animation: glow 2s ease-in-out infinite;
}

.pulse-border {
    animation: pulse-border 2s ease-in-out infinite;
}

.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

.hex-row:nth-child(even) {
    background: rgba(26, 32, 53, 0.5);
}

.hex-row:nth-child(odd) {
    background: rgba(17, 24, 39, 0.5);
}

.byte-null { color: #3a4a6a; }
.byte-printable { color: var(--accent-cyan); }
.byte-magic { color: var(--accent-gold); background: rgba(255, 215, 0, 0.1); border-radius: 2px; }
.byte-highentropy { color: var(--accent-orange); }
.byte-selected { background: rgba(0, 255, 65, 0.2); outline: 1px solid var(--accent-green); }

.drop-zone-active {
    border-color: var(--accent-green) !important;
    background: rgba(0, 255, 65, 0.05) !important;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.2) inset;
}

.sparkline-bar {
    transition: height 0.2s ease;
}

.sidebar-section {
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.string-item:hover {
    background: rgba(0, 212, 255, 0.1);
    cursor: pointer;
}

canvas {
    max-width: 100%;
}