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

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: #00ff00;
    min-height: 100vh;
    overflow-x: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 10px #00ff00;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #00ffff;
}

header p {
    font-size: 1.1rem;
    opacity: 0.8;
}

.equipment-panel {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    background: #333;
    border: 3px solid #555;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.monitor-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.crt-frame {
    position: relative;
    background: #222;
    border: 15px solid #444;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 
        inset 0 0 20px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 255, 255, 0.2);
}

.power-led {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff0000;
    box-shadow: 0 0 5px #ff0000;
    transition: all 0.3s ease;
}

.power-led.on {
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
}

#canvas {
    border: 2px solid #666;
    border-radius: 5px;
    background: #000;
    position: relative;
    z-index: 1;
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        transparent,
        transparent 2px,
        rgba(0, 255, 0, 0.03) 2px,
        rgba(0, 255, 0, 0.03) 4px
    );
    animation: scanline-move 2s linear infinite;
}

@keyframes scanline-move {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

.signal-meter {
    text-align: center;
}

.meter-face {
    position: relative;
    width: 100px;
    height: 50px;
    background: #222;
    border: 2px solid #555;
    border-radius: 50px 50px 0 0;
    margin: 0 auto 10px;
    overflow: hidden;
}

.meter-needle {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 2px;
    height: 40px;
    background: #ff0000;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(-90deg);
    transition: transform 0.3s ease;
}

.meter-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    font-size: 0.7rem;
    color: #888;
}

.controls-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.control-group label {
    font-size: 0.9rem;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
}

.control-group select,
.control-group input[type="range"] {
    background: #222;
    border: 2px solid #555;
    color: #00ff00;
    padding: 8px;
    border-radius: 5px;
    font-family: inherit;
}

.control-group select:focus,
.control-group input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.control-group input[type="range"] {
    -webkit-appearance: none;
    height: 6px;
    background: #444;
    border-radius: 3px;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00ff00;
    border: 2px solid #333;
    box-shadow: 0 0 10px #00ff00;
    cursor: pointer;
}

.checkbox-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #00ff00;
}

.frequency-display {
    text-align: center;
    margin: 20px 0;
}

.digital-display {
    background: #000;
    border: 2px solid #333;
    border-radius: 5px;
    padding: 10px;
    font-size: 1.5rem;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
    margin-bottom: 5px;
}

.bnc-connectors {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.connector {
    width: 50px;
    height: 30px;
    background: #555;
    border: 2px solid #777;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #ccc;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

.connector.in {
    background: #006600;
    color: #00ff00;
}

.connector.out {
    background: #660000;
    color: #ff0000;
}

.connector.term {
    background: #444;
    color: #ffff00;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid #555;
    color: #888;
}

footer a {
    color: #00ffff;
    text-decoration: none;
    text-shadow: 0 0 5px #00ffff;
}

footer a:hover {
    color: #fff;
    text-shadow: 0 0 10px #00ffff;
}

footer em {
    display: block;
    margin-top: 10px;
    font-style: italic;
    opacity: 0.7;
}

/* Responsive design */
@media (max-width: 768px) {
    .equipment-panel {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    #canvas {
        max-width: 100%;
        height: auto;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 10px;
    }
}

/* CRT flicker effect */
@keyframes crt-flicker {
    0%, 98% { opacity: 1; }
    99% { opacity: 0.98; }
    100% { opacity: 1; }
}

.crt-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 255, 0, 0.05) 100%);
    pointer-events: none;
    animation: crt-flicker 4s infinite;
}

/* Retro glow effect */
.equipment-panel::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(0, 255, 255, 0.1), 
        rgba(0, 255, 0, 0.1), 
        rgba(255, 255, 0, 0.1)
    );
    border-radius: 12px;
    z-index: -1;
    animation: glow-pulse 3s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}