/* Radio Channel Simulator - CSS */
/* Max width: 800px, Font: Courier New */

.radiochannel-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Courier New', monospace;
    padding: 20px;
    background: #1a1a1a;
    color: #e0e0e0;
}

.radiochannel-header {
    text-align: center;
    margin-bottom: 20px;
}

.radiochannel-header h2 {
    color: #4ECDC4;
    margin: 0 0 10px 0;
    font-size: 18px;
}

.control-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.mode-selector {
    text-align: center;
}

.mode-selector label {
    margin-right: 10px;
    color: #e0e0e0;
    font-size: 14px;
}

.mode-selector select {
    padding: 5px 10px;
    background: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #4ECDC4;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    cursor: pointer;
}

.mode-selector select:focus {
    outline: none;
    border-color: #4ECDC4;
    box-shadow: 0 0 5px rgba(78, 205, 196, 0.5);
}

.snr-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.snr-selector label {
    color: #e0e0e0;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

.snr-selector label span {
    color: #4ECDC4;
    font-weight: bold;
}

.snr-selector input[type="range"] {
    width: 150px;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.snr-selector input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4ECDC4;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.snr-selector input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4ECDC4;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.simulator-panels {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

.panel {
    background: #2a2a2a;
    border: 1px solid #4ECDC4;
    border-radius: 8px;
    padding: 15px;
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
}

.panel-title {
    text-align: center;
    color: #4ECDC4;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 1px solid #4ECDC4;
    padding-bottom: 5px;
}

/* Canvas containers */
.constellation-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.canvas-container {
    position: relative;
    width: 100%;
    background: #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.canvas-label {
    text-align: center;
    color: #4ECDC4;
    font-size: 11px;
    padding: 5px 0;
    font-weight: bold;
    flex-shrink: 0;
}

.canvas-container canvas {
    display: block;
    width: 100%;
    height: auto;
}

/* Channel Matrix Panel */
.channel-matrix {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.knob-grid {
    display: grid;
    gap: 15px;
    justify-content: center;
}

.knob-grid.siso {
    grid-template-columns: 1fr;
}

.knob-grid.mimo {
    grid-template-columns: repeat(2, 1fr);
}

.knob-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.knob-label {
    font-size: 12px;
    color: #e0e0e0;
    text-align: center;
}

.knob-canvas {
    cursor: crosshair;
    border: 1px solid #4ECDC4;
    border-radius: 4px;
    background: #1a1a1a;
    max-width: 100px;
    max-height: 100px;
}

.knob-value {
    font-size: 11px;
    color: #4ECDC4;
    text-align: center;
    min-height: 30px;
}

/* Info panel */
.info-panel {
    margin-top: 20px;
    padding: 15px;
    background: #2a2a2a;
    border: 1px solid #4ECDC4;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.6;
}

.info-panel h3 {
    color: #4ECDC4;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 14px;
}

.info-panel p {
    margin: 5px 0;
    color: #e0e0e0;
}

.info-panel .formula {
    color: #F7DC6F;
    font-style: italic;
    margin: 5px 0;
}

/* Responsive */
@media (max-width: 600px) {
    .simulator-panels {
        flex-direction: column;
    }
    
    .panel {
        width: 100%;
    }
}

