/* IBM 3270 Green-screen terminal emulator */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    font-family: monospace;
    color: #33ff33;
}

#toolbar {
    width: 100%;
    background: #111;
    border-bottom: 1px solid #1a551a;
    padding: 4px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #888;
    user-select: none;
}
#toolbar .logo { color: #33ff33; font-weight: bold; letter-spacing: 2px; }
#status-dot { width: 8px; height: 8px; border-radius: 50%; background: #555; }
#status-dot.connected { background: #33ff33; }
#status-dot.error     { background: #ff4444; }
#toolbar-right { margin-left: auto; display: flex; gap: 12px; }
.pf-hint { color: #555; font-size: 11px; cursor: default; }
.pf-hint kbd {
    background: #222;
    border: 1px solid #444;
    border-radius: 2px;
    padding: 0 3px;
    color: #aaa;
}

#screen-wrap {
    margin-top: 8px;
    border: 1px solid #1a551a;
    box-shadow: 0 0 24px #00440044, inset 0 0 8px #00220022;
    padding: 4px 6px;
    background: #000;
    position: relative;
}

canvas#screen {
    display: block;
    image-rendering: pixelated;
}

/* Scanline overlay for authenticity */
#screen-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.08) 2px,
        rgba(0,0,0,0.08) 4px
    );
    pointer-events: none;
}

#osc-indicator {
    position: absolute;
    top: 2px;
    right: 6px;
    font-size: 10px;
    color: #1a551a;
    pointer-events: none;
}

#keyboard-help {
    margin: 6px 0 12px;
    font-size: 11px;
    color: #444;
    text-align: center;
}
#keyboard-help span { color: #1a661a; }
