/* Linear Antenna Array Simulator - CSS */
/* Max width: 800px, Font: Courier New, Background: Black */

.antenna-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Courier New', monospace;
    padding: 20px;
    background: #000;
    color: #fff;
}

.controls-panel {
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

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

.btn {
    padding: 8px 16px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    transition: background 0.2s;
}

.btn:hover {
    background: #1976D2;
}

.btn:active {
    background: #1565C0;
}

.element-controls {
    background: #2a2a2a;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
}

.element-controls h4 {
    color: #4CAF50;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 14px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex: 0 0 auto;
}

.control-group label {
    font-size: 12px;
    color: #fff;
    font-weight: bold;
    min-width: 120px;
}

.slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #333;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #2196F3;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #2196F3;
    cursor: pointer;
    border: none;
}

.form-select {
    padding: 6px 10px;
    border: 1px solid #555;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: #2a2a2a;
    color: #fff;
    cursor: pointer;
    width: 140px;
    flex: 0 0 auto;
}

.form-select:hover {
    border-color: #666;
}

.form-select:focus {
    outline: none;
    border-color: #2196F3;
}

.control-group span {
    color: #4CAF50;
    font-weight: bold;
    font-size: 12px;
    min-width: 60px;
    text-align: right;
}

.canvas-panel {
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.panel-title {
    text-align: center;
    color: #4CAF50;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
    width: 100%;
}

canvas {
    background: #000;
    border: 1px solid #444;
    border-radius: 4px;
    display: block;
}

/* Responsive */
@media (max-width: 800px) {
    .antenna-container {
        padding: 10px;
    }
    
    .control-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
    }
}

