/* BaleniQ InspectPro — Sprint 2 CSS */

/* ── Input wrap for mic button ── */
.biq-input-wrap {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 4px;
}
.biq-input-wrap input,
.biq-input-wrap textarea {
    flex: 1;
}

/* ── Mic button ── */
.biq-mic-btn {
    width: 30px;
    height: 30px;
    border-radius: var(--r);
    border: 1.5px solid var(--border);
    background: var(--white);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .13s;
    padding: 0;
    margin-top: 1px;
}
.biq-mic-btn:hover { border-color: var(--accent); }
.biq-mic-btn.biq-mic-active {
    background: var(--danger);
    border-color: var(--danger);
    animation: biq-pulse 1s ease-in-out infinite;
}
@keyframes biq-pulse {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* ── Speech status banner ── */
.biq-speech-status {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9990;
    background: var(--ink);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 8px;
    box-shadow: var(--sh2);
}
.biq-speech-status[data-type="error"] {
    background: var(--danger);
}

/* ── Audio player ── */
.biq-audio-btn {
    padding: 4px 8px;
    border-radius: var(--r);
    border: 1.5px solid var(--border);
    background: var(--white);
    font-size: 14px;
    cursor: pointer;
    transition: all .13s;
    flex-shrink: 0;
}
.biq-audio-btn:hover { border-color: var(--accent); }
.biq-audio-btn.biq-audio-active {
    background: var(--danger-bg);
    border-color: var(--danger);
    color: var(--danger);
}
.biq-audio-player {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: var(--ok-bg);
    border: 1px solid var(--ok);
    border-radius: var(--r);
    margin-top: 4px;
    width: 100%;
}
.biq-audio-duration {
    font-size: 11px;
    color: var(--ok);
    font-family: 'DM Mono', monospace;
    white-space: nowrap;
}
.biq-audio-del {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--danger);
    font-size: 13px;
    padding: 0;
}

/* ── QR Modal ── */
.biq-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26,35,50,.6);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.biq-modal {
    background: var(--white);
    border-radius: var(--r2);
    padding: 20px;
    max-width: 360px;
    width: 100%;
    box-shadow: var(--sh2);
}
.biq-modal-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 600;
}
.biq-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--ink-3);
    padding: 0;
}

/* ── Loading overlay ── */
.biq-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26,35,50,.5);
    z-index: 9500;
    display: none;
    align-items: center;
    justify-content: center;
}
.biq-loading-box {
    background: var(--white);
    border-radius: var(--r2);
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--ink);
    box-shadow: var(--sh2);
}
.biq-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: biq-spin .7s linear infinite;
}
@keyframes biq-spin { to { transform: rotate(360deg); } }

/* ── QR button in bottom bar ── */
.biq-qr-btn {
    font-size: 12px;
    padding: 6px 10px !important;
}
