/* ===== FGEN MODULE (FUNCTION GENERATOR) - INDEPENDENT CSS ===== */

/* Component container */
.fgen-component-container {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.fgen-component {
    margin-bottom: 15px;
}

.fgen-component label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 12px;
}

/* Control Labels */
.fgen-control-label {
    display: block;
    color: #999;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 8px;
}

/* Space Divider */
.fgen-space {
    height: 10px; /* Adjust gap size */
    width: 100%;
}



/* Dropdown Styling */
.fgen-dropdown {
    width: 100%;
    padding: 8px;
    border: 1px solid #333;
    border-radius: 4px;
    background-color: #111;
    font-size: 12px;
    font-weight: bold;
    color: #ccc;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.fgen-dropdown:focus {
    border-color: #00E897;
}

.fgen-dropdown option {
    background-color: #111;
    color: #ccc;
}

/* CV Input Field */
.fgen-cv-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 5px;
    height: 25px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #111;
    font-size: 11px;
    color: #999;
    margin-top: 8px;
    width: 100%;
    
}

.fgen-cv-field input.fgen-cv-id {
    background: transparent;
    border: none;
    outline: none;
    font-size: 12px;
    color: #ccc;
    width: 100%;
    font-weight: bold;
}

.fgen-cv-field input.fgen-cv-id::placeholder {
    color: #666;
    font-weight: normal;
}

/* CV Connection Indicator */
.fgen-cv-connection-indicator {
    width: 8px;
    height: 8px;
    background: gray;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 6px;
    transition: background 0.3s, box-shadow 0.3s;
}

.fgen-cv-connection-indicator.connected {
    background: #ff8800;
    box-shadow: 0 0 4px rgba(255, 136, 0, 0.6);
}

.fgen-cv-connection-indicator.invalid {
    background: red;
    box-shadow: 0 0 4px rgba(255, 0, 0, 0.6);
}

/* Output LED */
.fgen-output-led {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #333;
    border: 1px solid #555;
    margin-left: 10px;
    transition: background-color 0.2s;
}

.fgen-output-led.active {
    background-color: #0f0;
    border-color: #0f0;
    box-shadow: 0 0 4px #0f0;
}

/* Slider Pot Container */
.fgen-slider-pot {
    display: flex;
    flex-direction: column;
}

/* Header row: title left, value right */
.fgen-slider-pot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.fgen-slider-pot-header label {
    font-size: 12px;
    font-weight: bold;
    color: #999;
    margin: 0;
}

.fgen-slider-pot-header .fgen-value-display {
    font-size: 12px;
    color: #00E897; 
    font-family: monospace;
}

/* Slider track and thumb styling */
.fgen-slider-pot input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #ccc;
    border-radius: 3px;
    outline: none;
    margin: 0;
}

/* Webkit browsers track */
.fgen-slider-pot input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: #111;
    border-radius: 3px;
}

/* Webkit browsers thumb */
.fgen-slider-pot input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #00E897;
    border: 2px solid #00E897;
    cursor: pointer;
    margin-top: -4px;
    transition: background 0.2s;
}

.fgen-slider-pot input[type="range"]::-webkit-slider-thumb:hover {
    background: #555;
}

/* Firefox track */
.fgen-slider-pot input[type="range"]::-moz-range-track {
    height: 6px;
    background: #ccc;
    border-radius: 3px;
}

/* Firefox fill before thumb */
.fgen-slider-pot input[type="range"]::-moz-range-progress {
    background: #007bff;
    height: 6px;
    border-radius: 3px;
}

/* Firefox thumb */
.fgen-slider-pot input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #333;
    border: 2px solid #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.fgen-slider-pot input[type="range"]::-moz-range-thumb:hover {
    background: #555;
}

/* Dropdown container */
.fgen-dropdown {
    display: flex;
    flex-direction: column;
}

/* Dropdown label (title) */
.fgen-dropdown label {
    color: #999;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Dropdown select styling */
.fgen-dropdown select {
    width: 100%;
    padding: 5px;
    border: 1px solid #222;
    border-radius: 4px;
    background-color: #111;
    font-size: 12px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Buttons Start/Stop */
.fgen-btn.fgen-start-stop-btn {
    width: 100%;
    padding: 5px 0;
    border: 1px solid #555;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    background: #444;
    color: white;
}

.fgen-btn.fgen-start-stop-btn:hover {
    background: #555;
}

.fgen-btn.fgen-start-stop-btn.active {
    background: #04BACC;
    border: 1px solid #111;
}

/* Buttons ON/OFF */
.fgen-btn.fgen-on-off {
    width: 100%;
    padding: 5px 0;
    border: 1px solid #555;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    background: #444;
    color: white;
}

.fgen-btn.fgen-on-off:hover {
    background: #555;
}

.fgen-btn.fgen-on-off.active {
    background: #E87000;
    border: 1px solid #111;
}