body {
    margin: 0;
    padding: 0;
    background-color: #010101;
    overflow: hidden;
    color: #0f0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    text-shadow: 0 0 5px #0f0, 0 0 10px #0c0;
    user-select: none;
}

#matrixCanvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#circuit-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 30, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 30, 0, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 10% 10%, rgba(0, 60, 0, 0.05) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px, 10px 10px;
    opacity: 0.3;
    z-index: 0;
}

.hud-block {
    position: absolute;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 2px;
    pointer-events: auto;
}

#hudLeft {
    bottom: 20px;
    left: 20px;
    width: 320px;
}

#hudRight {
    bottom: 20px;
    right: 20px;
    width: 380px;
}

.data-trace-block {
    margin-top: 15px;
    border-top: 1px solid rgba(0, 255, 0, 0.3);
    padding-top: 10px;
}

.line {
    height: 1px;
    background-color: rgba(0, 255, 0, 0.4);
    margin: 5px 0;
    position: relative;
}

.scan-line {
    background-color: #0f0;
    height: 2px;
    box-shadow: 0 0 10px #0f0;
    animation: scan 3s infinite linear;
}

.pulse-line {
    animation: pulse-border 1.5s infinite alternate;
}

.label {
    opacity: 0.7;
}

.value {
    font-weight: bold;
}

.status-active {
    color: #0f0;
    font-weight: bold;
    animation: pulse-status 1s infinite alternate;
}

@keyframes scan {
    0% { transform: translateY(-10px); opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { transform: translateY(110px); opacity: 0; }
}

@keyframes pulse-status {
    from { opacity: 0.6; text-shadow: 0 0 5px #0f0; }
    to { opacity: 1; text-shadow: 0 0 15px #0f0; }
}

@keyframes pulse-border {
    from { border-color: rgba(0, 255, 0, 0.3); }
    to { border-color: rgba(0, 255, 0, 0.6); }
}

.form-instruction {
    font-size: 11px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.form-controls {
    display: flex;
    gap: 10px;
}

.terminal-input {
    background: rgba(0, 30, 0, 0.3);
    border: 1px solid #0f0;
    color: #0f0;
    font-family: inherit;
    font-size: 12px;
    padding: 5px;
    width: 100%;
    outline: none;
    box-shadow: inset 0 0 5px rgba(0, 255, 0, 0.2);
}

.terminal-input::placeholder {
    color: rgba(0, 255, 0, 0.5);
}

.terminal-button {
    background: #0f0;
    border: 1px solid #0f0;
    color: #010101;
    font-family: inherit;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-shadow: none;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.terminal-button:hover {
    background: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}