/* V2 input tabs: input content, status, toggle, uniform info, code example, webcam/mic. */

/* INPUT CONTENT */

.v2-input-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    user-select: none;
}

.v2-input-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-secondary, #161b22);
    border-bottom: 1px solid var(--border, rgba(255,255,255,0.1));
}

.v2-input-icon {
    font-size: 24px;
}

.v2-input-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary, #c9d1d9);
}

.v2-input-channel {
    font-size: 11px;
    color: var(--text-muted, #6e7681);
    font-family: var(--font-code, 'JetBrains Mono', monospace);
    background: var(--bg-tertiary, #21262d);
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: auto;
}

.v2-input-body {
    flex: 1;
    padding: 16px;
    overflow: auto;
}

.v2-input-placeholder {
    text-align: center;
    padding: 40px;
    color: var(--text-muted, #6e7681);
    font-size: 12px;
}

/* INPUT STATUS */

.v2-input-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-secondary, #161b22);
    border-radius: 6px;
    border: 1px solid var(--border, rgba(255,255,255,0.1));
    margin-bottom: 16px;
}

.v2-status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted, #6e7681);
}

.v2-input-status.active .v2-status-indicator {
    background: var(--console-success, #3fb950);
    box-shadow: 0 0 8px var(--console-success, #3fb950);
}

.v2-status-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary, #c9d1d9);
}

/* INPUT TOGGLE */

.v2-input-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-secondary, #161b22);
    border-radius: 6px;
    border: 1px solid var(--border, rgba(255,255,255,0.1));
    margin-bottom: 16px;
}

.v2-input-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent, #58a6ff);
}

.v2-input-toggle label {
    font-size: 13px;
    color: var(--text-primary, #c9d1d9);
    cursor: pointer;
}

/* UNIFORM INFO */

.v2-uniform-info {
    padding: 12px 16px;
    background: var(--bg-secondary, #161b22);
    border-radius: 6px;
    border: 1px solid var(--border, rgba(255,255,255,0.1));
    margin-bottom: 16px;
}

.v2-uniform-title {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted, #6e7681);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.v2-uniform-row {
    display: flex;
    gap: 8px;
    margin: 6px 0;
    font-size: 12px;
}

.v2-uniform-row code {
    color: var(--console-info, #58a6ff);
    font-family: var(--font-code, 'JetBrains Mono', monospace);
    user-select: text;
}

/* CODE EXAMPLE */

.v2-code-example {
    padding: 12px 16px;
    background: var(--bg-tertiary, #21262d);
    border-radius: 6px;
    font-family: var(--font-code, 'JetBrains Mono', monospace);
    font-size: 11px;
    color: var(--text-secondary, #8b949e);
    white-space: pre;
    overflow-x: auto;
    margin: 0;
    user-select: text;
}

/* WEBCAM & MIC SPECIFIC */

.v2-webcam-preview {
    aspect-ratio: 16/9;
    background: var(--bg-tertiary, #21262d);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #6e7681);
    font-size: 12px;
    margin-bottom: 16px;
}

.v2-audio-meter {
    height: 24px;
    background: var(--bg-tertiary, #21262d);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin-bottom: 16px;
}

.v2-meter-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, 
        var(--console-success, #3fb950), 
        #f0883e, 
        var(--console-error, #f85149)
    );
    transition: width 0.1s;
}
