/* ── Azure Multilingual Post Translator – public styles ── */

.ampt-translator-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 14px;
    margin: 14px 0;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.ampt-label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.ampt-lang-select {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
    max-width: 220px;
}

.ampt-lang-select:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* ── Status indicator ──────────────────────────────────── */
.ampt-status {
    font-size: 13px;
    color: #555;
    min-height: 1.2em;
}

.ampt-loading {
    color: #0073aa;
}

.ampt-loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 6px;
    border: 2px solid #0073aa;
    border-top-color: transparent;
    border-radius: 50%;
    animation: ampt-spin 0.7s linear infinite;
    vertical-align: middle;
}

@keyframes ampt-spin {
    to { transform: rotate(360deg); }
}

.ampt-error {
    color: #d63638;
}

/* ── Content wrapper ───────────────────────────────────── */
.ampt-content-wrap {
    transition: opacity 0.2s ease;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 480px) {
    .ampt-translator-bar {
        padding: 8px 10px;
    }
    .ampt-lang-select {
        max-width: 160px;
        font-size: 12px;
    }
}
