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

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #ffffff;
    min-height: 100vh;
}

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

.header {
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(45deg, #0f3460, #16537e);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #00ff88;
}

.title {
    font-size: 2.5em;
    color: #00ff88;
    text-shadow: 0 0 10px #00ff88;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1em;
    color: #88ffaa;
    margin-bottom: 15px;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.2em;
}

.led {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
    border: 1px solid #666;
    transition: all 0.3s ease;
}

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

.led.synced {
    background: #0088ff;
    box-shadow: 0 0 10px #0088ff;
}

.main-content {
    display: grid;
    grid-template-columns: 300px 1fr 250px;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

.control-panel {
    background: linear-gradient(45deg, #2d2d44, #3d3d5e);
    border: 2px solid #555;
    border-radius: 10px;
    padding: 20px;
}

.control-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #444;
}

.control-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.control-section h3 {
    color: #00ff88;
    margin-bottom: 15px;
    font-size: 1.2em;
    text-transform: uppercase;
}

.control-group {
    margin-bottom: 15px;
}

.control-group label {
    display: block;
    margin-bottom: 5px;
    color: #cccccc;
    font-size: 0.9em;
}

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

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    accent-color: #00ff88;
}

select, input[type="range"] {
    width: 100%;
    padding: 8px;
    background: #1a1a2e;
    border: 1px solid #555;
    border-radius: 5px;
    color: #ffffff;
    font-family: inherit;
}

select {
    cursor: pointer;
}

input[type="range"] {
    height: 6px;
    background: #333;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00ff88;
    cursor: pointer;
    box-shadow: 0 0 5px #00ff88;
}

.transmission-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #ff4444, #ff6666);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.transmission-btn:hover {
    background: linear-gradient(45deg, #ff6666, #ff8888);
    transform: translateY(-2px);
}

.transmission-btn.active {
    background: linear-gradient(45deg, #44ff44, #66ff66);
}

.sync-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.visualization-area {
    background: #000011;
    border: 2px solid #333;
    border-radius: 10px;
    padding: 10px;
    position: relative;
}

#canvas {
    width: 100%;
    height: 600px;
    border: 1px solid #444;
    border-radius: 5px;
    cursor: crosshair;
}

.canvas-controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}

.canvas-controls button {
    padding: 8px 16px;
    background: #333;
    border: 1px solid #555;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.canvas-controls button:hover {
    background: #555;
}

.info-panel {
    background: linear-gradient(45deg, #2d2d44, #3d3d5e);
    border: 2px solid #555;
    border-radius: 10px;
    padding: 20px;
}

.info-panel h3 {
    color: #00ff88;
    margin-bottom: 15px;
    font-size: 1.2em;
    text-transform: uppercase;
}

.readout-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.readout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: #1a1a2e;
    border-radius: 5px;
    border: 1px solid #333;
}

.readout-item label {
    color: #888;
    font-size: 0.9em;
}

.readout-item span {
    color: #00ff88;
    font-weight: bold;
}

.vu-meters {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vu-meter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vu-meter label {
    width: 20px;
    font-weight: bold;
    color: #cccccc;
}

.meter-bar {
    flex: 1;
    height: 20px;
    background: #222;
    border: 1px solid #444;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff00 0%, #ffff00 70%, #ff0000 100%);
    width: 0%;
    transition: width 0.1s ease;
}

.footer {
    text-align: center;
    padding: 20px;
    color: #888;
    border-top: 1px solid #333;
}

.footer a {
    color: #00ff88;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .title {
        font-size: 1.8em;
    }
    
    .radio-group {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    #canvas {
        height: 400px;
    }
}