/* Remote Backup admin compatibility layer.
 * The page layout now comes from savedpixel-admin-preview.css.
 * Keep only plugin-specific UI that the shared preview stylesheet does not define.
 */

#sp-progress-overlay {
    display: block;
    width: 100%;
    margin: 0 0 20px;
    padding: 16px 18px 14px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #fff;
}

.sp-progress-inline-shell {
    display: grid;
    width: 100%;
    max-width: none;
    gap: 10px;
}

.sp-progress-inline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sp-progress-inline-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.sp-spin,
.sp-progress-inline-icon {
    animation: sp-progress-spin 0.9s linear infinite;
}

.sp-progress-inline-icon {
    width: 16px;
    height: 16px;
    color: #2271b1;
    font-size: 16px;
}

.sp-progress-inline-phase {
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.sp-progress-inline-pct {
    flex: 0 0 auto;
    color: #50575e;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.sp-progress-inline-bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.sp-progress-inline-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2271b1, #43a047);
    transition: width 0.35s ease;
}

.sp-progress-inline-sizes {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
    color: #50575e;
    font-size: 12px;
    overflow-x: auto;
}

.sp-progress-inline-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
}

.sp-progress-inline-stat + .sp-progress-inline-stat::before {
    content: "";
    width: 1px;
    height: 12px;
    margin-right: 2px;
    background: #dcdcde;
}

.sp-progress-inline-stat-label {
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
}

.sp-progress-inline-stat-value {
    color: #111827;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

@keyframes sp-progress-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 782px) {
    #sp-progress-overlay {
        padding: 14px 16px 12px;
    }

    .sp-progress-inline-header {
        gap: 10px;
    }

    .sp-progress-inline-sizes {
        gap: 12px;
    }
}
