/* ═══════════════════════════════════════════════
   SiteScan Pro v2 — 升級樣式
   ═══════════════════════════════════════════════ */

/* Undo Button & Thumb-Zone Floating Island */
.undo-btn {
    position: static;
}

.undo-btn svg {
    width: 22px;
    height: 22px;
}

.undo-btn.disabled,
.action-icon.disabled {
    opacity: 0.3;
    /* Don't hide completely, just dim */
    pointer-events: none;
}

.shutter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 8px 16px;
    margin: 0 auto 10px auto;
    width: auto;
    max-width: fit-content;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.action-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.action-icon:active {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(0.92);
}

.shutter-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 8px;
    border: 3px solid rgba(255, 255, 255, 0.9);
    padding: 3px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shutter-btn {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 50%;
    transition: 0.15s;
}

.shutter-btn:active {
    transform: scale(0.85);
}

/* ─── Acoustic Toolbar ─── */
.acoustic-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    align-items: center;
}

.speaker-select {
    flex: 1;
    background: #222;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    font-family: var(--font-ui);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23aaa' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 18px;
}

.speaker-select:focus {
    outline: none;
    border-color: var(--accent-green);
}

.btn-acoustic-action {
    background: rgba(39, 174, 96, 0.15);
    border: 1px solid rgba(39, 174, 96, 0.4);
    color: #2ecc71;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-ui);
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s;
}

.btn-acoustic-action:active {
    background: rgba(39, 174, 96, 0.4);
    transform: scale(0.96);
}

.btn-acoustic-action.auto {
    background: rgba(86, 204, 242, 0.15);
    border-color: rgba(86, 204, 242, 0.4);
    color: #56ccf2;
}

.btn-acoustic-action.auto:active {
    background: rgba(86, 204, 242, 0.4);
}

/* ─── Coverage Stats Bar ─── */
.coverage-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 6px 0;
}

.stat-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, #eb5757, #f2c94c, #27ae60);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.stat-text {
    font-size: 12px;
    color: #aaa;
    font-weight: 600;
    white-space: nowrap;
    font-family: var(--font-mono);
}

/* ─── Acoustic Legend ─── */
.acoustic-legend {
    margin-top: 10px;
    display: flex;
    justify-content: space-around;
    font-size: 0.8rem;
    color: #aaa;
    padding: 6px 0;
}