/* ===== image-firmware-panel.css ===== */
/* 抓图 & 固件升级面板样式 — 复用全局 card/btn 体系 */

/* ── 通用 ── */
.img-fw-status {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-top: 8px;
    background: #f9fafb;
    color: #6b7280;
    font-style: italic;
}
.img-fw-status.ok { background: #ecfdf5; color: #059669; font-style: normal; }
.img-fw-status.err { background: #fef2f2; color: #dc2626; font-style: normal; }
.img-fw-status.busy { background: #fffbeb; color: #d97706; font-style: normal; }

/* ── 图片预览区 ── */
.img-preview-wrap {
    margin-top: 12px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 20px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    position: relative;
}
.img-preview-wrap.has-image {
    border-style: solid;
    border-color: #10b981;
}
.img-preview-wrap img {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ── 空状态提示 ── */
.img-preview-hint {
    color: #9ca3af;
    font-size: 14px;
    text-align: center;
    pointer-events: none;
}
.img-preview-hint .icon { font-size: 40px; margin-bottom: 8px; }

/* ── 图片信息条 ── */
.img-info-bar {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
}
.img-info-bar span {
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 4px;
}

/* ── 进度条 ── */
.progress-wrap {
    margin-top: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    height: 20px;
    overflow: hidden;
    position: relative;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: 6px;
    transition: width 0.3s ease;
    width: 0%;
}
.progress-text {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #1f2937;
}
