/* ===== AOSC MODULE (AUTOMATED OSCILLATOR) ===== */

/* Make components more compact */
.aosc-component-container {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.aosc-component {
    margin-bottom: 6px;
}

/* Frequency Knob Container (Automated) */
.aosc-knob-container {
    width: 140px;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-size: contain;
    position: relative;
}

.aosc-knob-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
}

.aosc-knob {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #111;
    position: relative;
    margin: 12px 0 8px 0;
    transform: rotate(-130deg);
    transition: transform 0.1s ease-out;
    pointer-events: none; /* Disable manual interaction for automated knob */
    border: 2px solid #FF6600; /* Orange border to indicate automation */
}

.aosc-knob .aosc-knob-dot {
    width: 8px;
    height: 8px;
    background: #FF6600; /* Orange dot for automation */
    border-radius: 50%;
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
}

/* Value display in knob center */
.aosc-knob-value-display {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
    color: #FF6600; /* Orange for automation */
    pointer-events: none;
    user-select: none;
}

/* Labels row under knob */
.aosc-labels-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-family: Arial, sans-serif;
    font-weight: bold;
}

.aosc-label-title {
    font-size: 14px;
    color: #FF6600; /* Orange to indicate automation */
    padding: 0 10px;
    margin-bottom: -20px;
    text-align: center;
    flex: 1;
}

.aosc-label-min,
.aosc-label-max {
    width: 40px;
    font-size: 10px;
    text-align: center;
    color: #999;
}

/* AOSC CV Field - styled like VCA */
.aosc-cv-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px;
    height: 25px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #111;
    font-size: 12px;
    color: #999;
}

/* Label inside AOSC CV field */
.aosc-cv-field label {
    font-size: 12px;
    font-weight: bold;
    color: #999;
    margin: 0;
}

/* Input styling same as VCA */
.aosc-cv-input-field {
    background: transparent;
    border: none;
    outline: none;
    font-size: 12px;
    color: #ccc;
    width: 100%;
    font-weight: bold;
}

.aosc-cv-input-field::placeholder {
    color: #666;
}

/* Patch connection indicators for AOSC */
.cv-connection-indicator {
    width: 8px;
    height: 8px;
    background: gray;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
}

.cv-connection-indicator.connected {
    background: #06F838; /* green like VCA */
}

.cv-connection-indicator.invalid {
    background: red;
}

/* Waveform Dropdown */
.aosc-shape-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;
    margin-top: 10px;
}

.aosc-shape-dropdown select:focus {
    border-color: #FF6600;
    box-shadow: 0 0 4px rgba(255, 102, 0, 0.3);
}

/* Amplitude Pot */
.aosc-amp-slider-pot {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
}

.aosc-amp-slider-pot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.aosc-amp-slider-pot-header label {
    font-size: 11px;
    font-weight: bold;
    color: #999;
}

.aosc-amp-slider-pot-header .aosc-value-display {
    font-size: 11px;
    color: #FF6600;
    font-family: monospace;
}

.aosc-amp-slider-pot input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #030303;
    border-radius: 3px;
    margin: 0;
}

.aosc-amp-slider-pot input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #FF6600;
    border: 2px solid #FF6600;
    cursor: pointer;
    margin-top: -4px;
}

/* AOSC Button (Start/Stop) */
.aosc-button .aosc-btn {
    width: 100%;
    padding: 6px 0;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: #333;
    color: #fff;
    transition: background 0.2s, border 0.2s;
}

.aosc-button .aosc-btn:hover {
    background: #555;
}

.aosc-button .aosc-btn.active {
    background: #FF6600;
    border: 1px solid #111;
    color: #fff;
}

/* Output Indicator */
.aosc-output-indicator-field {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 5px;
    height: 25px;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

.aosc-output-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aosc-output-right .aosc-output-led {
    width: 10px;
    height: 10px;
    background: #444;
    border-radius: 50%;
    box-shadow: 0 0 3px rgba(0,0,0,0.5);
}

.aosc-output-right .aosc-output-led.active {
    background: #06F838;
    box-shadow: 0 0 5px #06F838;
}

/* SPACERS */
.aosc-space10 {
    height: 10px;
    width: 100%;
}

.aosc-space20 {
    height: 20px;
    width: 100%;
}

.aosc-space30 {
    height: 30px;
    width: 100%;
}

.aosc-space40 {
    height: 40px;
    width: 100%;
}