/*
 * Contentosapp Studio Admin — Settings language tab styles.
 * Extracted from costudio-admin.css for tab-specific loading.
 */

/* ── Language tab — 2-column layout ─────────────────────────────────────────── */

.fos-lang-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: end;
}

.fos-lang-preview-col {
    display: flex;
    align-items: flex-end;
}

.fos-lang-preview-col .cts-lang-preview {
    margin-top: 0;
    width: 100%;
}

/* ── Language tab — select & preview pill ────────────────────────────────────── */

#fos-tab-language .cts-lang-select {
    width: 100%;
    padding: 9px 28px 9px 12px;
    border: 1px solid var(--fos-border, #e5e7eb);
    border-radius: 7px;
    background-color: var(--fos-surface-2, #f9fafb);
    font-size: 12px;
    color: var(--fos-text, #1d2327);
    font-family: inherit;
    outline: none;
    transition: border-color 0.12s, box-shadow 0.12s, background-color 0.12s;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a0a0b0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    box-shadow: none;
    height: auto;
    line-height: normal;
    max-width: 100%;
}

#fos-tab-language .cts-lang-select:focus {
    border-color: var(--fos-primary, #6C47FF);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(108, 71, 255, 0.08);
    outline: none;
}

.cts-lang-flag {
    width: 20px;
    height: 14px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.10);
    display: block;
}

.cts-lang-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 7px;
    background: var(--fos-surface-2, #f9fafb);
    border: 1px solid var(--fos-border, #e5e7eb);
}

.cts-lang-preview__name {
    font-size: 12px;
    font-weight: 600;
    color: var(--fos-text, #1d2327);
}

.cts-lang-preview__code {
    font-size: 10px;
    font-weight: 500;
    color: var(--fos-primary, #6C47FF);
    background: #EAE6FF;
    border: 1px solid rgba(108, 71, 255, 0.25);
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 2px;
    font-family: 'SF Mono', 'Fira Code', monospace;
}