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

body {
    background-color: #000000;
    color: #0f0;
    font-family: 'Courier New', Courier, monospace;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    width: 100vw;
}

.network-container {
    position: relative;
    width: 100vw;
    min-height: 100vh;
}

.connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.connection-line {
    stroke: #222;
    stroke-width: 3;
    transition: stroke 0.3s ease, stroke-width 0.3s ease, filter 0.3s ease;
}

.connection-line.flash-blue {
    stroke: #00ffff;
    stroke-width: 5;
    filter: drop-shadow(0 0 8px #00ffff);
}

.connection-line.flash-green {
    stroke: #00ff00;
    stroke-width: 5;
    filter: drop-shadow(0 0 8px #00ff00);
}

.terminal-node {
    position: absolute;
    width: 340px;
    height: 240px;
    background-color: rgba(10, 10, 10, 0.9);
    border: 1px solid #333;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.8);
    /* Centers the origin point for easier placement */
    transform: translate(-50%, -50%);
}

.terminal-header {
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: bold;
    color: #aaa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.temp-indicator {
    color: #ff3333;
    font-weight: bold;
    margin-left: auto;
    margin-right: 15px;
}

.terminal-status-indicator {
    width: 8px;
    height: 8px;
    background-color: #0f0;
    border-radius: 50%;
    box-shadow: 0 0 5px #0f0;
}

.terminal-content {
    flex-grow: 1;
    padding: 8px;
    font-size: 11px;
    line-height: 1.3;
    overflow: hidden; /* We handle scrolling via JS or just let it push old logs out */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.log-line {
    word-break: break-all;
}

.log-info { color: #888; }
.log-hash { color: #00ffff; }
.log-success { color: #0f0; }

.stats-panel {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 40px;
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid #333;
    padding: 15px 30px;
    border-radius: 8px;
    z-index: 10;
    box-shadow: 0 0 20px rgba(0,255,0,0.1);
}

.stat-box {
    text-align: center;
}

.stat-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #0f0;
    text-shadow: 0 0 5px rgba(0,255,0,0.5);
}
